FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Click "Category Manager" = Fatal Error out of memory (Can't open Category Manager in forum admin after upgrade to 3.0.9RC1)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Click "Category Manager" = Fatal Error out of memory [message #187530] Mon, 23 July 2018 02:23 Go to next message
Elliaison is currently offline  Elliaison   United States
Messages: 18
Registered: February 2011
Karma: 0
Junior Member
I upgraded to the latest version and now, when I go into the admin area and click "Category Manager" I get the following error,

Quote:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home8/mastert4/public_html/elliaison/forum/adm/admcat.php on line 120
Any ideas?

Thanks for your time!!!
Re: Click "Category Manager" = Fatal Error out of memory [message #187531 is a reply to message #187530] Mon, 23 July 2018 15:17 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Please try to do a "Forum Consistency" check on your forum to see if it will help.

PS: What version of FUDforum are you using and how many categories do you have?
Re: Click "Category Manager" = Fatal Error out of memory [message #187532 is a reply to message #187531] Mon, 23 July 2018 20:58 Go to previous messageGo to next message
Elliaison is currently offline  Elliaison   
Messages: 18
Registered: February 2011
Karma: 0
Junior Member
Thank you for looking into this.

Forum version information is as follows:

FUDforum version: 3.0.9RC1
PHP version: 5.6.32
PHP built on: Linux host358.hostmonster.com 3.10.0-693.11.6.1.ELK.el6.x86_64 #1 SMP Tue Jan 23 10:30:30 MST 2018 x86_64
Database type: mysql (mysqli)
Database version: 5.6.32-78.1
Web server: Apache
Web Server load: 4.36
Web server to PHP interface: cgi-fcgi


After running the Consisteny Checker, I get the same error.

Here's the output of the Consisteny Checker in case you see something I don't:

Consisteny Checker progress
Disabling the forum for the duration of maintenance run.
Validating lock and view tables
Done: Validating lock and view tables
Locking the database for checking
Locked!
Validating category order
Done: Validating category order
Checking if moderator and users table match
OK
Rebuilding moderators
Done: Rebuilding moderators
Checking if all private messages have users
OK
Checking messages against users & threads
OK
Checking threads against forums
OK
Checking message approvals
Done: Checking message approvals
Checking threads against messages
OK
Checking thread last & first post ids
Done: Checking thread last & first post ids
Checking forum & topic relations
Done: Checking forum & topic relations
Validating Forum Order
Done: Validating Forum Order
Checking thread_exchange
OK
Checking read table against users & threads
OK
Checking file attachments against messages and private messages
OK
Rebuild attachment cache for regular messages
Done: Rebuild attachment cache for regular messages
Rebuild attachment cache for private messages
Done: Rebuild attachment cache for private messages
Correcting Attachment Paths...
Validate the forum's stats cache
Checking message reports
OK
Checking polls against messages
OK
Checking messages against polls
Checking polls options against polls
OK
Checking polls votes
OK
Rebuilding poll cache
Done: Rebuilding poll cache
Validating poll activation
Done: Validating poll activation
Checking smilies against disk files
OK
Checking disk files against smilies
OK
Rebuild Smiley Cache
Rebuild Custom Field Cache
Rebuild Announcement Cache
Rebuild Plugin Cache
Rebuild Spider Cache
Checking topic notification
Checking topic bookmarks
Checking forum notification
Checking search indexes
Checking topic votes against topics
OK
Rebuild topic rating cache
Done: Rebuild topic rating cache
Rebuilding user ranks, message counts & last post ids
Done: Rebuilding user levels, message counts & last post ids
Checking buddy list entries
OK
Checking ignore list entries
OK
Rebuilding buddy list cache
Done: Rebuilding buddy list cache
Rebuilding ignore list cache
Done: Rebuilding ignore list cache
Rebuilding ip filter cache
Done: Rebuilding ip filter cache
Rebuilding login filter cache
Done: Rebuilding login filter cache
Rebuilding email filter cache
Done: Rebuilding email filter cache
Rebuilding extension filter cache
Done: Rebuilding extension filter cache
Rebuilding custom tags for users
Done rebuilding custom tags for users
Validating group resources
OK
Done: Validating group resources
Validating group validity
OK
OK
Done: Validating group validity
Validating group members
OK
Done: Validating group members
Validating group/forum relations
Done: Validating group/forum relations
Validating group/forum names
Done: Validating group/forum names (fixed: 0 relations)
Validating group/primary user relations
Done: Validating group/primary user relations
Rebuilding group leader cache
Done: Rebuilding group leader cache
Rebuilding group cache
Done: Rebuilding group cache
Validating User/Theme Relations
Done: Validating User/Theme Relations
Correcting Avatar Paths...
Rebuilding Forum/Category order cache
Done: Rebuilding Forum/Category order cache
Remove absolete entries inside sessions table
Done: Removing absolete entries inside sessions table
Remove old action log entries (older than 90 days)
Done: Removing old action log entries
Rebuilding Topic Views
Done: Rebuilding Topic Views
Unlocking database
Database unlocked
Cleaning forum's tmp directory
Done: Cleaning forum's tmp directory
Cleaning forum's error log files
Done: Cleaning forum's error log files
Validate GLOBALS.php
Done: Validate GLOBALS.php
Validating symlinks to GLOBALS.php
Done: Validating symlinks to GLOBALS.php
Re-enabling the forum.
DONE!

--- Then run the Database Optimizer ---

Database Optimizer progress
Disabling the forum for the duration of maintenance run.
Optimizing forum's SQL tables.
Done: Optimizing forum's SQL tables.
Re-enabling the forum.

Any other ideas?

Thank you for your valuable time on this!!!!

Re: Click "Category Manager" = Fatal Error out of memory [message #187533 is a reply to message #187532] Tue, 24 July 2018 01:49 Go to previous messageGo to next message
GaryM is currently offline  GaryM
Messages: 118
Registered: May 2013
Location: Seattle
Karma: 3
Senior Member
Not a developer here but your PHP is behind the times as mine was and I updated to PHP: 7.2.7. That fixed a backup problem due to an obsolete call in PHP. Also 3.0.9 is now in production.



[Updated on: Tue, 24 July 2018 02:18]

Report message to a moderator

Re: Click "Category Manager" = Fatal Error out of memory [message #187534 is a reply to message #187533] Tue, 24 July 2018 14:38 Go to previous messageGo to next message
Elliaison is currently offline  Elliaison   
Messages: 18
Registered: February 2011
Karma: 0
Junior Member
Oh, good call. I thought it was auto updated by my hosting service. I'll update now and report the results.

Thank you!

Re: Click "Category Manager" = Fatal Error out of memory [message #187535 is a reply to message #187534] Tue, 24 July 2018 15:13 Go to previous messageGo to next message
Elliaison is currently offline  Elliaison   
Messages: 18
Registered: February 2011
Karma: 0
Junior Member
Ok, I upgraded the PHP. My hosting service doesn't let me upgrade to the latest stable version, but close to it? The error message changed slightly, but perhaps meaningfully...

FUDforum version: 3.0.9RC1
PHP version: 7.0.25
PHP built on: Linux host358.hostmonster.com 3.10.0-693.11.6.1.ELK.el6.x86_64 #1 SMP Tue Jan 23 10:30:30 MST 2018 x86_64
Database type: mysql (mysqli)
Database version: 5.6.32-78.1
Web server: Apache
Web Server load: 4.66
Web server to PHP interface: cgi-fcgi
WebServer User/Group: mastert4 / mastert4 (2496/2496)
Relevant PHP settings:
Safe mode: OFF
Open basedir: none
Display errors: ON
File uploads: ON
Maximum file upload size: 64M
Output buffering: No
Disabled functions: dl
PSpell support: Yes
Zlib support: Yes


Here's the new error... (It used to be allocating 72 bytes, now it is trying to allocate a HUGE number of bytes) Before it was always 72 bytes and now it is always 268435464 bytes.

Quote:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 268435464 bytes) in /home8/mastert4/public_html/elliaison/forum/adm/admcat.php on line 120
I've also clicked on every other option under the forum administrator Control panel section and none of them has this error except the Category Manager.
Re: Click "Category Manager" = Fatal Error out of memory [message #187536 is a reply to message #187535] Tue, 24 July 2018 16:46 Go to previous messageGo to next message
GaryM is currently offline  GaryM
Messages: 118
Registered: May 2013
Location: Seattle
Karma: 3
Senior Member
If I see this correctly PHP is trying to allocate 268 MB

So take a look in your detailed PHP settings: Admin --> System Info --> Detailed PHP Info

Look for this line in the Core section "memory_limit 90M" - Mine is set for 90MB

I suspect you've exhausted this setting in your php.ini. You might want to increase that to 384M or something similar.

I'm surely not the expert but google and some poking around on my forum give me some clues. I hope this helps...


Re: Click "Category Manager" = Fatal Error out of memory [message #187537 is a reply to message #187536] Tue, 24 July 2018 19:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I have "memory_limit" set to 128M.
Unless you have massive amount of categories and forums, the default should be adequate.

[Updated on: Tue, 24 July 2018 19:05]

Report message to a moderator

Re: Click "Category Manager" = Fatal Error out of memory [message #187538 is a reply to message #187536] Thu, 26 July 2018 15:44 Go to previous messageGo to next message
Elliaison is currently offline  Elliaison   
Messages: 18
Registered: February 2011
Karma: 0
Junior Member
I checked the memory limit it was set to 256MB which should be enough. I only have about 20 categories to display. But I increased it to 512MB to see what happens.

Now, the error changes to include the increased memory. Here is the new error:

Quote:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 536870920 bytes) in /home8/mastert4/public_html/elliaison/forum/adm/admcat.php on line 120
I'm starting to think I have a bug that is trying to use the maximum memory available plus 8? (I noticed that it is trying to allocate 8 bytes of memory more than the allowed memory. I looked back at the previous error and saw that it also was trying to allocate exactly 8 bytes of memory more than the total memory allowed.)

Any other ideas?

[Updated on: Thu, 26 July 2018 15:47]

Report message to a moderator

Re: Click "Category Manager" = Fatal Error out of memory [message #187539 is a reply to message #187538] Thu, 26 July 2018 16:20 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I can maybe check it out over the weekend if you give me admin access to your forum.
PM me the details if you want to continue.
Re: Click "Category Manager" = Fatal Error out of memory [message #187540 is a reply to message #187539] Sun, 29 July 2018 13:53 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Fix is available at https://sourceforge.net/p/fudforum/code/6181/
Re: Click "Category Manager" = Fatal Error out of memory [message #187541 is a reply to message #187540] Sun, 29 July 2018 20:46 Go to previous message
Elliaison is currently offline  Elliaison   
Messages: 18
Registered: February 2011
Karma: 0
Junior Member
Thank you so much!

What is the best way to say thank you?


[Updated on: Sun, 29 July 2018 20:47]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Profile page Upgrade issue
Next Topic: upgrade from 3.07 to 3.09 fails
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 11 21:10:55 GMT 2024

Total time taken to generate the page: 0.02766 seconds