Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.
I changed the site I want to use Imagick to PHP8, but an error occurred and it couldn’t be displayed, so I would like to enable it in PHP7 somehow. Is there any way to do this?
When you use PHP 8+ do you mean that the site throws a critical/fatal error? If that is the case there may be a theme or plugin that’s not compatible with newer PHP versions. You could disable or swap the item erroring out by using the Site Shell function (under your site name) and then WP-CLI commands inside the shell.
I need to build a local environment with the same environment as the production server, and it is difficult to change the PHP version of the production server.
I have enabled Imagick with PHP7.4.30 on the production server.
Also, the “Site shell” button doesn’t work. Nothing happens when I press it.
For the time being, I will work while checking in the production environment.
This is a personally owned device.
Yes, I use MAMP.
This may not be related, but I have changed the port numbers for Apache and other MAMP programs so that I can run MAMP and Local at the same time.
I suspect that there is a conflict at play then between these items, which isn’t uncommon. Have you tried changing your Router Mode to see if that helps? (Preferences>Advanced>Router Mode)
Otherwise you may have to try disabling MAMP completely to proceed.
I changed to router mode to check if “Site shell” worked, but it didn’t work.
However, my project was completed successfully.
Although the issues with “Imagick” and “Site shell” were not resolved, I was able to proceed while using the production environment.
If any other problems arise, I will use your support again.
I truly appreciate your support so far.
Thank you very much.
Glad to hear the site is working for you now @asa! I’ll close this out for now but if you have any other questions or concerns don’t hesitate to reach back out. We are always happy to help!