- This topic has 3 replies, 2 voices, and was last updated 3 years, 3 months ago by
Fernando.
-
AuthorPosts
-
January 22, 2023 at 5:34 pm #2505239
Ron
I worked with GeneratePress a few weeks ago and had no issues. Today I tried creating a new Element (any type) and am getting the following error message in the log:
[23-Jan-2023 00:12:30 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_date_completed() on bool in /www/luxeondebug_465/public/wp-content/themes/generatepress/functions.php:136 Stack trace: #0 /www/luxeondebug_465/public/wp-includes/class-wp-hook.php(310): term_info_update(242844) #1 /www/luxeondebug_465/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /www/luxeondebug_465/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /www/luxeondebug_465/public/wp-includes/post.php(4717): do_action('save_post', 242844, Object(WP_Post), false) #4 /www/luxeondebug_465/public/wp-admin/includes/post.php(706): wp_insert_post(Array, false, false) #5 /www/luxeondebug_465/public/wp-admin/post-new.php(66): get_default_post_to_edit('gp_elements', true) #6 {main} thrown in /www/luxeondebug_465/public/wp-content/themes/generatepress/functions.php on line 136- I have disabled all plugins except WooCommerce (7.3.0), GenerateBlocks (1.6.0), and GP Premium (2.2.2)
- I am using the GeneratePress 3.2.4 child theme.
- I have tested using the Twenty Twenty-Three theme
- Cleared all caches
If I try to save an existing element, I don’t get any errors in the log file, but an “Updating failed.” message is displayed on the screen.
Suggestions?
January 22, 2023 at 9:59 pm #2505361Fernando Customer Support
Hi Ron,
You have extra code in the Parent GP’s
functions.php.Did you add these? It’s causing the issue.
Moreover, you shouldn’t modify any file in the Parent Theme.
You can only do so in the Child theme.
It would be best if you re-download and re-install the GP theme to assure no extra code is in there.
January 23, 2023 at 9:51 am #2506152Ron
I have never modified the functions.php file, and I am sure our developer knows enough not to do that. But you were correct; re-installing the GP theme resolved the problem.
I have no idea how any template files would have been changed.
Thank you for your quick response and help with this.
January 23, 2023 at 5:05 pm #2506553Fernando Customer Support
You’re welcome, Ron!
-
AuthorPosts
- You must be logged in to reply to this topic.