MP
Asked
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/
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/
Attachments
- MSAnsweredHello,
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 in `app/config/config.php` and then visit the page again to reproduct errors. Lastly check the latest error logs in the `app/logs/` folder.
Thank you - MPAnsweredHello. Thanks for the feedback. How can i send the error log to you? or should i just paste it here?
- MPAnsweredi use a shared server and i don't have the privilege to disable ONLY_FULL_GROUP_BY
- MSAnsweredHello,
Please add the following line after `parent::__construct();` in the `app/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 - MPAnsweredThanks a million. This resolved it and the application is now working perfectly.
- MPAnsweredPlease 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
- MSAnsweredHello,
The users are saved in the `tec_users` table and the session is set from `set_session` method of the `app/models/Auth_model.php`
The social auth is handled by `app/controllers/Hauth.php`
Thank you - Login to Reply