Skip Navigation

[Resolved] Fatal error: WP-Admin page “plugins” not longer shown

This thread is resolved. Here is a description of the problem and solution.

Problem: I am unable to access the plugins page and I see a Fatal error about call to get_external_repo.

Solution: See our erratum post: https://toolset.com/errata/fatal-error-after-activating-or-updating-types/

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 6 replies, has 3 voices.

Last updated by Hansjörg Jäckel 5 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1228867

Hi Toolset-Team Support,

I got this Error in all my site since today in the WP-Admin page "plugins", very critical situation for my a WP-Admin ...

" ... Fatal error: Uncaught Error: Call to a member function get_external_repo() on null in /wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php:2335 Stack trace: #0 wp-includes/class-wp-hook.php(286): WP_Installer->setup_plugins_page_notices('') #1 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /wp-admin/admin-header.php(276): do_action('admin_notices') #4 /wp-admin/plugins.php(459): require_once('/www/htdocs/...') #5 {main} thrown in /wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 2335 ..."

My guess ... something in the "call-home" function / infrastructure on your end is broken ... because no update on the WP-Installation & PlugIns inside my pages are happend!

Please help as soon as possible!
Thanks very much & best Regards

#1228870

Hi, we're working on this issue now and I'll update you shortly. I had already created another ticket for you, so we can close one of these tickets.

#1228943

Please try this workaround:
Activate Types
Go to the WP updates screen ( /wp-admin/update-core.php )
Click "Check for Updates"
Return to the plugins page

If the problem isn't resolved, please click "Check for updates" a couple more times.

Let me know if the problem is not completely resolved.

#1229046

Thanks for your very fast reaction.

But your proposed (strange) workaround does not work in all of my dozens websites ... ;-(

#1229053

Christian,

We had the same issue occur on our website today. We had a blank plugin page, so I turned on the DEBUG and saw many errors on the plugins.php page.
___________________________________
Undefined Index notices:

Notice: Undefined index: slug in /nas/content/live/****/wp-content/plugins/types/vendor/otgs/installer/includes/class-otgs-installer-plugin-finder.php on line 27

Notice: Undefined index: slug in /nas/content/live/****/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 466

Mainly slugs, names, and descriptions causing the undefined errors.
___________________________________
Thrown from two pages:

class-wp-installer.php
class-otgs-installer-plugin-finder.php
___________________________________
The main fatal error at the end was as follows:

Fatal error: Uncaught Error: Call to a member function get_external_repo() on null in /nas/content/live/****/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php:2335
Stack trace:
#0 [internal function]: WP_Installer->setup_plugins_page_notices('')
#1 /nas/content/live/****/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
#2 /nas/content/live/****/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /nas/content/live/****/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 /nas/content/live/****/wp-admin/admin-header.php(276): do_action('admin_notices')
#5 /nas/content/live/****/wp-admin/plugins.php(459): require_once('/nas/content/li...')
#6 {main}
thrown in /nas/content/live/****/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 2335
___________________________________

I completely deleted and reinstalled the plugins manually (we only have Types and Views installed) and the plugins page was still blank.

I followed your workaround, and it fixed the problem. Everything is working fine now.

I thought I'd send this example just in case it'll help you solve the problem for the future.

#1229332

The problem is explained in more detail here: https://toolset.com/errata/fatal-error-after-activating-or-updating-types/
It was introduced when Toolset Blocks was released as a beta plugin without a stable release. The solution is as I explained, but if it's not working on one or more sites I will be glad to log in and take a closer look. Please provide login credentials in the private reply fields here.

#1230288

Since today it's working again ... your solution description to click multiple times the "wp-admin/update-core.php?force-check=1" page was probably the solution ...

This issue is resolved now. Thank you!