php可读性找不到内容返回错误

标签 php html css yii

我已经安装了 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/

相关文章:

javascript - 使用 JavaScript 检测非 http 重定向

html - div表中的单元格间距

html - 存在文本时在输入框中插入复选图标

css - 使用 flexbox 垂直居中元素

php - 如何通过codeigniter重定向带有数据的页面

php - 我应该如何构造 Response 对象,以在 Symfony2 中提供来自数据库的图像/附件?

html - 在正文中包含样式和脚本标签对 SEO 有何影响?

php - Magento 中的定期促销

php - 对于 Prestashop : use 2 query for value with IF ELSE. 。如何声明新变量?

javascript - 如何使用 jquery 禁用或隐藏轮播下一个/上一个图标