Posts tagged "Wordpress"

.htaccess Redirect Hackers

I know it’s seems like an odd title of a post but let me explain. It turns out I wasn’t the only one. Hopefully if you’re dealing with some hack and re-directs on your site, this will help you out.

Now I don’t know if it happens to be a coincidence or not but during the same time the TimThumb hack came around, I had a lot of old sites and old clients having issues. For the most part, the fix was easy. Update the thumb.php file and you’re good to. Only for some, they let it go too long and had serious issues to deal with because of it.

One particular site I had got slapped by Google and I for the life of me couldn’t figure it out. I ran through all the usual checks, updated files, checked for malicious files and then would request a review from Google to remove the block. After quite a few tries with Google requests and not being successful it turned out it was sitting right under my nose, literally.

Like I said, this was after quite a few tries with Google and I finally noticed the issue Google was having when trying to verify the site was because it was being re-directed to some Russian site. If it was re-directing, it had to do with the .htaccess file. I popped open the .htaccess and sure enough, I scrolled down almost 100 lines and there’s a whole list of re-directs and encrypted code.

DELETE that shi.

Fatal error: Allowed memory size of 33554432 bytes exhausted

Epic WordPress Fail

If you’re seeing this error, I’ve hopefully got a solution for you!

Over the last 4-5 days, I’ve been literally locked out of my WordPress admin because of this “fatal error”.

After launching my Rockstar Marketing Series, this of course would need happen. If you’ve been following my series on SEO & now PPC, I’m sorry I haven’t posted in bit but I have a good reason!

When I upgraded my version of WordPress to 2.8.2 I received this fatal error message. I was able to see the frontend homepage, posts & pages but whenever I tried to login to dashboard or to even edit a post I got an error like this:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/theblogb/public_html/jrfarr/wp-includes/wp-db.php on line 824

I of course started Googling on how to fix the error. I tried and tried to get into the database and find the bug. Based of other peoples experiences there were a few solutions but nothing was working for me.

What’s the Solution?

Step 1: Find wp-settings.php and at line 13, increase the memory limit from 32M to 96M. Or whatever number suits your fancy. You’ll be looking for the memory limit section of this file like this:

if ( !defined('WP_MEMORY_LIMIT') )
 define('WP_MEMORY_LIMIT', '32M');

Again on line 13, change it from 32M to 64M or 96M, etc.

Immediately after increasing the memory limit I was able to login without any errors. You can of course, leave your memory limit that high and you most likely won’t have anymore issues. But then you’ll find that  your site will start chugging pretty slow as it’s trying to allow too much memory at once.

Step 2: Deactive ALL plugins  & Re-Activate.

As you begin re-activating each plugin, change the memory limit back to the original 32M and see if the error comes back. Eventually, I found that the “Lifestream” plugin was causing the error after I had upgraded to WordPress 2.8.2.

After deleting the Lifesream plugin and setting my memory back to 32M, I was good to go.

Now what?

One thing to always remember with WordPress, is you can’t trust all the plugins that are available. Use them at your own risk.

And Finally, I can get back to the new Rockstar PPC Series and the rest of the Rockstar Marketing installments. Hopefully, if anyone else has the same problem, they’ll find my solution useful.

Stay tuned as I get back on track with the Rockstar PPC Series.