Whenever I update the PHP, the site breaks

  • Posted in : Empathy
  • williamjlee1
    Participant

    Hey Team,

    This is a bit delayed as I sent my question to support who redirected me to the forums, and only getting to it now.

    My server host has advised me that when they tried to update my PHP it was crashing my site.

    “Whenever I update the PHP, the site seems to break.
    For now, I have hard coded your root directory .htaccess file back with the following code in order to lock in PHP version 7.2”

    They said it seems to be unstable.

    I believe they tried again on the 26th August 2025 (see below) however advised me that I need to register to get support to make sure that everything is updated and working correctly and is stable.

    Can you help me to ensure my site is up and running optimally. I would love to look at expanding this website to cover other aspects of my business in the future, however have not been able to as it has been so unstable/ requiring updates, and the download file was failing when trying to upload to wordpress. Which I believe I may have addressed now by setting up the Envato Market API?

    “This is the current .htaccess code that they will ask for.”

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$

    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$

    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

    RewriteRule ^index\.php$ – [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$

    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$

    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

    RewriteRule . /index.php [L]

    </IfModule>

    # php — BEGIN cPanel-generated handler, do not edit

    # Set the “ea-php72” package as the default “PHP” programming language.

    <IfModule mime_module>

    AddHandler application/x-httpd-ea-php74___lsphp .php .php8 .phtml

    </IfModule>

    # php — END cPanel-generated handler, do not edit

    Mehmet S.
    Keymaster

    Hi,

    Just to clarify:

    – Our Empathy demo site is currently running on PHP 8.3.
    – The theme itself does not restrict or lock any PHP version.

    If the site breaks when switching PHP versions, this is most commonly caused by a third-party plugin.

    To identify the source of the issue, please follow these steps:

    1. Temporarily deactivate all plugins.

    2. Switch your PHP version step by step to 8.1 → 8.2 → 8.3, checking the site after each change.

    3. If the site works correctly on PHP 8.3 with all plugins disabled, start re-activating plugins one by one.

    4. Once you identify which plugin causes the issue, please let us know the result.

    We’ll be happy to review it further once you have this information.

    Kind regards,
    Mehmet

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register