cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

[BUG] Edit PHP Configurations -> 8.2 Errors

Open Lvl4Sword opened this issue 8 months ago • 5 comments

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 avatar Nov 29 '23 21:11 Lvl4Sword

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 avatar Nov 29 '23 21:11 Lvl4Sword

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

Lvl4Sword avatar Nov 30 '23 17:11 Lvl4Sword

@usmannasir Any update on this?

Lvl4Sword avatar Dec 14 '23 00:12 Lvl4Sword

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.

mesudi37 avatar Dec 30 '23 20:12 mesudi37

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

fredroo avatar Feb 08 '24 15:02 fredroo