Installation failed. Error message ["can only concatenate str (not \"NoneType\") to str [404]"]

Hi,

I am on Ubuntu 22.04.3 LTS with latest Cyberpanel update today.
I am trying to install WordPress on a new domain but always get this error.

Installation failed. Error message: [“can only concatenate str (not "NoneType") to str [404]”]
Screenshot: YibyX73.png (934×352) (imgur.com)

Now, can’t install any website on the VPS

Note: It seems happened after I installed PHP 8.2 on the server.

Please help.
Thanks

What happens if you change it to any other php version ?

Hi,

Same error after changed to other PHP versions.

Latest Build: 4

Latest Commit:
36c0d62e786508b028f5757c64933412d3cd596b

Can you enable debug logs and share main log file contents?

Please tell me how to enable debug logs and the path to get main log file contents?

Thanks

I open the /usr/local/lsws/logs/error.log file by the command tail -f error.log and below are the latest results.

2023-11-28 07:44:23.379662 [NOTICE] [8926] Setup swapping space…
2023-11-28 07:44:23.379732 [NOTICE] [8926] LiteSpeed/1.7.18 Open starts successfully!
2023-11-28 07:44:23.431725 [NOTICE] [8768] [AutoRestarter] child process with pid=8773 exited with status=0!
2023-11-28 07:44:23.431793 [NOTICE] [8768] [AutoRestarter] cleanup children processes and unix sockets belong to process 8774 !
2023-11-28 07:44:23.531881 [NOTICE] [8768] [AutoRestarter] child process with pid=8774 exited with status=0!
2023-11-28 07:44:23.531997 [NOTICE] [8768] Server Stopped!

These are LSWS Logs, please check this video: https://www.youtube.com/watch?v=MfdO_iE5MD4

The log file when I enabled debug like in your video

root@GCSing:/home/cyberpanel# tail -f /home/cyberpanel/error-logs.txt
[11.28.2023_07-20-13] Expecting value: line 1 column 1 (char 0)
[11.28.2023_07-23-12] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.4
[11.28.2023_07-42-56] Config path: /etc/apache2/sites-enabled/tinhtan.vn.conf
[11.28.2023_07-44-23] Config path: /etc/apache2/sites-enabled/tinhtan.vn.conf
[11.28.2023_07-57-06] Status Code: 200 for: http://www.tinhtan.vn/.well-known/acme-challenge/tinhtan.vn
[11.28.2023_07-57-06] Status Code: 200 for: http://tinhtan.vn/.well-known/acme-challenge/tinhtan.vn
[11.28.2023_07-57-22] /root/.acme.sh/acme.sh --issue -d tinhtan.vn -d www.tinhtan.vn --cert-file /etc/letsencrypt/live/tinhtan.vn/cert.pem --key-file /etc/letsencrypt/live/tinhtan.vn/privkey.pem --fullchain-file /etc/letsencrypt/live/tinhtan.vn/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[11.28.2023_07-57-29] Successfully obtained SSL for: tinhtan.vn and: www.tinhtan.vn
[11.28.2023_07-57-29] {‘[email protected]’: (554, b’5.7.1 [email protected]: Relay access denied’)}
[11.28.2023_07-58-03] Config path: /etc/apache2/sites-enabled/tinhtan.vn.conf
[11.28.2023_08-05-35] wo9+iEboy5tvMstCnwBGQFBtxK15qUgbsudo chown -R cyberpanel:cyberpanel /home/cyberpanel
[11.28.2023_08-05-35] wo9+iEboy5tvMstCnwBGQFBtxK15qUgbsudo wp --info
[11.28.2023_08-05-35] wo9+iEboy5tvMstCnwBGQFBtxK15qUgbsudo /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/virtualHostUtilities.py changePHP --phpVersion ‘PHP 8.0’ --path /usr/local/lsws/conf/vhosts/tinhtan.vn/vhost.conf
[11.28.2023_08-05-36] Config path: /etc/apache2/sites-enabled/tinhtan.vn.conf
[11.28.2023_08-05-36] sudo -u tinht5367 touch /home/tinhtan.vn/.lsphp_restart.txt
[11.28.2023_08-05-39] systemctl restart lsws
[11.28.2023_08-05-39] sudo -u tinht5367 rm -f /home/tinhtan.vn/.lsphp_restart.txt

whats the output of

ls -la /usr/local/lsws/lsphp80/bin

drwxr-xr-x 2 root root 4096 Oct 16 08:37 .
drwxr-xr-x 9 root root 4096 Oct 16 08:37 …
-rwxr-xr-x 1 root root 16038936 Aug 4 14:50 lsphp
-rwxr-xr-x 1 root root 888 Aug 10 2022 pear
-rwxr-xr-x 1 root root 909 Aug 10 2022 peardev
-rwxr-xr-x 1 root root 822 Aug 10 2022 pecl
lrwxrwxrwx 1 root root 12 Aug 4 14:50 phar8.0 → phar8.0.phar
-rwxr-xr-x 1 root root 15396 Aug 4 14:50 phar8.0.phar
-rwxr-xr-x 1 root root 16143024 Aug 4 14:50 php
-rwxr-xr-x 1 root root 16143024 Aug 4 14:50 php8.0
-rwxr-xr-x 1 root root 5137 Aug 4 14:50 php-config
-rwxr-xr-x 1 root root 5137 Aug 4 14:50 php-config8.0
-rwxr-xr-x 1 root root 7368 Aug 8 2022 phpdismod
-rwxr-xr-x 1 root root 7368 Aug 4 15:38 phpenmod
-rwxr-xr-x 1 root root 4757 Aug 4 15:38 php-helper
-rwxr-xr-x 1 root root 4571 Aug 4 14:50 phpize
-rwxr-xr-x 1 root root 4571 Aug 4 14:50 phpize8.0
-rwxr-xr-x 1 root root 9778 Aug 4 15:38 php-maintscript-helper
-rwxr-xr-x 1 root root 6382 Aug 4 15:38 phpquery
-rwxr-xr-x 1 root root 2841 Aug 4 15:38 sessionclean

Note: The trouble happened in my two VPS(s) so I guess the latest commit has a problem.

PM me the server access.

I am trying to allow using SSH login using password and after restart SSH and try to login myself and I get blocked, not sure. Will fix the trouble and PM you the root login and the CP details soon.

Thanks

1 Like

I’ve sent you the PM with login details.

Thanks for your help

I am going to check the server now.

I pushed a minor update, all of the people having problem should update to see if it is resolved.

1 Like

The same issue.
I will check with update.

Everything goes OK. Creating path, downloading wordpress, installing and activating LS Cache plugin.
Thanks a lot.

Anyone still having issue after updating?

I upgraded Cyberpanel on both servers and everything is ok now.

Thanks

1 Like