CyberPanel Community

Error:local variable 'php' referenced before assignment

Ad
Adam #1

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.

10 replies
DI
Dick Impens #2

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

FS
Felix Stürmer #3

Same here - cannot use anymore all Wordpress Functions

tb
tbaldur #4

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

Md
Michel de Almeida Medeiros #5

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

cu
curano #6

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

md
mdp #7

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

RM
Rana Muhammad Usman Nasir #8

do you have the latest version ?

md
mdp #9

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

Error is still occuring.

sv
svenms #11

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

Sign in to reply