Hi guys, I was working on a script and accidentally set it to ‘Everywhere’ and now my site is broken (front and back end). I get the ‘There has been a critical error on this website.’ erro message and so I cannot disable or delete the script to fix it.

If I change the ‘/wp-content/plugins/scripts-organizer’ folder to ‘.disable’ at the end, my site works again – but the problem is I want to be able to use SCORG but of course as soon as I enable it I get the error again.

I switched on WP_DEBUG and this is the error I get:

Fatal error: Uncaught Error: Call to undefined function is_user_logged_in() in /var/web/site/public_html/wp-includes/class-wp-query.php:2590 Stack trace: #0 /var/web/site/public_html/wp-includes/class-wp-query.php(3586): WP_Query->get_posts() #1 /var/web/site/public_html/wp-includes/class-wp-query.php(3718): WP_Query->query(Array) #2 /var/web/site/public_html/wp-content/uploads/scripts-organizer/237.php(7): WP_Query->__construct(Array) #3 /var/web/site/public_html/wp-content/plugins/scripts-organizer/includes/scorg-php-scripts-everywhere.php(65): require_once(‘/var/web/site/p…’) #4 /var/web/site/public_html/wp-content/plugins/scripts-organizer/includes/scorg-php-scripts-everywhere.php(57): SCORG_everywhere->SCORG_php_everywhere_only_load_file(‘/var/web/site/p…’) #5 /var/web/site/public_html/wp-content/plugins/scripts-organizer/includes/scorg-php-scripts-everywhere.php(44): SCORG_everywhere->SCORG_php_everywhere_display_option(237, ”) #6 /var/web/site/public_html/wp-content/plugins/scripts-organizer/includes/scorg-php-scripts-everywhere.php(7): SCORG_everywhere->SCORG_everywhere_scripts() #7 /var/web/site/public_html/wp-content/plugins/scripts-organizer/includes/scorg-php-scripts-everywhere.php(70): SCORG_everywhere->__construct() #8 /var/web/site/public_html/wp-content/plugins/scripts-organizer/scripts-organizer.php(76): require_once(‘/var/web/site/p…’) #9 /var/web/site/public_html/wp-settings.php(428): include_once(‘/var/web/site/p…’) #10 /var/web/site/public_html/wp-config.php(95): require_once(‘/var/web/site/p…’) #11 /var/web/site/public_html/wp-load.php(50): require_once(‘/var/web/site/p…’) #12 /var/web/site/public_html/wp-blog-header.php(13): require_once(‘/var/web/site/p…’) #13 /var/web/site/public_html/index.php(17): require(‘/var/web/site/p…’) #14 {main} thrown in /var/web/site/public_html/wp-includes/class-wp-query.php on line 2590 Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/web/site/public_html/wp-includes/functions.php on line 5831 Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/web/site/public_html/wp-includes/functions.php on line 5831

 

So my question is – how can I delete this one problem script in SCORG, when I cannot get into SCORG to delete it??

Many thanks in advance for your help,

Keith

3 responses to “Making my Script ‘Everywhere’ broke my site”

  1. akcreation says:

    Hi, just wanted to say thank you – with this I was able to to access and delete the offending script and fix my site 🙂

Leave a Reply

Your email address will not be published.