Hi, I am experiencing a 500 error after setting up the installation of your simple forum script. I’ve followed your documentation and check all your forum post and responses. However, this is still not resolved. Below is the error from the server.
An uncaught Exception was encountered Type: Error
Message: Call to a member function num_rows() on boolean
Filename: /home/youthleaders/public_html/forum/app/models/Forums_model.php
Line Number: 161
Backtrace:
File: /home/youthleaders/public_html/forum/app/controllers/Forums.php Line: 120 Function: get_topics
File: /home/youthleaders/public_html/forum/index.php Line: 302 Function: require_once
This occured both on my local installation and on the live server. Please kindly help me to resolve it as this is my first time buying from you and i hope to purchase more scripts from you.
Thanks
Installation link: https://globalyouthleadersforum.org/forum/
- MSAnswered
Hello,
Please check your server error logs and let me know the error details so that I can suggest.
You can enable app logs by changing the
log_threshold
to 1 inapp/config/config.php
and then visit the page again to reproduct errors. Lastly check the latest error logs in theapp/logs/
folder.Thank you
- MPAnswered
Hello. Thanks for the feedback. How can i send the error log to you? or should i just paste it here?
- MPAnswered
i use a shared server and i don’t have the privilege to disable ONLY_FULL_GROUP_BY
- MSAnswered
Hello,
Please add the following line after
parent::__construct();
in theapp/core/MY_Controller.php
around line no 9.$this->db->query('SET SESSION sql_mode = ""');
It should resolve the
ONLY_FULL_GROUP_BY
mode issue.Thank you
- MPAnswered
Thanks a million. This resolved it and the application is now working perfectly.
- MPAnswered
Please if i need to integrate Simple Forum with my existing authentication, what do i need to do? any help or pointer in this direction would be greatly apprecaited
- MSAnswered
Hello,
The users are saved in the
tec_users
table and the session is set fromset_session
method of theapp/models/Auth_model.php
The social auth is handled by
app/controllers/Hauth.php
Thank you
- Login to Reply