VB 5.3.4 and PHP 7.2.2 with Opcache

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • William Thomas Jr
    Senior Member
    • Nov 2014
    • 526
    • 5.1.x

    VB 5.3.4 and PHP 7.2.2 with Opcache

    I can't get 5.3.4 and php 7.2.2 with opcache to work. The info.php page shows but the site just kicks a 500 error. Not even the admincp works. I have tried disabling all hooks through the config file. What else do I need to check?

    Thanks,
    William
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    A 500 Server error is a generic error. It means that something went wrong somewhere and the server has decided it cannot show the page. It does not provide any diagnostic information that would help us solve issues.

    What is the Opcode caching system that you are using? Did you clear the cache after upgrading vBulletin and PHP? An Opcode cache like Memcached works by compiling the PHP code into an intermediary bytecode format that makes processing quicker. When upgrades are performed on either vBulletin or PHP, this bytecode will be out of date and can introduce processing errors.

    What is the error that is being logged in the PHP error log?
    Last edited by Wayne Luke; Thu 8 Feb '18, 8:23am.
    Translations provided by Google.

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

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 73981

      #3
      Click image for larger version

Name:	Screenshot_5.png
Views:	187
Size:	60.9 KB
ID:	4386096

      I did some testing. In vBulletin 5.3.3 using PHP 7.2.2, I received notices of problems with some variables. In 5.3.4 PL1, I don't have any issues. It may be an issue with your particular opcode cache though.


      Translations provided by Google.

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

      Comment

      • William Thomas Jr
        Senior Member
        • Nov 2014
        • 526
        • 5.1.x

        #4
        Found the problem. Memcached has to be disabled in config file to work with PHP 7.2.2 and Opcache 7.2.2.

        Everything is working now.

        Thanks,
        William

        Comment


        • Kevin Sours
          Kevin Sours commented
          Editing a comment
          The sounds like a PHP bug. Enabling Opcache shouldn't change the behavior of the PHP code.

      Related Topics

      Collapse

      Working...