Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plesk environment: I am running into issues with the unserialization and cron #1681

Closed
leganzaro opened this issue Jun 5, 2021 · 2 comments

Comments

@leganzaro
Copy link

leganzaro commented Jun 5, 2021

In the list of issues for OpenMage, I didn't find any of these problems so I suspect Plesk as the primary culprit.
I have installed OpenMage v20.0.10 and v19.4.13 with PHP 7.4 and I found two separate problems:

  1. I run into an issue with the unserialization.

The exact error happens in:
Warning: unserialize() expects exactly 1 parameter, 2 given in ../app/code/core/Mage/Core/Model/Cache.php on line 503
Warning: unserialize() expects exactly 1 parameter, 2 given in ../lib/Varien/Db/Adapter/Pdo/Mysql.php on line 1567
Warning: unserialize() expects exactly 1 parameter, 2 given in ../app/code/core/Mage/Core/Model/Cache.php on line 614

As a solution for this case, I use @ operator and the notice will no longer be displayed.

  1. Cron doesn't execute with no error message.

Adding $isShellDisabled = true; in cron.php allow cron to work but it would be best to run cron.sh and isn't running properly.

Everything was running fine in older releases, ex: v19.4.2, v19.4.1...

@kiatng
Copy link
Contributor

kiatng commented Jun 6, 2021

For item 1 on unserialize(), see PR #1251, the second parameter was added to improve security. I note that you are running PHP7.4, you need to check again, because the second param was added since PHP7.0.

@leganzaro
Copy link
Author

I reinstalled both versions v20.0.10 and v19.4.13 on a new server with clean installation of Plesk on a Centos 7. One extension was supplementary installed: Aoe_Scheduler for the second problem that was mentioned earlier. Current version of PHP is 7.4.18 (link) but the result is the same with every version (7.0, 7.1...).

With opcache.enable - off (not working as expected) and no custom or additional path to the open_basedir option, there is only one warning active:
ERR (3): Warning: unserialize() expects exactly 1 parameter, 2 given in .../app/code/core/Mage/Core/Model/Cache.php on line 503

The second problem: Cron - doesn't execute with no error message; is present for the last versions of OpenMage (v20.0.10/v19.4.13 vs v19.4.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants