Trying to get property 'affect_rows' of non-object in F:\server\Apache24\htdocs\http3\system\model\utils.php on line 42
时间: 2023-08-13 09:09:22 浏览: 167
根据提供的引用内容,这个错误是在文件F:\server\Apache24\htdocs\http3\system\model\utils.php的第42行出现的,错误信息是"Trying to get property 'affect_rows' of non-object"。根据引用\[1\]中的代码,这个错误可能是因为在该行代码中,尝试获取一个非对象的属性'affect_rows'。要解决这个错误,可以检查代码中是否正确地使用了对象,并确保对象存在并具有所需的属性。
#### 引用[.reference_title]
- *1* [Laravel 避免 Trying to get property of non-object 错误](https://blog.csdn.net/weiguang102/article/details/121105938)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [php 报错如下:Notice: Trying to get property of non-object](https://blog.csdn.net/weixin_33841503/article/details/94284509)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文