This topic has 25 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Rose Tyler
Hi There,
After the recent update, we lost the API feed to feedanomics which is feeds product data to our Google shopping campaigns.
There is also product information fed through to our 3rd part order management system Linnworks. This is no longer coming through.
When I test the API from linnworks to the website it is connected and is bringing order information through from the website no problem, but no product information.
I have created a staging site and deactivated all plugins, but the probem was the same. When I changed the theme to a standard theme though the product data came through OK. So I can only assume it is a conflict with X Store.
I have included login information for the staging site and also FTP if you need it.
Thanks
Guy
Hello, Plusout,
Thank you for getting in touch with us.
We have enabled an option on your staging, Customizer -> Speed Optimization -> Disable Embeds, as shown in the screenshot https://prnt.sc/YWP9I9v3Al79. Please check if the data is coming in now, and also provide us with the opportunity to verify what data is coming to your API.
Additionally, please update the following plugins https://prnt.sc/ts1W1t2uyUWD.
Kind Regards,
8theme team
Hi There,
Thanks for your help so far.
I have updated the plugins and attempted to download the product data through the API to our 3rd party order management software Linnworks, but it is still not working.
The only way I know that the product feed is not working is by going into Linnworks and try to update the products from the website to Linnworks.
I have tried to download just now and no change.
If I change the theme the products will download straight away.
The other, bigger problem is that the feed to Google shopping is not working also, so costing us many sales now.
I don’t know of another way that you can see the API data, I could give you access to our server admin pannel so you can see server logs. Would that work?
Thanks
Guy
HI There,
I just tried various other things to resolve this, speaking to our server people and can see the API errors in the server logs. I have copied one into the private area.
I have also just tried activation the XStore theme instead of our child theme and everything works OK, but obviously the site doesn’t look OK. Does this give you any more idea what the problem could be?
Thanks
Guy
Hello, Plusout,
In regards to the settings of the theme and related plugins, you need to do the following:
1/ Activate the child theme;
2/ Go to the Customizer and export the options as shown in the screenshot below: https://gyazo.com/6e911ef032ccbe80d06c33ab84fc14e7;
3/ Reactivate the parent theme and export the options again;
4/ Import the options of the child theme to the parent theme;
5/ Check if everything works;
6/ Restore the options of the parent theme by importing them.
Please, be careful and do not mix up the option files, also do not delete them.
Kind Regards,
8theme team
Hi There,
Is this what you did in the staging site?
So far the staging site doesn’t look like it should.
Staging site now – https://prnt.sc/94srBZSDG3KF
Live site (should look like this) – https://prnt.sc/pWYIWLkxhD7x
If there will be differences, will we have to go into it after exporting and importing?
Do you know the reason why this has happened, is there anything we need to do in the future to be more safe?
Thanks
Guy
Please can you clarify
5/ Check if everything works; – Do we stop here?
6/ Restore the options of the parent theme by importing them. – Is this only if there is a problem?
Do we activate the child theme after so it is back to the child theme being the main theme?
Thanks
Guy
Hello, Plusout,
1/ We have not made any changes to your staging site, this effect is possible when switching between the child and parent themes and vice versa. You just need to go to the customizer and save the changes.
2/ Steps 5 and 6 should be done. We need to know if the result is dependent on the options, which is why we are taking this step. If it does not work and then works again after reverting the options, we will be sure that the problem is with one of the options.
3/ After that, search for the option that is causing the problem can be done.
Kind Regards,
8theme team
Hi There,
Everything is OK after I did all that you suggested, the API works OK. But if it activate the child theme again, it breaks the API again. The site is running with the parent theme now fine, but I need to have the child theme active as there are updates ready for ZXstore and other plugins, but I don’t want to update until the child theme is set correctly.
Do you have a suggestion?
Thanks
Guy
Hi There,
The staging site is working with main theme, but breaks when I switch to Chiold theme, if I change back it works again straight away.
So it looks like the problem is with the child theme. I have tried exporting the .DAT file from parent to child theme but the child theme still does not work.
Please can you suggest how we can get the child theme working.
Thanks
Guy
Hello, Plusout,
1/ “I have tried exporting the .DAT file from parent to child theme but the child theme still does not work.” – Are you referring to the API not working, or the appearance of the website?
2/ Have you entered any API keys in the WordPress admin area (possibly in the plugin settings), as they may change depending on the active theme?
Kind Regards,
8theme team
1/ “I have tried exporting the .DAT file from parent to child theme but the child theme still does not work.” – Are you referring to the API not working, or the appearance of the website? – I was refering to the API not working, the appearance is fine with either theme.
2/ Have you entered any API keys in the WordPress admin area (possibly in the plugin settings), as they may change depending on the active theme? – The API keys are set from Woocommmerce in API-rest and entered into the third party software (Linnworks). I can try re-registering the API keys in Linnworks once the child theme is active and see if that works.
Please let me know if you have any other suggestions.
Thnaks
HI ther,
I re-authorised the API when the child theme was live on the staging server and the API doesn’t work. It is OK when the parent theme is live.
Can we build a new child theme?
I’m not sure how it works and don’t want to do updates until I have this sorted.
Can you please look into it for me.
Thanks
Guy
Hello, Plusout,
We have made some changes to the children’s theme on your staging site, please check if the API connection is working now.
Kind Regards,
8theme team
Hi There,
yes, that seems to be working.
Can you make the same changes on the live site and I will change over to the child theme then test.
Thanks
Guy
Hello, Plusout,
The test on our staging site is not finished yet.
We have made new changes to the children’s theme on your staging site, please check if the API connection is working now.
A few more tests need to be done, once we get a solid solution, it can be applied on your live site.
Kind Regards,
8theme team
Hi There,
Yes, it is still working OK.
Please let me know if there is anything else you need from my side.
Thanks
Guy
Hello, Plusout,
Thank you for your response.
Please test it one more time.
Kind Regards,
8theme team
Hi There,
Linnworks only allows me to run the product import every 2 hours, which is the only way I have to see if it is working on the staging site. So I can run it again at 16:15 BST it is now 15:40nBST
For the main site I can run our google product feed any time to test that API, but will have to wait another hour before I can run the staging site one and let you know.
Thanks
Guy
Hi There,
No, it seems to have stopped working now.
The products are no longer coming througfh to Linnworks.
I have put the access log error in the private area (this is what we always see when it is not working)
Thanks
Guy
Hello, Plusout,
Thank you for your response.
We can conclude that the issue is caused by one of the custom functions in your child theme, which start from line 7 and go to the end of the functions.php file, as shown in the screenshot bellow:
https://prnt.sc/XEr9z9-5Eb5E
We have already disabled them on your staging, you need to enable each of them one by one to find out which one is causing the issue.
The file with the functions is located at the following path:
wp-content/themes/xstore-child/functions.php
Kind Regards,
8theme team
HI There,
many thanks for your help.
This is for a plugin that we no longer use and has been deleted, we don’t need the customisation now and di=d not know it was still there.
Can I just delete the section you hvae highlighted in red from the functions.php? No need to test and turn them on aagin as we don’t need them any more.
Thanks
Guy
Hello, Plusout,
Please read our reply one more time.
Custom code in functions.php file starts from 7 line but it is all other file content, not just code on our screenshot. Some part of the code causes the problem, we can’t say for sure what exactly part because tests should be done by you, part by part.
Please check functions.php file on your staging site, you will see that the code is commented (disabled), if you do not need all the disabled code, you may not enable it and just delete it.
We hope it is clear now.
Kind Regards,
8theme team
Hi There,
we found the code in the functions file that was causing the problem. It is now disabled in functions.php and the other functions are working fine, with all product data coming thorough the API on the the live site.
Many thanks for you help with this.
Regards
Guy
Hello, Plusout,
Thank you for bringing this to our attention. We are pleased that you were able to resolve the issue. Have a nice day!
Kind Regards,
8theme team
You must be logged in to reply to this topic.Log in/Sign up