cyberpanel
cyberpanel copied to clipboard
[BUG] Edit PHP Configurations -> 8.2 Errors
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?
- Spin up a WordPress site
- Go to
Edit PHP Configurations
- Make sure you're on
Basic
rather thanAdvanced
- Select
PHP 8.2
- Apply
- Failure.
Expected behavior No failure
Operating system: Ubuntu 20.04 LTS
CyberPanel version: 2.3.4 / commit c8da443334b8815ec250a0fba606e75355f641cd
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.
https://github.com/usmannasir/cyberpanel/pull/1164 was made
@usmannasir Any update on this?
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.
cyberPanel still using 8.1, don't have 8.2, you can test, with phpversion();