usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.53k stars 592 forks source link

[BUG] Edit PHP Configurations -> 8.2 Errors #1163

Open Lvl4Sword opened 10 months ago

Lvl4Sword commented 10 months ago

Describe the bug When editing PHP configurations for a site and selecting PHP 8.2, the following error is shown: Error message: local variable 'post_max_size' referenced before assignment

To Reproduce What steps did you take when the issue occurred?

  1. Spin up a WordPress site
  2. Go to Edit PHP Configurations
  3. Make sure you're on Basic rather than Advanced
  4. Select PHP 8.2
  5. Apply
  6. Failure.

Expected behavior No failure

Operating system: Ubuntu 20.04 LTS

CyberPanel version: 2.3.4 / commit c8da443334b8815ec250a0fba606e75355f641cd

Lvl4Sword commented 10 months ago

This looks easy, it's accessed here: https://github.com/usmannasir/cyberpanel/blob/ab19aba61d7d33bb965da3b18e1e430e5ed38a5a/managePHP/phpManager.py#L103 it's not referenced with the rest of the variables. Simple fix, just currently busy. If no one else gets to this, I'll push a fix later.

Lvl4Sword commented 10 months ago

https://github.com/usmannasir/cyberpanel/pull/1164 was made

Lvl4Sword commented 9 months ago

@usmannasir Any update on this?

mesudi37 commented 9 months ago

Salamun Alaykum i fixed easily doing like this. it was Same error for php 8.2 at ubuntu 22

Go PHP>INSTALL EXTENSIONS (:8090/managephp/installExtensions) Choose 8.2 And look at list and install some extensions. While they are being installed finally it automatically maked the missing folder and files. So that's it.

fredroo commented 7 months ago

cyberPanel still using 8.1, don't have 8.2, you can test, with phpversion();