Support » Fixing WordPress » Mojor Break… Tried to fix, but no luck

  • babytommy

    (@babytommy)


    Hello everyone,
    I’ve got a rather large problem, I tried to do the update and my entire site broke (with no backups), and I’ve spent the last 5 hours trying to fix it… and I’m currently at the point where the SQL is re-connected, but unless I have debug mode on I get stuck in a redirect loop.

    Here’s what the debug is showing me, any help on attempting to get my site running again would be appreciated.

    
    Deprecated: Function create_function() is deprecated in /home/babytomm/public_html/wp-content/themes/basic/inc/woo-hooks.php on line 21
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/babytomm/public_html/wp-content/themes/basic/inc/woo-hooks.php:21) in /home/babytomm/public_html/wp-includes/pluggable.php on line 1251
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/babytomm/public_html/wp-content/themes/basic/inc/woo-hooks.php:21) in /home/babytomm/public_html/wp-includes/pluggable.php on line 1254

    I am also waiting on my server host to give me a restart. I had cleared out a few large files becuase it was failing to update before… but even with over 8GB free I still have a couple of plugins showing disk space issues in my error log, but those should go once it’s re-booted.

Viewing 5 replies - 1 through 5 (of 5 total)
  • aCstudent

    (@acstudent)

    Have you checked with your host? They may have a backup.

    babytommy

    (@babytommy)

    unfortunately, they don’t I’ve tried, and starting from scratch is impossible since I have data going back to 2014 from my (not long active) Tumblr account.

    Annoyingly this issue has made it to where I am unable to access any of my site, so am only able to update admin biased settings via phpMyAdmin.

    Also, I can say the SQL update for the new version worked, as I was able to get that part up before it started spuing out errors.

    From what I’ve been able to figure out so far, all errors go back to the woo-hooks.php & pluggable.php

    Joy

    (@joyously)

    The errors you show are not any problem. The first is the only concern, because the others are showing only because the first is printed out. The deprecation warning is because of your PHP version. One of your plugins or theme is using create_function, which will be an error in a future version of PHP (it still works on your version).

    You don’t say what the redirect loop is doing. Check the .htaccess file to see if you have made it redirect in a loop.

    babytommy

    (@babytommy)

    the redirect loop is loading any page you go to over and over, well trying to load but doesn’t… and there’s a problem when it comes to access, for some reason, it’s locked down and hidden to me.

    I swear once I get my site up again I’m moving hosts

    UPDATE: I now have access to .htaccess
    Here’s what it’s got

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    # Wordfence WAF
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    # END Wordfence WAF
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php72” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddType application/x-httpd-php .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    

    Also Sidenote, I no longer use wordfence so removed that part, reducing it to

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php72” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddType application/x-httpd-php .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit

    here’s what’s happening with the redirect
    https://gyazo.com/f39d21a0d788c385844b69bf109245d3

    • This reply was modified 2 months ago by  babytommy.
    • This reply was modified 2 months ago by  babytommy. Reason: Added gif showing what' the loop does
    • This reply was modified 2 months ago by  babytommy.
    JNashHawkins

    (@jnashhawkins)

    I’ve been thinking about this one for the last few hours just trying to figure out what in the world could have wiped out your backups including the one on the thumb drive that’s stored in your fireproof safe at the office!

    The only thing I can figure is, maybe you never had any backups! Right?

    Anyway, we all learn something from these things.

    So, I’m seeing a pluggable issue here and that’s usually the theme causing that.

    First, kill your theme by renaming it via FTP or your Control Panel’s file manager which should cause WordPress to swap in the default theme if it can find one. Hopefully, that will fix things.

    Do a real good backup… files and database. I like upDraftPlus for that.

    Now you should be in a better place to fix things.

    https://www.wpbeginner.com/wp-tutorials/how-to-fix-pluggable-php-file-errors-in-wordpress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.