php - 面对文件获取html错误

标签 php error-handling file-get-contents

使用cron作业触发文件时出现以下错误,而使用手动触发没有显示任何错误。请帮助解决此错误背后的逻辑。谢谢

Fatal error: Call to a member function find() on a non-object in /home/afghannewscom/public_html/auto/MainProject.php on line 35

最佳答案

查看第35行的文件MainProject.php(在编辑器中),看看有什么问题。
变量$OuterLink不是对象。您可以查看其定义行。

关于php - 面对文件获取html错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31342887/

相关文章:

php - 是否可以在 group_concat 中使用 distinct + concat?

php - 使用 AngularJs 在 mySql 数据库中插入数据

php - 将 PHP 脚本输出写入 txt 文件

javascript - 如何清除axios中的控制台错误?

php - file_get_contents() 突然不起作用

PHP file_put_contents 从 php 文件保存

php - 我可以在 PHP 中混合使用 MySQL API 吗?

php - 如何在 drupal 7 中实现 hook_theme?

php - 如何修复错误的数组到字符串转换并显示获取的数据