Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Fatal Error - Memory Size (upon installing third SP plugin)
Avatar
Mark Hallet
Member
sp_UserOfflineSmall Offline
Aug 10, 2015 - 1:42 am

Hey all,

I purchased a Gold Membership today and wasted no time adding three plugins to Simple Press.

  1. Subscriptions 
  2. Tiny MCE
  3. BuddyPress

Upon uploading the third plugin (BuddyPress) I received the following error:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /home/mhallet/public_html/home/wp-includes/cache.php on line 512

I have only a general awareness of php, so I wanted to get your guys' opinions before I start throwing wrenches around near moving parts. All I did was upload the plugin using the SP plugin uploaded from the WordPress admin panel. I did not upload any of the new plugins through an FTP or anything of the sort.

This is a time sensitive matter as my site forum is down with the error message until things clear up.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2015 - 3:02 am

Put simply, the 'bigger' your website then the more php memory it needs to successfully run. Every WP theme option and every extra plugin ups the requirements. And you have run out! Or at least you are running out during some memory intensive operations.

As the years have gone by the core WordPress requirements have gone up and up and both BuddyPress and Simple:Press a both largish before we take into consideration any other plugins you may have.

Normally I would point you to our FAQ on the subject (https://simple-press.com/docum.....of-memory/) and it would still be worth giving that quick solution a try. But you are clearly already consuming 256MB so you will need to adjust the value higher than that.

It is also always a good time to just check that you are not loading anything you do not need or no longer want. Any WP plugins that you may have tried out once but not deactivated etc., all add to the dstarin of your php memory needs. Of you can lighten that load it is always worth it whether you are close to the edge or not.

In the end you may need to ask your host for a lift. In my own experience they are usually not hostile to such requests.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Hallet
Member
sp_UserOfflineSmall Offline
Aug 10, 2015 - 3:16 am

Thanks for the quick reply.

I have been in contact with my host. They say there are no problems on their end regarding my site.

I have also tried increasing the WP_MEMORY_LIMIT to 512M, to no avail. Increasing it to 1024M did not work either.

At this point everything I'm reading says I should start looking at my .htaccess file. Is this the right way to go?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2015 - 3:21 am

I am not that knowledgeable on htaccess I am afraid. Mr Papa knows more but he will be sleeping now!

If you are getting an our of memory error with 512MB set then I would suspect that your host is not allowing that sort of dynamic increase suggesting as we said, that you may need to ask them for an actual increase.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Hallet
Member
sp_UserOfflineSmall Offline
Aug 10, 2015 - 3:28 am

Ok, I also edited the default-constants page (located in wp-includes. I no longer get the error, but my site is taking a ridiculously long time to load if it even loads at all. 

At this point I'd just like to disable the new SP plugins I bought so my forum is as least operational. Is there a way to do this from my hosting admin panel? I'm grasping for any kind of solution that will get my site back online and I'll tinker more offline.

Avatar
Mark Hallet
Member
sp_UserOfflineSmall Offline
Aug 10, 2015 - 3:50 am

Well, for the time being I have renamed the SP plugin so it deactivated itself. As soon as I restore the original name I get the same memory problems and my site is constantly trying to load.

I will look at ways I can reduce memory usage, but I think that there's a bigger underlying issue. My SP forum is offline for now, unfortunately, but at least the rest of the site is operational now. Hopefully we can resolve this soon.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2015 - 3:59 am

Sorry - I was just about to come back and say that this doesn't sound like a normal memory issue.

So - it is the BuddyPress Integration plugin you are having the issue with. Is that right? Are all other non-SP components up to date? WordPress itself and the main BuddyPress plugin? I know there was an issue at some stage quite a while back with a BP setting bit as far as I was aware this had all been resolved. I will see if I can find the thread...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Hallet
Member
sp_UserOfflineSmall Offline
Aug 10, 2015 - 4:06 am

All plugins and themes are up to date. I am also using the latest version of WordPress.

I believe the problem is with the BuddyPress addition, but I can't really isolate it to be certain (at least I don't know how to). I have not had any fatal errors regarding memory in a long time, and it happened pretty much instantly after I used the SP auto-installer for the BuddyPress addition.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2015 - 4:07 am

Found it... there was an issue over a year ago that would cause a memory error when the notifications module of buddypress was disabled. This was, of course, fixed.

On that particular occasion, @mr-papa - who works our BP plugin, suggested that the user...

uninstall our buddypress plugin…  deactivate the wp buddypress plugin… activate our buddypress plugin.. then activate the wp buddypress plugin… 

And the user came back and said that this resolved it. Trouble is, I have no idea why he made that suggestion! Might be worth a quick try...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Hallet
Member
sp_UserOfflineSmall Offline
Aug 10, 2015 - 4:11 am

Is there a way to uninstall the SP BuddyPress plugin without the SP plugin being activated? As soon as I activate the SP plugin, my site bogs right down and I can't do a thing.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625