Support Forum

Fatal error on plugin update

UP Ulrick PERTIN
Ulrick PERTIN
Member

Having a bug on the uploader plugin, before investigating I though having an up-to-date SP was a good idea.

But I have the same problem as this user : https://simple-press.com/support-forum/pre-membership-queries/plugin-could-not-be-activated-because-it-triggered-a-fatal-error/#spEditFormAnchor

I’ve tried to update the plugin when it was activated and it gave me a blank page on front and backoffice.

I’ve reversed on a save and tried to update after having deactivated the plugin. The update was done but when I try to activate I  have a “Fatal Error”.

In my log I have :

PHP Fatal error:  Call to undefined function wp_doing_ajax() in /XXXX/www/wp-content/plugins/simple-press/sp-startup/site/sp-site-support-functions.php on line 179
PHP Fatal error:  Call to undefined function wp_doing_ajax() in /XXXX/www/wp-content/plugins/simple-press/sp-startup/sp-load-core-admin.php on line 29

Can you help me rapidly ? The forum is on a B2B site and my customer is not too patient.

3 Answers

New Answer

UP Ulrick PERTIN
Ulrick PERTIN
Member

After some research, founded that the wp_doing_ajax() function is a WP4.7 new hook.

As I have a 4.6 WP version, I will upgrade it and come back if the problem is still here.

UP Ulrick PERTIN
Ulrick PERTIN
Member

No more fatal error since the WP maj.

I’ve found the origin of the uploader plugin error “Uncaught Error: cannot call methods on button prior to initialization; attempted to call method ‘loading'”.

I have a new newsletter plugin which use bootstrap. Founded here that it conflict with jquery-ui.

I’ve disabled the loading of bootstrap on the forum page.