• kristinubute

    (@kristinubute)


    Hi

    When I check my client site I am getting a PHP error log which shows some errors.

    My ecommerce site is using Woocommerce, Envira Gallery and quite a few other plugins for ecommerce site. Hosting had upgraded PHP from 7.4 to 8.2 and it caused an issue with the site on the gallery page, so we reverted it back to the original PHP 7.4, but it still shows issues on the gallery page.

    Gallery page was working and stopped approx same time as PHP upgrade.

    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/website.com.au/public_html/wp-includes/formatting.php on line 3495

    and this one

    PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 293239136 bytes)

    There are still many other rows in the PHP error log just thought I would ask about these firstly.

    If someone has some suggestions for me to look at would be great.

    Thanks

    Kristin

Viewing 1 replies (of 1 total)
  • Hi Kristin,

    Issue 1: Please enable the WordPress debug log. This will allow us to see if any PHP errors are being produced.

    1. Edit wp-config.php and insert the following lines:

    define( 'WP_DEBUG', true);
    define( 'WP_DEBUG_LOG', true);
    define( 'WP_DEBUG_DISPLAY', false);

    2. Reproduce the issue.

    3. Locate the debug log in: /wp-content/debug.log

    4. Paste the latest lines here. No need to paste the entire log file. Just 20 lines or so will do. Please censor any sensitive information.

    https://codex.www.ads-software.com/Debugging_in_WordPress

    If you are unable to make the changes mentioned using the cPanel file manager or FTP/SFTP, please contact your hosting support so they can assist you in doing so.

    Issue 2: Please increase the WordPress memory limit to 1024M by adding the following line to the wp-config.php file.

    define('WP_MEMORY_LIMIT', '1024M');

    Now the second issue should be resolved.

    Regards
    Faisal

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.