Site logo

[Resolved] Getting PHP Fatal Error

Home Forums Support [Resolved] Getting PHP Fatal Error

Home Forums Support Getting PHP Fatal Error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    #2505361
    Fernando
    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.

    #2506152
    Ron

    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.

    #2506553
    Fernando
    Customer Support

    You’re welcome, Ron!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.