Skip Navigation

[Resolved] Fatal error: Uncaught Error: Call to a member function get_external_repo()

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

Problem: After updating Types, I am shown an error on the Plugins page:

Fatal error: Uncaught Error: Call to a member function get_external_repo() on null

Solution: Switch to the default Twenty Seventeen theme. Deactivate Types by renaming the types plugin folder with FTP. Then delete the Types plugin from wp-admin. Create a new registration key on toolset.com, then reinstall and activate Types. Go to the Commercial tab (wp-admin/plugin-install.php?tab=commercial) and unregister the plugin, then register with the new key.

0% of people find this useful.

This support ticket is created 5 years, 11 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
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 12 replies, has 4 voices.

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

Assisted by: Christian Cox.

Author
Posts
#1156401

hi—
i've just updated types and am now getting the following error on two pages in the admin section of my site (plugins and update-core):


Fatal error: Uncaught Error: Call to a member function get_external_repo() on null in /home/thinkingheart/public_html/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php:2301 Stack trace: #0 /home/thinkingheart/public_html/wp-includes/class-wp-hook.php(288): WP_Installer->plugins_upgrade_check(Object(stdClass)) #1 /home/thinkingheart/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Object(stdClass), Array) #2 /home/thinkingheart/public_html/wp-includes/option.php(1750): apply_filters('pre_set_site_tr...', Object(stdClass), 'update_plugins') #3 /home/thinkingheart/public_html/wp-includes/update.php(296): set_site_transient('update_plugins', Object(stdClass)) #4 /home/thinkingheart/public_html/wp-includes/class-wp-hook.php(286): wp_update_plugins('') #5 /home/thinkingheart/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #6 /home/thinkingheart/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /home/thinkingheart/public_html/wp-adm in /home/thinkingheart/public_html/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 2301

is this a known error? how can i restore those two pages and continue updating my site.

thanks,
emily

#1157243

A similar report here:
https://toolset.com/forums/topic/toolset-forms-commerce-incompatible-with-elementor-plus-other-issues/

- What PHP version is running on this server?
- Are any other plugins active? Temporarily deactivate all other plugins and activate a default theme like Twenty Seventeen, then retest.
- How much memory is allocated to your site? Try increasing to 256M or 512M if necessary.

#1162902

- the server is running PHP 7.0
- i had the memory increased to 256mb, then 512mb but no change
- i tried a different theme, but same result
- cant test the plugin deactivation since i cant get into the plugin section of the admin

- what i was able to do was clone the site using wp staging to try and debug on a staging site. weirdly though the issue did not transfer over to the staging site. any idea what that might mean?

#1163101

- cant test the plugin deactivation since i cant get into the plugin section of the admin
You can temporarily deactivate the Types plugin that is causing the error. Log in to the server using FTP and go to wp-content/plugins. Find the types folder and rename it to types-backup. Then go in wp-admin to the Plugins page. The Types plugin will be temporarily deactivated and you can try deactivating other plugins normally.

- what i was able to do was clone the site using wp staging to try and debug on a staging site. weirdly though the issue did not transfer over to the staging site. any idea what that might mean?
Not sure, but it could be a caching issue if your server uses object caching or another proprietary caching system. Disabling other plugins may help determine the problem there. The problem I linked to in another ticket was resolved several months ago, so I'm not sure if it's related. Please add your debug information to your next reply so I can see your site's configurations. We have an article that provides instructions here: https://toolset.com/faq/provide-debug-information-faster-support/

#1163110

i was able to deactivate types as you suggested, but then everything worked properly so i was not sure how to test for a conflict (sorry if im missing something obvious). i then reactivated types and the problem resumed. any hints in the debug info?

#1163164

Let's try a manual update, because I see in the debug that the system thinks Types 2.3.4 is installed. That's not the most current version, which could be related to a problem in the installer process. Please go to https://toolset.com/account/downloads to download a fresh copy of Types 3.2.1. Then return to your wp-admin area and delete the Types plugin. Install and activate the new copy and let me know if the problem is not resolved.

#1163174

ok... just did as you suggested but the issue persists.

i had deactivated types via ftp and was then able to delete it from the wp-admin. i uploaded a fresh install of: "types.3.2.1.zip" but the problem persists. i think the debug is reflecting the update (not sure though).

debug here:

