I just unzipped a new template in a new M2 installation and after trying to upgrade with
php bin/magento setup:upgrade the upgrade stops with this warning
Deprecated Functionality: Function ReflectionType::__toString() is deprecated in /var/www/html/vendor/zendframework/zend-code/src/Reflection/ParameterReflection.php on line 84
I am in a AWS ec2 installation.
How can I fix this I find nothing online
Hello @starlyns
Are you using php version 7.4?
Magento 2 is not compatible with PHP 7.4, try lowering the php version.
@starlyns you can try the soltution as suggested by @theMageComp.
If that doesn't work then go to the above mention line no. and Use getName() instead __toString() .
Thanks
Magento was working fine after the installation. I completed the installation and
I just happened to unzip a template and after that, I started getting that error.
@starlyns please let me know your current version of php?
Hello @starlyns ,
I had the same issue.
This is PHP Version issue
you can refer below the solution for this, it worked for me
https://magento.stackexchange.com/a/316044/72475
Hope it works for you as well
Thanks.
Please assist me in implementing the process of connecting a live server link to Command Prompt and using the code below.
I'm new to Magento. I've worked on a local server before, but I'm not sure how to work with Command Prompt on a live server, so please assist me.
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:flush chmo -R 0777 var/ pub/ generated/