• Resolved mkp1981

    (@mkp1981)


    SG Optimizer has been working great for years for us. After upgrading to PHP 7.4 today, I receive the following error message.

    Screen-Shot-2022-08-22-at-1-15-41-PM<br />determine screen size<br />

    Have tried uninstalling and reinstalling the plugin to no avail. Thanks for your help.

    • This topic was modified 2 years, 3 months ago by mkp1981.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Dimitar Petrov

    (@demiro)

    Hello @mkp1981,

    According to the error, the built-in Rest API of the application does not work as expected. The API in question is required by our plugin. Please check the displayed error messages in order to find the possible reasons for the issue.

    If your website is hosted on our end, please post a new ticket from your SiteGround User Area and we will be glad to assist. If not, you should check your .htaccess file for any blocking directives, the installed security-related plugins and ensure that the WordPress core along with all plugins and themes are the latest versions.

    Best Regards,
    Dimitar Petrov

    Thread Starter mkp1981

    (@mkp1981)

    Thank you.

    Yes, our website is hosted with Siteground as well.

    I had just spoken with tech support there, and was advised to post this incident here, as they are unable to resolve the problem. Their best suggestion was to bring it to the attention of the developer (here).

    We have downgraded our PHP back to 7.3 for now, and it appears to be working. Whatever issue is causing this must be related to PHP 7.4 upgrade.

    Let me know if you need anything else from me to address this. Thank you.

    Plugin Support Dimitar Petrov

    (@demiro)

    Thank you for the update.

    I was able to find the communication in question and investigated the case. The issue should be caused by a php.ini file containing deprecated PHP variables. You should remove that php.ini file located at the application’s root directory and the issue should be resolved.

    Best Regards,
    Dimitar Petrov

    Thread Starter mkp1981

    (@mkp1981)

    Thank you.

    I have deleted the php.ini file via FTP from the root directory. It has resolved the issue. I appreciate your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rest API Error after upgrading to PHP 7.4’ is closed to new replies.