Fatal Error on Addons page

Hey there!

WordPress has notified me a few times now of a fatal error. It is reported at this page: http://www.theccsn.com/wp-admin/admin.php?page=x-addons-home

Here is the error/log:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.4.1
Current theme: X – Child Theme (version 1.0.5)
Current plugin: (version )
PHP version 7.3.18-1+ubuntu18.04.1+deb.sury.org+1

Error Details

An error of type E_ERROR was caused in line 239 of the file /nas/content/live/theccsnver2/wp-content/themes/x/framework/functions/updates/class-x-tgmpa-integration.php. Error message: Uncaught Error: Call to undefined method TGM_Plugin_Activation::get_tgmpa_url() in /nas/content/live/theccsnver2/wp-content/themes/x/framework/functions/updates/class-x-tgmpa-integration.php:239
Stack trace:
#0 /nas/content/live/theccsnver2/wp-content/themes/x/framework/functions/admin/markup/page-home-box-extensions.php(33): X_TGMPA_Integration->bulk_manager_url()
#1 /nas/content/live/theccsnver2/wp-content/themes/x/framework/functions/admin/markup/page-home.php(59): include(’/nas/content/li…’)
#2 /nas/content/live/theccsnver2/wp-content/themes/x/framework/functions/admin/setup.php(31): include(’/nas/content/li…’)
#3 /nas/content/live/theccsnver2/wp-includes/class-wp-hook.php(287): x_addons_page_home(’’)
#4 /nas/content/live/theccsnver2/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(’’, Array)
#5 /nas/content/live/theccsnver2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#6 /nas/content/live/theccsnver2/wp-admin/admin.php(254): do_action(‘toplevel_page_x…’)
#7 {main}
thrown

Hi @rwoods12,

Thanks for reaching out.

There error means the function TGM_Plugin_Activation::get_tgmpa_url() doesn’t exist which it should be since it’s a core function for extensions, updates, and validation. Would you mind re-installing your theme again?

And I also saw a similar issue and it’s triggered while updating the theme, but gone once the update is finished. The explanation is, while it’s updating, the files will become unavailable and which includes the codes hence they aren’t callable causing this error. If you’re no longer seeing this error, not recurring then you can ignore it. But if it’s still there making your site inaccessible, then I recommend re-installing your theme.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.