solved Problems with Forum

alt=
@dim
9 years ago
167 posts
I get an error when I want to view the topic.
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 83883233 bytes) in /public_html/modules/jrCore-release-5.2.41/lib/util.php on line 1102
I get the same error when I want to look in the DataStore Browser in /forum/browser.
That topic has 44 posts.
Other topics can be read without errors.
Please help solve the problem.
updated by @dim: 02/25/16 02:03:55AM
brian
@brian
9 years ago
10,148 posts
dim:
I get an error when I want to view the topic.
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 83883233 bytes) in /public_html/modules/jrCore-release-5.2.41/lib/util.php on line 1102
I get the same error when I want to look in the DataStore Browser in /forum/browser.
That topic has 44 posts.
Other topics can be read without errors.
Please help solve the problem.

This is not forum related - something is messed up in the query - this error indicates it is trying to use MORE than 256mb of RAM, which the forum doesn't do. There's something embedded in that topic that is causing some sort of loop - check your Error Log.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@dim
9 years ago
167 posts
Hi Brian,

PHP Error Log:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 83883233 bytes) in /public_html/modules/jrCore-release-5.2.41/lib/util.php on line 1102
Activity log:
[admin]: Query Error: MySQL server has gone away
I do not know how to fix it.
alt=
@dim
9 years ago
167 posts
That topic contains 5 pages
/forum/53/bla-bla/p=1
/forum/53/bla-bla/p=2
...
/forum/53/bla-bla/p=5
I can not open any of them.
So I think there is no problem in the contents topic.
alt=
@dim
9 years ago
167 posts
Now I have found the last message of that topic in the database. It contains plain text. I moved this message to another topic. Now both topics are opened with any problems.
If I write a new message in that topic, it breaks again - I get an error and can not read the topic. Topic can be read if the topic contains 43 messages and it does not open, if the topic contains 44 posts.

And the new error message in the PHP Error Log:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 150237216 bytes) in /public_html/modules/jrCore-release-5.2.41/lib/misc.php on line 248 [x 2]

updated by @dim: 11/20/15 11:28:51AM
brian
@brian
9 years ago
10,148 posts
This looks like you have a recursive trigger call - do you have any custom modules running on your site?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@dim
9 years ago
167 posts
brian:
This looks like you have a recursive trigger call - do you have any custom modules running on your site?

Yes, I've created a couple of modules using the Aparna.
brian
@brian
9 years ago
10,148 posts
dim:
brian:
This looks like you have a recursive trigger call - do you have any custom modules running on your site?

Yes, I've created a couple of modules using the Aparna.

Aparna should not be a problem. Are you running the Jamroom Core 5.3.0 beta? This error appears to be happening at a trigger location - that tells me it's going off and not coming back, and getting stuck in a loop, but I've not seen that before in regards to the forum.

I would have to have your FTP login and password, and site login and password and the URL that I can see it happening at in order to tell you what is going on. You can send that to support [at] jamroom [dot] net and I will try to check that out when I get a chance.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@dim
9 years ago
167 posts
Brian,

I am using the Jamroom Core 5.2.41.

I sent you my e-mail.

Thank you for all your help.
brian
@brian
9 years ago
10,148 posts
Root cause if this issue was that the MySQL max_allowed_packet was set to only 1mb (one megabyte). The new JR core 5.3.0 will have a check in the System Check tool for this going forward.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags