- This topic has 19 replies, 2 voices, and was last updated 3 years, 5 months ago by Tom.
June 10, 2017 at 10:05 am #331639Kaleem
hi, im getting the following error when i try to open my site. please kindly help.
/home3/tajforum/public_html/wp-content/themes/generatepress/inc/plugin-compat.php on line 27June 10, 2017 at 10:16 am #331640TomLead DeveloperLead DeveloperJune 10, 2017 at 10:19 am #331641TomLead DeveloperLead Developer
That line is just a closing bracket. Make sure your plugin-compat.php file is identical to this: https://github.com/tomusborne/generatepress/blob/1.3.48/inc/plugin-compat.phpJune 10, 2017 at 11:06 am #331655Kaleem
thanks for the quick response, i like that! so please can i replace the whole code with the one u just posted?June 10, 2017 at 11:07 am #331656TomLead DeveloperLead DeveloperJune 10, 2017 at 11:11 am #331658TomLead DeveloperLead Developer
Before 1.3.47, that line called the
Without seeing your full error, I’m not sure what exactly is happening. But if it’s saying
do_action()isn’t defined, it means something in your WP installation is broken and you should re-install WordPress (Dashboard > Updates).June 10, 2017 at 11:13 am #331659Kaleem
sorry, i think this is the full error:
Fatal error: Cannot redeclare generate_setup_woocommerce() (previously declared in /home3/tajforum/public_html/wp-content/themes/generatepress/inc/plugin-compat.php:12) in /home3/tajforum/public_html/wp-content/themes/generatepress/inc/plugin-compat.php on line 26June 10, 2017 at 11:23 am #331661TomLead DeveloperLead Developer
Yea not sure what’s happening there, the function isn’t re-declared, and those lines aren’t even the lines with any functions being declared: https://github.com/tomusborne/generatepress/blob/1.3.48/inc/plugin-compat.php
I assume that file has been changed on your end somehow. Try replacing it as I suggested.June 10, 2017 at 11:29 am #331663Kaleem
i just replace the codes but still the same errorJune 10, 2017 at 11:32 am #331665TomLead DeveloperLead DeveloperJune 10, 2017 at 11:36 am #331666Kaleem
yes im using child themeJune 10, 2017 at 11:40 am #331667TomLead DeveloperLead Developer
Make sure the child theme only has files you need to overwrite. If the child theme has all of the same files, you will get errors.
You can find a good starter child theme here: https://docs.generatepress.com/article/using-child-theme/June 10, 2017 at 11:45 am #331670Kaleem
i think my theme is not update, so let me update it and see. but can that really cause the error?June 10, 2017 at 11:48 am #331673TomLead DeveloperLead Developer
That error says that function is being defined twice, which it isn’t in the parent theme. If it’s being defined twice, it must be in the child theme as well.June 10, 2017 at 11:52 am #331675Kaleem
in the child theme i have only style.css and function.php. i did not add anything new for long ago.
- You must be logged in to reply to this topic.