Skip Navigation

[Resolved] Types suddenly causing a fatal error

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

Problem:

In this ticket the user was getting a fatal error suddenly on their site without any changes.

The error was
Call to a member function get_external_repo() on null

Solution:

If you are experiencing something similar on your site it could be due to the release of our Toolset Blocks plugin so I would recommend following the steps below to resolve the issue.

1. go to the plugins screen
2. activate Types as it was disconnected
3. go to the WP updates screen ( /wp-admin/update-core.php )
4. click on the check for updates button (one or a couple of times) ( /wp-admin/update-core.php?force-check=1 )

This support ticket is created 5 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by theodoreA 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1228839

Hello,
I'm suddenly having an issue with Types. I can't access the plugin page in admin without disabling the plugin, I'm getting the following fatal error:

[10-Apr-2019 17:50:13 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_external_repo() on null in /home/tedbiz/public_html/clients/trench/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php:2335
Stack trace:
#0 /home/tedbiz/public_html/clients/trench/wp-includes/class-wp-hook.php(286): WP_Installer->setup_plugins_page_notices('')
#1 /home/tedbiz/public_html/clients/trench/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /home/tedbiz/public_html/clients/trench/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/tedbiz/public_html/clients/trench/wp-admin/admin-header.php(276): do_action('admin_notices')
#4 /home/tedbiz/public_html/clients/trench/wp-admin/plugins.php(459): require_once('/home/tedbiz/pu...')
#5 {main}
thrown in /home/tedbiz/public_html/clients/trench/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 2335

I have followed everything in this thread: https://toolset.com/forums/topic/fatal-error-uncaught-error-call-to-a-member-function-get_external_repo/ -- but I can't seem to resolve the issue.

I have deactivated all plugins except Types and I have switched the theme to 2019 (I've tried 2017 too).

Site is on php 7.2 with 512M of memory.

Please help. Thank you.

#1228881

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Theodore,

Thank you for getting in touch.

We have recognised the issue and it seems to be related to our recent Toolset Blocks plugin release .

I've already created a ticket for this and our 2nd tier supporters are looking into it.

Thanks,
Shane

#1228935

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Theodore,

Could you try the following.
1. go to the plugins screen
2. activate Types as it was disconnected
3. go to the WP updates screen ( /wp-admin/update-core.php )
4. click on the check for updates button (one or a couple of times) ( /wp-admin/update-core.php?force-check=1 )

Please let me know if this helps.
Thanks,
Shane

#1229040

My issue is resolved now. Thank you!