PHP 7.4 Error in CyberPanel — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

PHP 7.4 Error in CyberPanel

After compiling and successfully upgrading to PHP 7.4 in OLS, there is this following error in CyberPanel's dashboard:

Error message: local variable 'post_max_size' referenced before assignment

What else do we need to do to get rid of this error so that we can configure PHP 7.4 within CyberPanel?

Screenshots for your reference:

https://workdrive.zohoexternal.com/external/JeDhCBrpVN-Npfb4
https://workdrive.zohoexternal.com/external/JeDhCBrpVO-Npfb4

Comments

  • I have this issue too, but for php 8.0
  • edited January 7
    When you select PHP 7.4

    Error Viewable from after refreshng...
    https://demo.cyberpanel.net/managephp/editPHPConfigs

    Also gives the following error when [BASIC] tab is selected

    cat: /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini
    Error message: local variable 'post_max_size' referenced before assignment


    Note does not change to PHP 7.4 although there is a 'Successfully changed' message.
    Can also verify that it uses previous version of php by running <?php phpinfo(); ?>
  • Left Main Menu Server > PHP > Edit PHP Configs appears to change to 7.4 but and you get a successfully changed message but really does not change to 7.4. Can be verified by executing a page with <?php phpinfo(); ?>
  • Same problem I want to upgrade to PHP 8, but I get an error, how to fix it ????
    Error message:local variable 'post_max_size' referenced before assignment
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!