• Resolved David Ruekberg

    (@druekberg)


    My ISP recently forced a PHP upgrade on my site from 8.1 to 8.2. Suddenly a bunch of error messages appeared in the header, such as

    “Deprecated: Creation of dynamic property WP_Review_Me::$days is deprecated in /home/XXXX/poetry.ruekberg.com/wp-content/themes/startup-blog/inc/review.php on line 81” (XXX is the user directory)

    All the errors relate to this theme. I reverted to PHP 8.1 and everything returned to normal. Will there be an update to this theme, or should I stick with 8.1?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hi David,

    Thanks for getting in touch about this.

    I will release an update soon to fix these error messages. Since it is only a deprecation notice, there aren’t any adverse effects on the site. You can stay on 8.1 for now, or if you aren’t bothered by the deprecation notices showing up in the log, you can switch to 8.2, and I’ll have the update out soon.

    Thread Starter David Ruekberg

    (@druekberg)

    Thanks, 8.1 seems to be working fine. It’s not that the deprecation notices were showing up in the log, they were listed in the header even for site visitors, which took up almost the whole screen. Anyway, thanks for the reply, I appreciate it and look forward to the update.

    Theme Author Ben Sibley

    (@bensibley)

    Okay I understand.

    In your wp-config.php file, you should add the following lines:

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

    This will prevent any error messages from being displayed publicly on the site and save them to a log file instead.

    If you have errors from any plugins in the future, they will also show up on the site, which will be annoying. This way, you can check the debug.log file in the /wp-content/ folder instead, and keep track of any errors without affecting your visitors.

    Thread Starter David Ruekberg

    (@druekberg)

    Great, thanks!

    Theme Author Ben Sibley

    (@bensibley)

    Hey David,

    The update is out now and the errors with PHP 8.2 are resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8.2 upgrade issues’ is closed to new replies.