CreareSEO icon indicating copy to clipboard operation
CreareSEO copied to clipboard

Problem with php 7.4 : file sytem.log big size

Open Danieleeffe1 opened this issue 3 years ago • 5 comments

Goodmorning everyone. Premise:

I have installed this module on various Magento 1 installations and I am always very happy with it.

I have found that there are many people like me who still consider Magento 1 a solid and reliable project and I recently migrated to OpenMage.

OpenMage is based on magento1 and the community is very active and like me it considers Magento2 a project that requires a considerable amount of economic resources, hardware and time to keep up with the continuous variations that Adobe with its magento2 applies, effectively making Magento 2 a "Beta" platform in stable form.

Let's go back to the problem indicated in the title.

I installed the module in OpenMage and on an ubuntu20.04 server with php 7.4 apache 2.

after starting the creareseocore / cleanup :: doCleanup function

the system creates a log file of 20GB below a small part of the log:

2021-06-27T07:39:02+00:00 ERR (3): Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/openmage/app/design/frontend/base/default/template/uioptimization/w3chtmlvalidator.phtml on line 48 2021-06-27T07:39:02+00:00 ERR (3): Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/openmage/app/design/frontend/base/default/template/uioptimization/w3ccssvalidator.phtml on line 45 2021-06-27T07:39:03+00:00 ERR (3): Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/openmage/app/design/frontend/base/default/template/uioptimization/w3chtmlvalidator.phtml on line 48 2021-06-27T07:39:03+00:00 ERR (3): Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/openmage/app/design/frontend/base/default/template/uioptimization/w3ccssvalidator.phtml on line 45 2021-06-27T07:39:08+00:00 ERR (3): Notice: Undefined index: invoice_id in /var/www/openmage/app/code/local/Efatt/Module/Model/Observer.php on line 8 2021-06-27T07:39:19+00:00 ERR (3): Warning: opendir(/var/www/openmage/var/session/): failed to open dir: No such file or directory in /var/www/openmage/app/code/community/Creare/CreareSeoCore/Model/Cleanup.php on line 119 2021-06-27T07:39:19+00:00 ERR (3): Warning: opendir(/var/www/openmage/var/session/): failed to open dir: No such file or directory in /var/www/openmage/app/code/community/Creare/CreareSeoCore/Model/Cleanup.php on line 122 2021-06-27T07:39:19+00:00 ERR (3): Warning: readdir() expects parameter 1 to be resource, bool given in /var/www/openmage/app/code/community/Creare/CreareSeoCore/Model/Cleanup.php on line 123 2021-06-27T07:39:19+00:00 ERR (3): Warning: chmod(): No such file or directory in /var/www/openmage/app/code/community/Creare/CreareSeoCore/Model/Cleanup.php on line 126 2021-06-27T07:39:19+00:00 ERR (3): Warning: chmod(): No such file or directory in /var/www/openmage/app/code/community/Creare/CreareSeoCore/Model/Cleanup.php on line 135

grazie

Danieleeffe1 avatar Jun 27 '21 08:06 Danieleeffe1

@Danieleeffe1 I do not know if it has something to do with your problem But I was having problems with this extension when flat tables were enabled along with CSS file merge As I use CloudFlare to do it, I have disabled flatten tables and CSS merge and it started working again.

Oh yes, it might be some php extension that is missing.

I use Cpanel on a shared hosting and I had some problems due to missing php extensions which I have turned on but I do not remember the names.

LuizSantos22 avatar Jun 27 '21 21:06 LuizSantos22

I personally will most probably not get to fix this unless a client bumps into this. However, I am fine with reviewing a PR, which fixes these issues.

If anyone wants to sponsor this, I am happy to discuss.

sprankhub avatar Jun 28 '21 05:06 sprankhub

Thanks for the reply.

I have found the cause of the problem.

For reasons yet to be defined OpenMage did not create the "session" folder in the "VAR" directory this created a "loop" which inflated the "system.log" file

after creating the "session" folder the problem disappeared

Il giorno lun 28 giu 2021 alle ore 07:36 Simon Sprankel < @.***> ha scritto:

I personally will most probably not get to fix this unless a client bumps into this. However, I am fine with reviewing a PR, which fixes these issues.

If anyone wants to sponsor this, I am happy to discuss.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adampmoss/CreareSEO/issues/158#issuecomment-869371686, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCKSZXMC2MLLTWZRZIZOPLTVAC6RANCNFSM47MFIVMA .

Danieleeffe1 avatar Jun 28 '21 07:06 Danieleeffe1

I think not all warnings are related to the missing session directory, but good to hear. If it is solved, feel free to close the isuse.

sprankhub avatar Jun 28 '21 09:06 sprankhub

I don't know why the session folder is not being created. At least on PHP 7.3 it creates fine as long as there's a session going on.

On Mon, Jun 28, 2021, 06:55 Simon Sprankel @.***> wrote:

I think not all warnings are related to the missing session directory, but good to hear. If it is solved, feel free to close the isuse.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/adampmoss/CreareSEO/issues/158#issuecomment-869545862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT55X4XF2WCYADZEAIUJ7ADTVBBH5ANCNFSM47MFIVMA .

LuizSantos22 avatar Jun 28 '21 12:06 LuizSantos22