我已经安装了 php-readability 但是我在我的一个网站上遇到了这个问题。
当主机的安全模式处于非事件状态时,它返回 Nothing(白页)并且没有任何 URL 的内容。
但是当安全模式启动时,我看到这个错误:
Warning: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/user/domains/example.com/public_html/php-readability-master/index.php on line 44
Fatal error: Uncaught exception 'RuntimeException' with message 'Readability was unable to parse this page for content.' in /home/user/domains/example.com/public_html/php-readability-master/lib/Readability.inc.php:270 Stack trace: #0 /home/user/domains/example.com/public_html/php-readability-master/index.php(63): Readability->getContent() #1 {main} thrown in /home/user/domains/example.com/public_html/php-readability-master/lib/Readability.inc.php on line 270
我该怎么办?
问题是什么?
我该如何解决这个问题?
CURL 处于事件状态 + 我添加了 curl_setopt_array 函数,但它不再起作用了!
最佳答案
带有 cURL 的 PHP 安全模式限制:disable safe mode on your PHP server setup if you have PHP >= 5.3
带有 PHP/Yii 应用程序的浏览器出现白屏:可能你有一个 unexpected / uncaught PHP fatal error, hidden in your PHP setup and/or Yii app .
关于php可读性找不到内容返回错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25471821/