Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lvl4Sword opened this issue Nov 29, 2023 · 5 comments
Open

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

Lvl4Sword opened this issue Nov 29, 2023 · 5 comments

Comments

@Lvl4Sword
Copy link
Contributor

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 c8da443

@Lvl4Sword
Copy link
Contributor Author

This looks easy, it's accessed here:

post_max_size = re.findall(r"[A-Za-z0-9_]+", items)[1]

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
Copy link
Contributor Author

#1164 was made

@Lvl4Sword
Copy link
Contributor Author

@usmannasir
Any update on this?

@mesudi37
Copy link

mesudi37 commented Dec 30, 2023

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
Copy link

fredroo commented Feb 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants