adampmoss / CreareSEO

A free SEO extension for Magento 1
GNU General Public License v2.0
151 stars 72 forks source link

Problem with php 7.4 : file sytem.log big size #158

Open Danieleeffe1 opened 3 years ago

Danieleeffe1 commented 3 years ago

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

LuizSantos22 commented 3 years ago

@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.

sprankhub commented 3 years ago

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.

Danieleeffe1 commented 3 years ago

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 .

sprankhub commented 3 years ago

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.

LuizSantos22 commented 3 years ago

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 .