This topic has 28 replies, 3 voices, and was last updated 4 years, 4 months ago ago by Olga Barlow
Hi, the theme seems to be not keeping its settings on the WooCommerce layouts. For example if I select grid as the view standard view. It will sometimes show in grid and sometimes not but when I refresh cache it loads correctly. Same with the product info page, it will load with the image on the left and info on the right as it should but it will also mess up and load the image on the left top and info below. When I refresh cache it goes back to normal. Both will break at the same time.
I have an app for iOS and Android and it loads the website and when the above mentioned issues happen it loads a critical error in the apps. Again clearing cache fixes issue temporarily. My app tech guy said to send you this info to help with the issue.
[27-Jun-2020 22:40:06 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function etheme_get_option() in /srv/htdocs/wp-content/themes/xstore/woocommerce/loop/loop-start.php:26
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(251): include()
#1 /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1085): wc_get_template(‘loop/loop-start…’)
#2 /srv/htdocs/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php(649): woocommerce_product_loop_start()
#3 /srv/htdocs/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php(100): WC_Shortcode_Products->product_loop()
#4 /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-template-loader.php(472): WC_Shortcode_Products->get_content()
#5 /wordpress/core/5.4.2/wp-includes/class-wp-hook.php(287): WC_Template_Loader::unsupported_theme_shop_content_filter(”)
#6 /wordpress/core/5.4.2/wp-includes/plugin.php(206): WP_Hook->apply_filters(”, Array)
#7 /srv/htdocs/wp-content/plugins/wpappninja/inc/functions/shortcodes.php(1623): apply_filters(‘the_content’, ”)
#8 /srv/htdocs/wp-content/plugins/wpappninja/themes/wpappninja-full/page.php(35): wpappninja_show_content(Object(WP_Post))
#9 /wordpress/core/5.4.2/wp-includes/template-loader.php(106): include(‘/srv/htdocs/wp-…’)
#10 /wordpress/core/5.4.2/wp-blog-header.php(19): require_once(‘/wordpress/core…’)
#11 /wordpress/core/5.4.2/index.php(17): require(‘/wordpress/core…’)
#12 {main}
thrown in /srv/htdocs/wp-content/themes/xstore/woocommerce/loop/loop-start.php on line 26
Thanks
Jamie
Hello,
Thank you for using our theme and take our apologies if you faced any issues.
I suppose that it could be related to compatibility with Wpappninja plugin but we need to study it in more detail. Could you, please, provide us with temporary WP Dashboard and FTP access to your site?
Regards
Here you go
Hello,
1) Provide us also with the WP Dashboard user and pass. We need to log in to your backend.
2) Check the host that you provided. We can’t connect to your server http://prntscr.com/t9r2ht
3) Describe your actions step by step to reproduce the issue. Provide screenshots of the problem for better understanding. Do you have the mentioned issue only when app is connected? Don’t you have them once disable the app? We need to understand what actions call the mentioned error to fix it.
Regards
Not sure why you cannot access the ftps server as I can here with that info. I will recreate the the info.
In terms of the issue itself, I am not sure about the app plugin I am just going by what the app plugin developer is saying.
As mentioned I have the products on the order page setup to show as a grid. (https://bigredspoutine.com/online-order/) When the problem happens on the website product page does not load in a grid it changes to a list although grid is still selected. When this happens the iOS and Android app which just load the website show a wordpress critical error message. When I clear the cache everything returns to normal for a short period and the site and the app load correctly.
Also when the grid turns to a list on the site the individual product pages change layouts as well from the product image on the left and the product info to the right of the image which is as it should be it instead switched the product image on the top and info below but all left justified.
I hope this clears things up. Theres not much else to say but something is causing the layout change and it causes the app to glitch at the same time.
Please look at the image urls in the private section. I have labeled them CORRECT and WRONG this way you can see the difference.
Hello,
Contact your hosting provider and clarify FTP host. We can’t connect to host that you provided http://prntscr.com/t9r2ht
Regards
I am not sure why you can’t connect. I have uploaded a video in the private section as well as a new password that demonstrates that it works just fine.
Hello,
You did not mention port in the first message. Once we added the port we are able to connect to your server.
We tried to reproduce the issue and get the error but we can’t. Once we visit the site everything is ok https://gyazo.com/2bc5ac2df658c61d3253e83da7ccae98 and there are no errors in the error logs after clearing http://prntscr.com/tb5l9u
So, it looks that error appears when something very specific was made. Can’t install your App because we are from another country and it’s not allowed in our region. Maybe your app disables theme functions in some way? We don’t have an idea until we don’t understand which of your actions generate those errors.
Regards
If you login to the WordPress admin and go to the WPMobile.App section and click on preview you can load the app there it happens on that as well.
Hi,
Our technicians will be able to take a closer look at it on Monday, due to the weekend. Please wait.
Regards
Hello,
It looks that your app calls to woocommerce template files from the xstore/woocommerce but did not call the additional theme-functions.php file from subdirectory that is required for the customized templates of the woocommerce from our theme. We tried to find the way to call our functions but with no luck. Could you, please, ask the app developer about any filter or something to call the additional theme-functions.php in addition to using woocommerce templates from our theme if their app calls to these xstore custom templates?
Regards
Ok I sent your request to him. Will wait for his response.
Thanks
Jamie
Thank you.
Regards
Hi. This is what he said. Seems to be a back and forth thing. I have included his response and email so you can ask him directly.
“This is odd because the app do not use the xstore theme but a custom theme.
Can you ask if it can be a xstore plugin that try to load a theme function (and fail because the theme is not xstore) ?“
Hello,
We have visited your site using mobile device, desktop, your mobile app, visited different pages. We did not face any error on the frontend. Also, I don’t see any error in the error logs at this moment. I don’t understand what should I do to generate those errors and frontend issues. Could you send us the video of your actions before you get the error?
Regard
This is very frustrating. I have had over 10 app users say they have had this issue. Basically every time I use the site or the app the issue happens. Maybe it’s when multiple people are on the site or app at the same time. There is no specific thing that happens to trigger it. Just looking around at the items in the WooCommerce portion of the site. I picked up my phone and the app did it right away. So not sure why you can’t get it to happen? Maybe only apple users? I will send a video later.
Hello,
Ok. We’ll be waiting.
Regards
Hi not sure if this posted twice if so sorry. I refreshed the page and did not see so not sure if it did or not.
I have attached the link to the video. Please note that the start of the video is of the site not working correctly as you should see. I did this as it breaks randomly so it would be hard to make a quick short video. I did not video the app as I don’t have another camera but I figure if the site is messing up thats the culprit and if that gets fixed the app will probably be fixed as well. I have tried this on mac, iPhone and multiple types of browsers. I will try windows later and see if its happening there as well.
Ok my host narrowed it down to the mobile app plugin. The app guys said it’s the theme but am not sure about that.
The app designer has said to ask you this as well.
Can you ask if it can be a xstore plugin that try to load a theme function (and fail because the theme is not xstore) ?
Hello,
Actually, it should not call any theme files if another theme is active. Anyway, we have added an additional check for XStore Core plugin functions to prevent calling xstore theme functions if XStore theme is disabled. Also, you can try to disable the XStore core plugin once you got the error again and check if the disabling of the plugin helps you.
Regards
Ok I sent your message to the app plugin maker. I did try turning off the core and the app seemed to work. Obviously the site didn’t look good. But once I turned the xstore core on again the app product pages broke. By the way it only breaks on the product pages. On the site as in the video I sent you it just loads the product and shopping pages funny. When the error happens. The rest of the site does not have any errors on the app or the site. At least that I can see.
Hello,
Do you have the mentioned errors even after our improvements, right?
Regards
No didn’t change anything. I do notice that there are two xstore core plugins installed now only one active. Not sure if you did that? Anyway as the video showed you should be able to see the issues. My hosting company, me, the app plugin owner and my customers can see it so you should be able to see it on your end.
Hello,
Test now, please.
Regards
Hi what did you change? Looks like between what you have done and the app developer changed on their plugin had a hood effect. So far so good.
Thanks so much for your effort!
Hello,
We have added a couple of additional checks to prevent the calling of any functions of the core plugin.
Glad to hear that it helped.
Regards
You must be logged in to reply to this topic.Log in/Sign up