Question: Setup Issues - 500 Error After Installation

Setup Issues - 500 Error After Installation

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 i

MP

Maxwell Praise

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/

  • MS

    Mian Saleem

    Answered

    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 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

  • MP

    Maxwell Praise

    Answered

    Hello. Thanks for the feedback. How can i send the error log to you? or should i just paste it here?

  • MP

    Maxwell Praise

    Answered

    i use a shared server and i don’t have the privilege to disable ONLY_FULL_GROUP_BY

  • MS

    Mian Saleem

    Answered

    Hello,

    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

  • MP

    Maxwell Praise

    Answered

    Thanks a million. This resolved it and the application is now working perfectly.

  • MP

    Maxwell Praise

    Answered

    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

  • MS

    Mian Saleem

    Answered

    Hello,

    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