Cannot add users

Hi

I have installed Gibbon on a shared hosting server. All things working fine, but I am not able to add users.
Home > User Admin > Manage Users > Add User
In Screen Shot you can see there is no option available to assign primary role to user, nor there is any add button available. Please help.

Hi, welcome to the community! It looks like the rest of the page and sidebar are missing too, which suggests an error may have occurred while loading the page. Does it happen consistently stopping at the same place each time? After loading the page, if you check your PHP error logs it may help shed some light on what’s happening. Hopefully on a shared host you have access to them, where exactly they’re located will depend on your server setup.

Sandra, thank you for the comments. Yes its my 2nd installation on same server and every time I got stuck here, cannot add any role or any user or any student. Let me check if I can get any logs. Or what if I give you phpmyadmin access? but here it will be publicly open :neutral:

Can you guide me where I can find php logs?

-Kamran

Barish, are you running your own server, or are you using a host to provide your server for you? If it is your own server, let us know the operating system flavour…if it is hosted, contact your hosting support. Thanks!

Hi Admin,
I am working for an ISP, here we are running many servers. This one is running on Centos 7 with ISPConfig.

Barish, in that case you should be able to access your own error logs. I think in Centos the logs can be found in /var/log.

hi Admin,
Sorry I keep buzzing you. Here are some last lines of error.log:

[Tue Aug 29 08:28:32 2017] [warn] [client 203.124.51.22] mod_fcgid: stderr: PHP Fatal error: Call to a member function prepare() on a non-object in /var/www/clients/cl
ient50/web72/web/pdc/functions.php on line 4031, referer: http://www.billing.cish.pk/pdc/index.php?q=/modules/School%20Admin/schoolYear_manage.php
[Tue Aug 29 08:28:42 2017] [warn] [client 203.124.51.22] mod_fcgid: stderr: PHP Fatal error: Call to a member function prepare() on a non-object in /var/www/clients/cl
ient50/web72/web/pdc/functions.php on line 4031, referer: http://www.billing.cish.pk/pdc/index.php?q=/modules/School%20Admin/schoolYear_manage.php
[Tue Aug 29 08:28:52 2017] [warn] [client 203.124.51.22] mod_fcgid: stderr: PHP Fatal error: Call to a member function prepare() on a non-object in /var/www/clients/cl
ient50/web72/web/pdc/functions.php on line 4031, referer: http://www.billing.cish.pk/pdc/index.php?q=/modules/School%20Admin/schoolYear_manage.php
[Tue Aug 29 08:29:32 2017] [warn] [client 203.124.51.22] mod_fcgid: stderr: PHP Fatal error: Call to a member function prepare() on a non-object in /var/www/clients/cl
ient50/web72/web/pdc/functions.php on line 4031, referer: http://www.billing.cish.pk/pdc/index.php?q=/modules/School%20Admin/schoolYear_manage.php

Its only one error I think keep repeating somewhere in functions.php file on line 4031. I am not good with PhP so please help me with this.

Thank you…

Kamran

Hi Kamran,

The error appears to be occurring in relation to the database (specifically when looking up the gibbonSetting table, but it may be indicative of a larger issue with the database connection). In Gibbon, can you visit the System Admin > System Check page to see if all the checks pass, and post a screenshot of the results.

Thanks!

Hi Sandra,
Attached is the required screen shot:
Its really amazing, you people are super quick in helping <3

here is the full page screen shot:

Happy to help, some days can be quicker than others, it’s all by volunteered time :smiley:

Getting closer to a solution! Looks like your PHP version needs updated. Is this something you’re able to do, or request from your hosting? Gibbon v14.0.00 requires a minimum off PHP 5.5 (with PHP 7 being ideal for compatibility with future versions).

Thank you. Yes I can manage to update with the help of my System Admin who is running all our servers. I will get back if again stuck somewhere :slight_smile:

Thank you again.