This topic has 37 replies, 2 voices, and was last updated 1 years, 5 months ago ago by Rose Tyler
Hi there, we are having issues with AMP for some products that have 3 selectable attributes.
Please see this product as an example; https://premiumpetware.co.nz/product/mendota-slip-leads-brass-collection/
There are no issues via PC browser.
It seems to be expecting the input of a further variable, and will not add the product (with all three options selected) to the cart.
Regards,
Blair
Hello, PremiumPetware,
Thank you for contacting us and for using XStore.
In order to troubleshoot the issue you are experiencing, we suggest that you first try disabling all third-party plugins (including cache plugins) that are not bundled with XStore. You can refer to the following link for a list of included plugins: https://www.8theme.com/documentation/xstore/plugins/included-plugins/ . Additionally, please clear the cache of your browser and check again. It is possible that one of the additional plugins is causing problems.
Kind Regards,
8theme team
Hi There, it turned out that the issue is possibly related to the variable product having a special character in one of the attributes variations ( ” symbol for inches – although these have been working for years using woopress theme and on Xstore until last woocommerce / theme update) The other thing that has changed with variations is that there is now an example attribute added by default in the attributes list which also has the selection options ticked by default.
{closure}(”) #1 /code/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /code/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /code/wp-settings.php(645): do_action(‘wp_loaded’) #4 /code/wp-config.php(93): require_once(‘/code/wp-settin…’) #5 /code/wp-load.php(50): require_once(‘/code/wp-config…’) #6 /code/wp-blog-header.php(13): require_once(‘/code/wp-load.p…’) #7 /code/index.php(17): require(‘/code/wp-blog-h…’) #8 {main} thrown
I have cleared mobile cache and the live and test environment cache, and am still seeing AMP in Test system and Xstore mobile in the live system.
I have tried deactivating and reactivating AMP plugin in LIve but am still seeing the Xstore mobile view.
I have made some edits to the website using Yellowpencil which I am finding really useful, but wondering if this may be causing an issue.
Any suggestions on what to try next?
Regards,
Blair
PS I did follow your suggestion of disabling all non-xstore plugins when trying to identify the attribute issue, thank you.
Hello, PremiumPetware,
Please provide temporary wp-admin and FTP access to the site with the problem.
To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.
To create FTP access, please contact your hosting provider for assistance.
Thank you for your cooperation.
Kind Regards,
8theme team
Hi Rose,
sorry for the delay. Details added to Private area.
Thanks and regards,
Blair
Hello, PremiumPetware,
Thank you for wp-admin access.
We can’t connect FTP, unfortunately. Please try to connect to FTP using FileZilla by yourself.
Is there a restriction by IP or something else?
Kind Regards,
8theme team
Hi Rose, yes those credentials do work for me in Filezilla. I did forget to advise the port to use. Will put in the private area.
I am not aware of any region locking, there are no settings for it that i can find.
Regards,
Blair
Hi Rose, I should point out that that platform we use has a specific protocol. Code updates need to be made in the Dev system merged with live to create a test system, which if ok is then promoted to live. So no updates are made in the live directly. the dev, test and live systems have their own sftp connections.
Hello again, I saw that there were theme updates available and have added those. I also found that the wp-redis plugin was not set up properly and have followed the instructions to get that working. I have promoted these to the test environment, apologies if this interferes with anything that you mat be doing. The AMP GUI is being presented in test, and responds to configuration changes immediately on reloading the page. When you are finished reviewing thing I will push the changes to live (if testing is successful).
Regards,
Blair
Hello, PremiumPetware,
Thanks for sharing the details but when we tried to make some changes in files to check the issue FTP shows us the next message:
Error: wp-content/plugins/xstore-amp/includes/templates/woocommerce/single-product/add-to-cart/variable.php: open for write: permission denied
Error: File transfer failed
In our opinion, the main issue is because your attributes have spaces between words which creates error for AMP.
We will try to recreate the situation on our local sites while you are checking and providing us correct ftp access to your web-site with normal permissions. Also, please, leave in private content area the path to which site we can make our changes (if you have dev/staging one then it will be better to try to fix it there rather on real one).
Kind Regards,
8theme team
Hi Rose, I have updated to the latest theme version and core plugin.
The issue with AMP gui not being displayed in live on mobile persists.
Details for connection to the test environment is attached.
Thanks and regards,
Blair
Hello, PremiumPetware,
Thank you for your response.
We will have another specialist review your inquiry in greater detail and will be in touch with you (it may take a few days).
We kindly ask for your patience and request that you do not alter access.
On the live site you can disable the AMP plugin, we will work on your test site.
Kind Regards,
8theme team
Thank you Rose, appreciate your support with resolving this
Hello, PremiumPetware,
Thank you for your patience and we apologize for the long delay in responding.
Please download a new version of XStore AMP plugin by a link from the Private Content area.
We would like to hear your feedback after the test and what bugs you noticed unresolved.
Kind Regards,
8theme team
Hi there, I tried installing the supplied version of AMP to my test environment. Refreshed caches etc, and the website will not open on my mobile at all. The page load progress bar gets about 2/3 of the way across and stalls.
After deactivating the AMP plugin, the mobile view of xstore then appears and works normally.
Looking in the php log the same error is repeated, presumably every time i tried to refresh the page. Details added to private area.
Hello PremiumPetware,
Thank you for your response.
We will have a specialist review your inquiry in greater detail and will be in touch with you after the weekend. Sorry for such a delay.
Kind Regards,
8theme team
Hello PremiumPetware,
We didn’t face such an issue during our tests. Maybe it is caused by your modifications in wp-config file on the same day you installed the new version of the plugin (check Private Content) ?
Also, we wanted to rename xstore-amp folder and install the one that was officially released before to check if you had such issues with the previous version of the plugin but it is not possible to do because of the permissions:
/wp-content/plugins/xstore-amp /wp-content/plugins/xstore-amp-new: permission denied
Could you please, try to check if the errors are coming with the previous version of XStore AMP plugin ? or provide us correct access so we could check it with our “own hands”.
Kind Regards,
8theme team
Hi there, instead of just overwriting, I deleted the xstore-amp plugin folder and re-uploaded the files that you have provided.
AMP is now running but I am still having the same issue where you cannot add a product with 3 variables to the shopping cart. See the example in private area. The selected product is in stock, and with the three options selected I should be able to add this to the cart.
Regards,
Blair
PS – I had updated some other plugins including the theme and migrated the changes from Dev to Test, so I presume that is why the dates have changed for multiple things. In the platform that I use, you upload to Dev, and then migrate code to test which also copies data from live to test.
Cheers, Blair.
Hello PremiumPetware,
Thank you for your response.
Please provide FTP access to the test site one more time, because with current access we connect to files of the live site.
Kind Regards,
8theme team
Hi, Please see test environment credential in private section
Hello PremiumPetware,
Thanks for the access to your testing web-site but we still have some issues with access on your admin/ftp.
1/ We have possibilities only to activate/deactivate plugin → https://prnt.sc/Yyi2u3tavKMb . But we need to have more access like removing/installing plugins. Details: we deactivated XStore AMP plugin but it was kinda 1/2 deactivated and shows an error on frontend → see private pic01.
2/ We tried to rename XStore-amp folder using ftp but still have not enough permissions for that case →
Command: mv "xstore-amp" "xstore-amp-old"
Error: mv /code/wp-content/plugins/xstore-amp /code/wp-content/plugins/xstore-amp-old: permission denied
We need to make a test but according to the permissions you provided to the user sent to us it is not possible. See private pic02.
Could you please, fix it and give us feedback then?
Kind Regards,
8theme team
Hi Rose,
ok in that case you will need to use the Dev environment. I have cloned the current Live to the Dev environment.
Please see details in private area.
Dear PremiumPetware,
Thank you for your response.
We were able to connect using FTP access. But we can’t open your site, please check screenshots in the private Content area.
Unblock your site for Ukraine, please.
Kind Regards,
8theme team
Hi there, sorry this was error on my part. The url I gave was not quite correct, I’m not very good at multi-tasking!
Please see the correct one in the private area
Hello again, I am trying to set up a workspace environment that you can connect to using your own login ,with appropriate permissions and sftp access. Could you please advise an email account that i can use for the username?
Thanks and regards,
Blair
Hello, PremiumPetware,
Private Content
Kind Regards,
8theme team
Hi there, I think your are onto the issue here. I believe this is the site performance monitoring tool that my provider uses. I found an article to say that it can interfere with Google AMP. I am asking whether it can be disabled…
Hi, the platform vendor has documented the addition of this code to the wp-config.php file to resolve issues with New Relic and Google AMP. Is this code appropriate for X-Store Amp? Please see private contents.
A second option is to totally disable New Relic which they do not recommend doing.
Tagged: 3 attributes, not working, selectable, templates, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up