Thread Starter
iJohnF
(@ijohnf)
And now I got this:
Fatal error: Out of memory (allocated 49807360) (tried to allocate 35 bytes) in /home/johnf111/public_html/wp-admin/includes/misc.php on line 72
While trying to load up the admin panel
iJohnF,
Sorry to hear about your problems.
One way to hopefully get past the memory issue is to place one line of code in your functions.php file of your active theme.
ini_set('memory_limit', '128M');
This shouldn’t be a permanent fix, but it’ll allow you to load the site and begin doing some more trouble shooting.
Thread Starter
iJohnF
(@ijohnf)
Thanks a ton tollmanz, I’ll see what I can do with that.
Also I deleted and reset the .htaccess file. It seemed to do something as now my admin panel loads up as well as the website, but none of the images show.
If anyone looks at ironzilla.com, can you tell me how it looks like on your comp (ie if the images load). I’d greatly appreciate it.
The site looks fine to me. Images are loading, at least on the homepage anyways. Hope you got your problems fixed.
Thread Starter
iJohnF
(@ijohnf)
Thanks for checking it out Harmck, and yeah I managed to get everything up to speed and normal again.
So for future references and anyone else that has this problem here’s what I did:
Problem: I deleted a ton of categories with 100’s of posts in them. Turns out this must’ve completely messed up my .htaccess file (it was incredibly huge and had tons of repeat code).
Solution: All I did was delete my .htaccess file and let WordPress create me a new one.
If you don’t know how to manually delete it: For Cpanel users, click on File Manager, and on the pop-up check the box that says Show Hidden Files. This will allow you to see the .htaccess file. you can delete it and let WordPress work it’s magic, or delete and then create a new one with the following code in it:
# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This will reset your .htaccess file and stop your site from slowing down to an utter hault. Turns out your php files will be making so many calls that your website will run out of memory to compile your homepage (or any other pages for that matter).
For further precationary measures I also repaired and optimized my database and enabled the Super W3 Cache Plugin. So now I’ll have a successful game launch come wednesday.
Cheers!
I’ll keep this in mind if I ever attempt clearing out old categories. Thanks for the explanation of your solution.