Support Forum

Fatal Error on Install Functions PHP Line 3847

31 Answers

New Answer

MP Mr Papa
Mr Papa
Member

can you try something for me?

if file simple-press/sp-api/sp-api-error.php, can you make a couple code changes?

line 34, change

    global $spStatus;

to

    global $spStatus, $wpdb;

then after line 35, which is

    if (!isset($spStatus) || (isset($spStatus) && $spStatus != ‘ok’)) return;

can you add this:

$success = $wpdb->get_var(“SHOW TABLES LIKE ‘”.SFERRORLOG.”‘”);
if ($success == false) return;

and then similarly at line 79, change

    global $spPaths, $spStatus;

to

    global $spPaths, $spStatus, $wpdb;

and after line 80, which is

    if (!isset($spStatus) || (isset($spStatus) && $spStatus != ‘ok’)) return;

can you add this:

$success = $wpdb->get_var(“SHOW TABLES LIKE ‘”.SFERRORLOG.”‘”);
if ($success == false) return;

and see if that gets you going…

TE temporal
temporal
Member

and see if that gets you going…

SUCCESS!   Strike up the band!

Thank you very much!

 

 

 

DN Douglas Norton
Douglas Norton
Member

Plugin could not be activated because it triggered a fatal error.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /problem-with-post-edit-buttonome/beyond/public_html/members/wp-includes/functions.php on line 3761

 

ACTIVATION ONLY, server meets all requirements.

TE temporal
temporal
Member

Douglas Norton said

Plugin could not be activated because it triggered a fatal error.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /problem-with-post-edit-buttonome/beyond/public_html/members/wp-includes/functions.php on line 3761

 

ACTIVATION ONLY, server meets all requirements.

If you’re looking for a potential fix, see Mr. Papa’s 9/30 4:21 PM reply in this thread.  Those instructions worked great for me when I got a similar error when activating SP in a brand new WP multi-site installation.

 

YS Yellow Swordfish
Yellow Swordfish
Member

And we will almost certainly put out a quickie update to fix this problem later today.
Apologies to those affected.

DN Douglas Norton
Douglas Norton
Member

I did think about that, but i noticed yours was a different line on the functions.php

 

if that will work for me as well someone just chime in and i’ll give it a shot.

TE temporal
temporal
Member

I saw detail that after I had replied.    I’ll leave it up to minds far more knowledgeable than mine to get you that answer. :-)

YS Yellow Swordfish
Yellow Swordfish
Member

Oh my I missed that.

What version exactly of WP is this please?

YS Yellow Swordfish
Yellow Swordfish
Member

Ahhh! One version no longer have a copy of!
However – SP 5.3.2 requires WP 3.6 because of WP changes that needed supportive changes in our code.

DN Douglas Norton
Douglas Norton
Member

so an upgrade to the latest version will fix my issues?

MP Mr Papa
Mr Papa
Member

No… but you do need to upgrade to wp 3.6 to use the version of sp you have – separate from the error in title..

You either need to incorporate the changes here:  https://simple-press.com/support-forum/sp5-general-topics/fatal-error-on-install-functions-php-line-3847/page-2/#p133234

or wait for the release this afternoon of the 5.3.3 version…

DN Douglas Norton
Douglas Norton
Member

Ok i’ll just wait for the 5.3.3 version 

MP Mr Papa
Mr Papa
Member

Its been released… but you still should be on wp 3.6+…