Announcement

Collapse
No announcement yet.

Upgrade from 5.6.6 to 5.7.3 and php 8.2.x

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upgrade from 5.6.6 to 5.7.3 and php 8.2.x

    Hi, we are currently running vBulletin 5.6.6 on this setup: PHP: 7.3.31-1~deb10u3, MySQL: 10.3.38-MariaDB-0+deb10u1, Web Server: Apache v2.4.38. vBulletin on this setup works fine.

    The idea is to upgrage the webserver and upgrade to vB 5.7.3.

    So far I have done a test upgrade in xampp (8.2.0 - Windows version), the upgrade succeeded, but after logging in and selecting Undread Topics, Last Topics, Today's Topics, Who is online and Member List I get errors you can see in attachments.

    Do you have any recommendations? Is it advisable to upgrade to the latest version of php 8.2.3?

    Attached Files
    Signature

  • #2
    These are most likely caused by modified or third-party templates that do not meet the coding standards of PHP 8.2. We cannot guarantee that modified templates will be up to modern coding standards. You can try to update the PHP code generated for these templates by opening a template for editing and then saving it again. However, if you're using variables in IF statements without appropriate syntax, you can still get these errors.

    It is recommended that you run vBulletin with display_errors off on production servers. This can be set in your php.ini file.

    You can edit these lines in your php.ini file or place the lines below at the end of the file:

    Code:
    display_errors = Off
    log_errors = On
    error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
    ​
    If you do not have access to the php.ini file, you can use add these lines in your /core/includes/config.php file to configure this:
    Code:
    ini_set('display_errors', 0);
    ini_set(log_errors,1);
    ini_set("error_log", "/path/to/my/vbulletin/php-error.log");​
    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING)​;​
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • DaMi3300
      DaMi3300 commented
      Editing a comment
      Go to your admincp, where you will find the Styles option in the left menu. There, select Style Manager. There is a Choose action... drop down menu for each style where you can choose Delete style.
      I recommend trying this out in a test environment first though, many things can go wrong.

    • tzan1970
      tzan1970 commented
      Editing a comment
      Hello
      I deleted all the themes from where you said and I updated the current vBulletin version again. But when PHP 8.0 is set, the same problems start again. When PHP 7.4 is set, there is no problem, I don't understand working with PHP 7.4 right now. I started to not enjoy using the vBulletin form

    • DaMi3300
      DaMi3300 commented
      Editing a comment
      I'm sorry, but I can't give any more advice here. I'm just an ordinary vBulletin user, you'll have to wait for a response from one of the developers.

  • #3
    Hi Wayne, the errors were caused by templates that were probably remnants of the vBulletin 4 migration. I deleted all the templates (except one default) before the update, and after the update to 5.7.3, there are templates that no longer cause these problems. Thank you very much for your help.
    Signature

    Comment


    • #4
      Yes. That slipped my mind. vBulletin 4 templates were created under much more lax variable parsing rules. Both in vBulletin and PHP.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X