Fatal error: Uncaught Error: Class 'Phar' not found in
So, trying to figure out what's causing this error because Phar is installed and active. But have now tried with PHP56, PHP73 and PHP74 and I get same results on version 90.0.5.
And first 5 lines of the wp-cli.phar is:
Any help to solve this would be really nice! :)
Fatal error: Uncaught Error: Class 'Phar' not found in /usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar:3
Stack trace:
#0 {main}
thrown in /usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar on line 3And first 5 lines of the wp-cli.phar is:
#!/usr/bin/env php
Any help to solve this would be really nice! :)
-
I've not seen this issue before, can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks! 0 -
Hello @cPanelLauren did you find any resolution for this one? I have the same problem 0 -
@luisfalcon Hello! It looks like the previous user never responded with a ticket ID. Since you're experiencing this same issue, would you be able to open a support ticket using the link in my signature? Once done, let me know the incident ID so I can keep track of the progress and update this thread as necessary. Thanks! 0 -
Sorry, found a way to fix it, this customer has cloudlinux installed and for some reason the alt family of php is not loading Phar, I changed the site to the ea family and it worked fine. I would insist on fixing the alt family if we were not moving servers very soon and the new server wont have cloudlinux. 0 -
Thanks so much for the update! It's great to have a resolution for this specific issue after so many months. 0
Please sign in to leave a comment.
Comments
5 comments