Could not open input file: /usr/bin/wp

Hello,

I created a new website using CyberPanel. Then I transferred a WordPress website from another server using Duplicator Pro. Eventually, I did a WordPress application scan in CyberPanel. Now whenever I click on this application in the list of WordPress applications, the error message pops up:

“Could not open input file: /usr/bin/wp”

Besides, When I try to edit the WordPress application settings for example enabling ‘LSCache’, it displays a successful message but it is not being saved!

Any help to fix this would be appreciated.

Thank you.

Welcome @msamavi Happy you are here

See this reply and confirm Error:local variable 'php' referenced before assignment - #4 by tmoore

sh <(curl https://raw.githubusercontent.com/tbaldur/cyberpanel-mods/main/fix_missing_wp_cli.sh || wget -O - https://raw.githubusercontent.com/tbaldur/cyberpanel-mods/main/fix_missing_wp_cli.sh)
1 Like

Thanks @tmoore , now I get the following error message:

Operation Failed!

list index out of range

I had that once but I do not remember how I fixed it
Can you try to scan again and check if the error remains?