{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/thinking-heart.com","HomeURL":"http:\/\/thinking-heart.com","Version":"4.9.8","PermalinkStructure":"\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp-types-group, wp-types-user-group, wp-types-term-group, essential_grid, games, resource","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, hidden"},"Server":{"jQueryVersion":"1.12.4","PHPVersion":"7.0.22","MySQLVersion":"5.6.41","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"512M","UploadMax":"128M","PostMax":"128M","TimeLimit":"0","MaxInputVars":"4000"}},"plugins":{"active_plugins":{"admin-menu-editor\/menu-editor.php":{"Name":"Admin Menu Editor","PluginURI":"http:\/\/w-shadow.com\/blog\/2008\/12\/20\/admin-menu-editor-for-wordpress\/","Version":"1.8.5","Author":"Janis Elsts","AuthorURI":"http:\/\/w-shadow.com\/blog\/","TextDomain":"admin-menu-editor","DomainPath":"","Network":false,"Title":"Admin Menu Editor","AuthorName":"Janis Elsts"},"beaver-builder-lite-version\/fl-builder.php":{"Name":"Beaver Builder Plugin (Lite Version)","PluginURI":"https:\/\/www.wpbeaverbuilder.com\/?utm_medium=bb\u0026utm_source=plugins-admin-page\u0026utm_campaign=plugins-admin-uri","Version":"2.1.6.3","Author":"The Beaver Builder Team","AuthorURI":"https:\/\/www.wpbeaverbuilder.com\/?utm_medium=bb\u0026utm_source=plugins-admin-page\u0026utm_campaign=plugins-admin-author","TextDomain":"fl-builder","DomainPath":"","Network":false,"Title":"Beaver Builder Plugin (Lite Version)","AuthorName":"The Beaver Builder Team"},"duplicator\/duplicator.php":{"Name":"Duplicator","PluginURI":"https:\/\/snapcreek.com\/duplicator\/duplicator-free\/","Version":"1.2.52","Author":"Snap Creek","AuthorURI":"http:\/\/www.snapcreek.com\/duplicator\/","TextDomain":"duplicator","DomainPath":"","Network":false,"Title":"Duplicator","AuthorName":"Snap Creek"},"easy-bootstrap-shortcodes\/osc_bootstrap_shortcode.php":{"Name":"Easy Bootstrap Shortcode","PluginURI":"http:\/\/www.oscitasthemes.com","Version":"4.5.4","Author":"oscitas","AuthorURI":"http:\/\/www.oscitasthemes.com","TextDomain":"easy-bootstrap-shortcodes","DomainPath":"\/languages","Network":false,"Title":"Easy Bootstrap Shortcode","AuthorName":"oscitas"},"essential-grid\/essential-grid.php":{"Name":"Essential Grid","PluginURI":"https:\/\/essential.themepunch.com","Version":"2.3.1","Author":"ThemePunch","AuthorURI":"https:\/\/themepunch.com","TextDomain":"essential-grid","DomainPath":"\/languages","Network":false,"Title":"Essential Grid","AuthorName":"ThemePunch"},"featured-image-admin-thumb-fiat\/featured-image-admin-thumb.php":{"Name":"Featured Image Admin Thumb","PluginURI":"https:\/\/www.seanhayes.biz","Version":"1.5.2","Author":"Sean Hayes","AuthorURI":"https:\/\/www.seanhayes.biz","TextDomain":"featured-image-admin-thumb-fiat","DomainPath":"\/languages","Network":false,"Title":"Featured Image Admin Thumb","AuthorName":"Sean Hayes"},"genesis-simple-edits\/plugin.php":{"Name":"Genesis Simple Edits","PluginURI":"http:\/\/www.studiopress.com\/plugins\/genesis-simple-edits","Version":"2.2.1","Author":"StudioPress","AuthorURI":"http:\/\/www.studiopress.com\/","TextDomain":"genesis-simple-edits","DomainPath":"\/languages","Network":false,"Title":"Genesis Simple Edits","AuthorName":"StudioPress"},"genesis-simple-sidebars\/plugin.php":{"Name":"Genesis Simple Sidebars","PluginURI":"http:\/\/www.studiopress.com\/plugins\/simple-sidebars","Version":"2.1.0","Author":"StudioPress","AuthorURI":"http:\/\/www.studiopress.com\/","TextDomain":"genesis-simple-sidebars","DomainPath":"\/languages\/","Network":false,"Title":"Genesis Simple Sidebars","AuthorName":"StudioPress"},"jellyfish-backdrop\/jellyfish-backdrop.php":{"Name":"Jellyfish Backdrop","PluginURI":"http:\/\/strawberryjellyfish.com\/wordpress-plugins\/jellyfish-backdrop\/","Version":"0.6.8","Author":"Robert Miller \u003Crob@strawberryjellyfish.com\u003E","AuthorURI":"http:\/\/strawberryjellyfish.com\/","TextDomain":"jellyfish-backdrop","DomainPath":"","Network":false,"Title":"Jellyfish Backdrop","AuthorName":"Robert Miller \u003Crob@strawberryjellyfish.com\u003E"},"types\/wpcf.php":{"Name":"Toolset Types","PluginURI":"https:\/\/toolset.com\/?utm_source=typesplugin\u0026utm_campaign=types\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"3.2.1","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"types","DomainPath":"","Network":false,"Title":"Toolset Types","AuthorName":"OnTheGoSystems"},"wordfence\/wordfence.php":{"Name":"Wordfence Security","PluginURI":"http:\/\/www.wordfence.com\/","Version":"7.1.18","Author":"Wordfence","AuthorURI":"http:\/\/www.wordfence.com\/","TextDomain":"wordfence","DomainPath":"","Network":true,"Title":"Wordfence Security","AuthorName":"Wordfence"},"wp-staging\/wp-staging.php":{"Name":"WP Staging","PluginURI":"https:\/\/wordpress.org\/plugins\/wp-staging","Version":"2.4.3","Author":"WP-Staging","AuthorURI":"https:\/\/wp-staging.com","TextDomain":"wp-staging","DomainPath":"\/languages\/","Network":false,"Title":"WP Staging","AuthorName":"WP-Staging"}},"mu_plugins":{"wp-staging-optimizer.php":{"Name":"WP Staging Optimizer","PluginURI":"https:\/\/wp-staging.com","Version":"1.1","Description":"Prevents 3rd party plugins from being loaded during WP Staging specific operations","Author":"René Hermenau","AuthorURI":"https:\/\/wp-staging.com","TextDomain":"","DomainPath":"","Network":false,"Title":"WP Staging Optimizer","AuthorName":"René Hermenau"}},"dropins":[]},"theme":{"Name":"Dynamik-Gen","ThemeURI":null,"Author":"\u003Ca href=\u0022https:\/\/cobaltapps.com\/\u0022\u003EThe Cobalt Apps Team\u003C\/a\u003E","AuthorURI":null,"Template":"genesis","Version":"2.4.7","TextDomain":null,"DomainPath":null},"extra-debug":{"types":{"add_resized_images_to_library":0,"register_translations_on_import":1,"images_remote":0,"images_remote_cache_time":"36","help_box":"by_types","hide_standard_custom_fields_metabox":"show","postmeta_unfiltered_html":"on","usermeta_unfiltered_html":"on"},"installer":{"version":"1.8.26","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","products":"http:\/\/d2salfytceyqoe.cloudfront.net\/wpml33-products.json","subscription":""},"toolset":{"api-url":"https:\/\/api.toolset.com\/","products":"http:\/\/d7j863fr5jhrr.cloudfront.net\/toolset33-products.json","subscription":{"key":"e1slMa6Fjl","data":{"subscription_type":"2704","expires":null,"status":"1"},"registered_by":1}}},"instances":{"\/home\/thinkingheart\/public_html\/wp-content\/plugins\/types\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/home\/thinkingheart\/public_html\/wp-content\/plugins\/types\/vendor\/otgs\/installer\/installer.php","version":"1.8.26","args":{"plugins_install_tab":"1","repositories_include":["toolset","wpml"]}}}}}}

