2020-12-28, 01:15 PM
As title says, I want to create a MyBB PHP error to verify an error log is written. I'm not certain permissions are correct. Admin CP configuration is for log and email, warnings and errors to ./error.log This file does not exist at this time. I can easily modify a core file temporarily if necessary.
1. Do I need to create the empty log file for this function to work?
2. Or, are the following errors outside the scope of MyBB error logging?
The server log shows 2 lines of "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2630545 bytes) in /home/account/public_html/forum/search.php on line 844"
Another instance shows 6 lines of "PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9437184 bytes) in /home/account/public_html/forum/inc/functions_search.php on line 1697"
Neither memory allocation errors are dated but are sandwiched between other log entries. The first occurred between Dec 22 and Dec 20, while the second one occurred between Dec 8 and Dec 15.
Server was put into production status on December 7th.
Some PHP info:
PHP 7.4.13
display_errors On
max_file_uploads 20
memory_limit 128M
post_max_size 16M
report_memleaks On
upload_max_filesize 8M
Currently running 1.8.21, preparing to update to 1.8.24
[edit to add] forum content is graphic heavy. A post may have 50 images, a thread may have 3 or 4 such posts interspersed with commentary.
1. Do I need to create the empty log file for this function to work?
2. Or, are the following errors outside the scope of MyBB error logging?
The server log shows 2 lines of "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2630545 bytes) in /home/account/public_html/forum/search.php on line 844"
Another instance shows 6 lines of "PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9437184 bytes) in /home/account/public_html/forum/inc/functions_search.php on line 1697"
Neither memory allocation errors are dated but are sandwiched between other log entries. The first occurred between Dec 22 and Dec 20, while the second one occurred between Dec 8 and Dec 15.
Server was put into production status on December 7th.
Some PHP info:
PHP 7.4.13
display_errors On
max_file_uploads 20
memory_limit 128M
post_max_size 16M
report_memleaks On
upload_max_filesize 8M
Currently running 1.8.21, preparing to update to 1.8.24
[edit to add] forum content is graphic heavy. A post may have 50 images, a thread may have 3 or 4 such posts interspersed with commentary.