douqiu0351 2018-01-20 13:23
浏览 51

在wamp和lamp中调用布尔错误的成员函数num_rows(),但不在xampp中

I am working on Point of sale system built on codeigniter. I get this error "Call to a member function num_rows() on boolean". I have just moved to linux and install lamp. I get the similar error on wamp, at that time i removed wamp and install xampp and it work. now i want to use lamp , every thing is good expect it get this error. I have changed php version but it does not help. i can not change in code because it has been used in hundred of places. currently i am using php PHP Version 7.0.27 , Apache/2.4.18, sql version :mysqladmin Ver 8.42 Distrib 5.7.20, for Linux on x86_64. also why it is working in xampp but give error on wamp and lamp, Here is full error

An uncaught Exception was encountered
Type: Error
Message: Call to a member function num_rows() on boolean
Filename: /var/www/html/dev.com/public_html/gspos/app/models/admin/Products_model.php
Line Number: 206 Backtrace:
File: /var/www/html/dev.com/public_html/gspos/app/controllers/admin/Products.php
Line: 2053
Function: getAllWarehousesWithPQ
File: /var/www/html/dev.com/public_html/gspos/index.php
Line: 302
Function: require_once

  • 写回答

2条回答 默认 最新

  • dongyao8698 2018-01-20 13:36
    关注

    I think you have code smells, but if you can't edit it, maybe check the differences between Xampp config and your new config and begin by check php version.

    评论

报告相同问题?

悬赏问题

  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景