#1163191

Okay thanks, at this point it's probably best for me to log in to your site so I can take a closer look. If necessary, I'll create a clone using the Duplicator plugin and try to run some additional tests on my local environment. If that's okay with you, please provide login credentials in the private reply fields here.

#1164003

I created a clone of your site using the Duplicator tool and installed it on my local environment. I deactivated all plugins except Types and activated Twenty Seventeen. I'm not seeing any fatal errors. So I updated to WordPress 5.0, and still no errors. I've tried using PHP 7.0.31 and 7.2.8, but no fatal errors. I can try running some additional tests on your live server, but I will need FTP access in case errors are triggered and I need to quickly deactivate plugins.

#1164155

Really strange. I ran quite a few tests, including unregistering the software and reregistering with a new key. I finally ended up switching to Twenty Seventeen after updating Types to 3.2.1, and suddenly the plugins page began working with Types active. So I reactivated the Dynamik-Gen theme, and the plugins page is still working! So something strange was going on, but it seems to have resolved itself. Since I registered using my own site key, I had to delete that registration. Please go to https://toolset.com/account/sites/ and delete the existing registration key for this site. Create a new key, and then register Toolset in wp-admin at hidden link

#1164783

My issue is resolved now. Thank you!

#1228811

we're also seeing this same error

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/fatal-error-uncaught-error-call-to-a-member-function-get_external_repo-2/

#1228849

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 site is broken ... because no update on the WP-Installation & PlugIns are happend!

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

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/split-fatal-error-uncaught-error-call-to-a-member-function-get_external_repo/