Issue
- Accessing end-user PHP Selector results in the error message:
ValueError: invalid literal for int() with base 10: '0rc2'
Traceback (most recent call last): File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/cl_selector.py", line 272, in run
[...]
File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/php_conf_reader.py", line 235, in _full_version_string_to_int v_array = [int(x) for x in s_ver_full.split('.')] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/php_conf_reader.py", line 235, in v_array = [int(x) for x in s_ver_full.split('.')] ^^^^^^ValueError: invalid literal for int() with base 10: '0rc2
Environment
- CloudLinux
- alt-php 8.3.0 rc2
- cPanel
Solution
- Update alt-php83 to at least 8.3.0 rc3
- As a workaround, remove "rc2" from
selector.conf
sed -i.bak 's/rc2//g' /etc/cl.selector/selector.conf
Cause
ALTPHP-1593. Pre-release suffix from alt-php version was added in selector.conf.
Comments
0 comments
Please sign in to leave a comment.