This topic has 10 replies, 2 voices, and was last updated 1 years, 8 months ago ago by Rose Tyler
Hello,
I have a problem of compatibility between Xstore theme Child and Woocommerce. After having updated Xstore theme, it seems that my custom version of Child which was previously working, it’s now not compatible anymore with the updated version. In fact the whole site is down as a fatal error occurred.
Here’s the script:
Fatal error: Uncaught Error: Call to undefined function etheme_is_catalog()
in /home/deliwtbl/public_html/wp-content/themes/xstore/framework/theme-functions.php on line 52
Call stack:
et_custom_query()
call_user_func_array()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:565
do_action_ref_array()
wp-includes/class-wp.php:797
WP::main()
wp-includes/functions.php:1334
wp()
wp-blog-header.php:16
require()
index.php:17
Please let me know if there’s anything I can do in order to solve this issue of functions compatibility and have the site running online again.
Thanks in advance,
Enea
Hello, EArienti,
Thank you for contacting us and for using XStore.
Please provide temporary wp-admin and FTP access.
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
Thank you for your reply. Please find shared data
Hello, EArienti,
Thank you for your response.
https://prnt.sc/1RK6uO0v1y7Y Please don’t copy any files from the framework folder to the child theme. They won’t work and may cause issues. If you want to change some functions from files from the framework folder you need to copy only function code to the child theme functions.php and edit that according to your needs (but only in case that function has the next condition wrapped over function -> https://prnt.sc/YUklS8_tXR_A ).
Please note that we are not responsible for any custom changes you make to the child theme.
Kind Regards,
8theme team
The child theme was modified 4 years ago by the developer who is now no longer reachable, for 4 years the site worked perfectly, only after an update did this problem arise, can’t you take care of modifying the theme so that it works? please i don’t know how to fix, code error:
Fatal error: Uncaught Error: Call to undefined function etheme_is_catalog()
in /home/deliwtbl/public_html/wp-content/themes/xstore/framework/theme-functions.php on line 52
Call stack:
et_custom_query()
call_user_func_array()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:565
do_action_ref_array()
wp-includes/class-wp.php:797
WP::main()
wp-includes/functions.php:1334
wp()
wp-blog-header.php:16
require()
index.php:17
Hello, EArienti,
1/ We can’t connect FTP with the credentials you provided.
Please try to connect to FTP using FileZilla by yourself.
Is there a restriction by IP or something else?
2/ Try to rename the mentioned framework folder in your child theme to disable it and check if any problem is still visible.
Kind Regards,
8theme team
Now it works, try accessing ftp with these credentials:
Hello, EArienti,
BE ATTENTIVE and don’t place the private information in the general message area because all the visitors have access to that information.
We’ve edited your reply and moved access into the Private Content area.
You wrote us that your developer did not make any changes for 4 years but checking the one of “problematics“ file in your child theme “xstore-child/framework/template-elements.php“ and it was modified yesterday → https://prnt.sc/TWXD7fXrnvvc
We would recommend you find out who did changes there then.
Your website is working now, please, check!
Below are the details of fixing the fatal error :
For now, we renamed files in xstore-child/framework folder ( https://prnt.sc/CoEhOZyAShsW ) because they are not allowed to be copied & modified in child-theme as those files are core one and are modified on almost each theme update. In more details → those files contain global theme functions that are used everywhere else and by copying those files to your child-theme it is 90% you get notices/error after updates. It was very stange that you didn’t have such errors before.
In case you need to make some modifications we recommend you to make them by adding custom hooks/filters in your child-theme/functions.php but don’t copy and modify the files from framework/, js/, theme/, css/, fonts/, languages/ folders.
Kind Regards,
8theme team
I’m sorry to contradict you but the site is no longer accessible, it doesn’t work
Hello, EArienti,
It looks like someone else make changes to your files on FTP
Example:
https://prnt.sc/NG1x6qZeZLqI – we didn’t rename xstore-child folder to xstore-child.old
https://prnt.sc/CoEhOZyAShsW (our latest screenshot) – https://prnt.sc/NGdtwLgqmW0m (file names now)
For now, we renamed files as we did manually before and seems your web-site loads now → https://gyazo.com/2e557245c05093746c7f0990dae4987f
We are not sure that till you read this answer someone will not make something else and the site won’t work again. Please, contact your hosting provider and ask him what is happening there and who makes modifications/creates errors on your website. Also, you can ask to change ftp and admin access so you will be sure that no one except you will be able to make changes.
Hope, your hosting will give you the right way of solutions.
Kind Regards,
8theme team
Tagged: best selling, compatibility, error, themes, update, woocommerce, xstore
You must be logged in to reply to this topic.Log in/Sign up