Fatal error: Uncaught Error: Class 'Phar' not found in

th3_gh0st

Registered
Aug 27, 2020
2
0
1
Sweden
cPanel Access Level
DataCenter Provider
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.

Code:
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 3
And first 5 lines of the wp-cli.phar is:

Code:
#!/usr/bin/env php
<?php
Phar::mapPhar();
include 'phar://wp-cli.phar/php/boot-phar.php';
__HALT_COMPILER(); ?>
Any help to solve this would be really nice! :)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
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!