简体   繁体   English

找不到类“ Httpful \\ Bootstrap”

[英]Class 'Httpful\Bootstrap' not found

I'm working on CentOS 6.0 64-Bit with DirectAdmin 1.53.2 with PHP 7.0. 我正在使用DirectAdmin 1.53.2和PHP 7.0开发CentOS 6.0 64位。 Everything is OK but recenlty I have error 一切都还可以,但是很遗憾我有错误

Class 'Httpful\Bootstrap' not found

on pages where using script from http://phphttpclient.com 在使用http://phphttpclient.com中的脚本的页面上

<?php require_once('httpful.phar'); ?>

This error occures in PHP error logs: 此错误发生在PHP错误日志中:

PHP Warning:  include(): Failed opening 'phar://httpful.phar/Httpful/Bootstrap.php' for inclusion (include_path='.:/usr/local/php70/lib/php') in /home/webster/domains/webster-studio.pl/public_html/portfolio/polonus/adds/httpful.phar on line 4\n'

For now, I figure out that restart service php7 remove that error but only on first load page ... After reload error show again ... 就目前而言,我发现重启服务php7会删除该错误,但仅在第一个加载页面上出现...重新加载后,错误再次显示...

service php-fpm70 restart

Maybe someone know more about that situation, what can I do to remove that error permanently ? 也许有人对这种情况了解更多,我该怎么做才能永久消除该错误?

好的,将PHP升级到7.1后问题消失了...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM