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
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.
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.
Thanks for your very fast reaction.
But your proposed (strange) workaround does not work in all of my dozens websites ... ;-(
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.
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.
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!