Error:local variable 'php' referenced before assignment

Hello,

I just got the WordPress manager addon, however when I go into a site and click on some of the tabs like plugins or themes I get:

Error:local variable ‘php’ referenced before assignment

Any help would be greatly appreciated.

I have exactly the same after an update of CyberPanel this week on more than one server!
Hope support will provide a fix quickly.

Same here - cannot use anymore all Wordpress Functions

Run this command, post the output here with a screenshot:
ls -l /usr/bin/wp

Probably the binary of wordpress cli (the one above) doesn’t exist.
If exists and proper permissions, should be the php symlink

I’m in the same problem, too. When I run the above command, I have the following answer:
-rwxr-xr-x 1 root root 6729511 Nov 4 14:39 /usr/bin/wp

ls -l /usr/bin/wp
ls: cannot access ‘/usr/bin/wp’: No such file or directory

i’ve got the same issue,

root@hosting:~# ls -l /usr/bin/wp
-rwxr-xr-x 1 root root 6995229 Apr 4 19:15 /usr/bin/wp

do you have the latest version ?

Current Version:2.3
Build:5
Current Commit:580d5754cd41dc836a0cea123699017e79a05c05
Latest Version:2.3
Latest Build:5
Latest Commit:580d5754cd41dc836a0cea123699017e79a05c05

Error is still occuring.

Can you share logs from main log file? here is how How to Properly Debug CyberPanel | Troubleshooting CyberPanel – Knowledge Base

Hello @usmannasir
Same problem here to use Wordpress Remote Backup. unable to find /usr/bin/wp