You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking for some help please, when I run the test php script (below) from the CLI I get some errors (below) which I can't seem to find any reports of from a google search or on here and cant figure what's going wrong.
exception 'Exception' with message 'Class PEAR2\Net\RouterOS\Client could not be loaded from PEAR2/Net/RouterOS/Client.php, file does not exist (registered paths="phar:///root/PEAR2_Net_RouterOS-1.0.0b6.phar/PEAR2_Net_RouterOS-1.0.0b6/src") [PEAR2_Autoload-@PACKAGE_VERSION@]' in phar:///root/PEAR2_Net_RouterOS-1.0.0b6.phar/PEAR2_Net_RouterOS-1.0.0b6/src/PEAR2/Autoload.php:305
Stack trace:
#0 [internal function]: PEAR2\Autoload::load('PEAR2\\Net\\Route...')
#1 /root/index.php(7): spl_autoload_call('PEAR2\\Net\\Route...')
The text was updated successfully, but these errors were encountered:
Let me guess... Ubuntu 16.04? That particular Ubuntu version keeps throwing stupid stuff like this... 16.10 and later are fine, just this one.
The problem is with the bundled PEAR2\Autoload... A fix is already in its master branch, but not only is there not a release yet, that doesn't change the fact the bundled PEAR2\Autoload has this issue.
You have two possible workarounds:
Upgrade to a newer Ubuntu version with sudo do-release-upgrade
Extract the PHAR file (the issue only happens with PHAR files, not with "plain" files) or download and extract either the zip or tgz archive. Either way, extract it, and include src/PEAR2/Autoload.php.
Hi,
Looking for some help please, when I run the test php script (below) from the CLI I get some errors (below) which I can't seem to find any reports of from a google search or on here and cant figure what's going wrong.
Any help is appreciated.
Thanks
PHP Script
Error
The text was updated successfully, but these errors were encountered: