My php-errors.log file is huge - can I delete it?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Zinnn
Registered User
Posts: 97
Joined: Sun Apr 21, 2019 8:14 am

My php-errors.log file is huge - can I delete it?

Post by Zinnn »

I was just about to update my forum to the latest version, and noticed that the php-errors.log file is over 2GB in size!

No idea why, is it ok to delete it completely?
User avatar
Crizzo
Translations & International Support Teams Manager
Translations & International Support Teams Manager
Posts: 1734
Joined: Thu Apr 23, 2009 1:20 pm
Location: Stuttgart, Germany
Name: Christian

Re: My php-errors.log file is huge - can I delete it?

Post by Crizzo »

Hi,

First you should check the entries and see if you still need to fix those errors or if they are all old. Then you can delete the file content.

Regards
My extensions for phpBB: CDB
German phpBB Support at www.phpbb.de
Zinnn
Registered User
Posts: 97
Joined: Sun Apr 21, 2019 8:14 am

Re: My php-errors.log file is huge - can I delete it?

Post by Zinnn »

Crizzo wrote: Fri Jun 14, 2024 3:59 pm Hi,

First you should check the entries and see if you still need to fix those errors or if they are all old. Then you can delete the file content.

Regards
Thanks, but I'm a noob with this stuff, I opened the file, it's full of repeated warnings, but I have no idea what it all means and how to 'solve' them

Most of those entries seem to be from April and May 2024.


for example:

Code: Select all

[30-May-2024 09:58:24 UTC] PHP Fatal error:  Uncaught Error: mysqli object is not fully initialized in /homepages/27/d770430278/htdocs/witchhouse/forum/phpbb/db/driver/mysqli.php:200
Stack trace:
#0 /homepages/27/d770430278/htdocs/witchhouse/forum/phpbb/db/driver/mysqli.php(200): mysqli_query()
#1 /homepages/27/d770430278/htdocs/witchhouse/forum/phpbb/db/driver/factory.php(353): phpbb\db\driver\mysqli->sql_query()
#2 /homepages/27/d770430278/htdocs/witchhouse/forum/phpbb/config/db.php(72): phpbb\db\driver\factory->sql_query()
#3 /homepages/27/d770430278/htdocs/witchhouse/forum/phpbb/config/db.php(55): phpbb\config\db->initialise()
#4 [internal function]: phpbb\config\db->__construct()
#5 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(1176): ReflectionClass->newInstanceArgs()
#6 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(634): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#7 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(1281): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#8 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(1238): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#9 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(1149): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#10 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(634): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#11 /homepages/27/d770430278/htdocs/witchhouse/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(588): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#12 /homepages/27/d770430278/htdocs/witchhouse/forum/includes/compatibility_globals.php(45): Symfony\Component\DependencyInjection\ContainerBuilder->get()
#13 /homepages/27/d770430278/htdocs/witchhouse/forum/common.php(154): register_compatibility_globals()
#14 /homepages/27/d770430278/htdocs/witchhouse/forum/app.php(23): include('/homepages/27/d...')
#15 {main}
  thrown in /homepages/27/d770430278/htdocs/witchhouse/forum/phpbb/db/driver/mysqli.php on line 200
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52783
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: My php-errors.log file is huge - can I delete it?

Post by stevemaury »

There are none from June? If that is the case, backup the file locally and then empty the one on the server.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

Return to “[3.3.x] Support Forum”