Question

I have a Client with Magento 2.1.7, I need to success the Readiness Check so I can install extensions or upgrade Magento version...

All the checks are ok! It says to:

"Your PHP version is correct (7.0.33)"

but the Check Cron Scripts failed.

Error from Updater Application Cron Script:
Found non-writable path(s):
/var/www/vhosts/gevi/httpdocs/php.ini.sample

The file does even exist, and if I create it with permission 755 the problem is the same...

I think the problem is on CRON failing, in details:

When I run "php bin/magento setup:cron:run" to execute the CRON I got an error on the log:

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/gevi/httpdocs/vendor/magento/framework/Console/Cli.php on line 72

Seems that php code is incorrect? Incompatible between Magento version and PHP version? But it says version 7.0 is ok!

HELP!

error

Was it helpful?

Solution

Just create Magento folder in your app/design/frontend and app/design/adminhtml, Most of the time it should solve the problem.

 cd <magento_root>
 find var generated vendor pub/static pub/media app/etc -type f -exec chmod u+w {} +
 find var generated vendor pub/static pub/media app/etc -type d -exec chmod u+w {} +
 chmod u+x bin/magento

Use this commands:

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

Hope it Helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top