Topic: User changes - Error 0.20 Issue

When I add or change a user I get the following Error screen.


Trying to get property of non-object
Error Type:   E_NOTICE

Rendered Page:   Click here to view contents able to be rendered

Source File:   /srv/www/htdocs/wmitest/includes/data_classes/TracmorSettings.class.php     Line:   46

Line 41:                    ///////////////////
Line 42:   
Line 43:                    default:
Line 44:                        try {
Line 45:                            $objAdminSetting = AdminSetting::LoadByShortDescription(QConvertNotation::UnderscoreFromCamelCase($strName));
Line 46:                            return $objAdminSetting->Value;
Line 47:                        } catch (QCallerException $objExc) {
Line 48:                            $objExc->IncrementOffset();
Line 49:                            throw $objExc;
Line 50:                        }
Line 51:                }


Call Stack:

#0 /srv/www/htdocs/wmitest/includes/data_classes/TracmorSettings.class.php(46): QcodoHandleError()
#1 /srv/www/htdocs/wmitest/admin/user_account_edit.php(219): TracmorSettings->__get()
#2 /srv/www/htdocs/wmitest/includes/qcodo/_core/qform/QFormBase.class.php(657): UserAccountEditForm->btnSave_Click()
#3 /srv/www/htdocs/wmitest/includes/qcodo/_core/qform/QFormBase.class.php(774): QFormBase->TriggerMethod()
#4 /srv/www/htdocs/wmitest/includes/qcodo/_core/qform/QFormBase.class.php(242): QFormBase->TriggerActions()
#5 /srv/www/htdocs/wmitest/admin/user_account_edit.php(309): QFormBase::Run()


Variable Dump:   Show/Hide

Re: User changes - Error 0.20 Issue

Looks like the provided db_update-0.2.0.sql script is missing one critical line of code:

INSERT INTO `admin_setting` (`setting_id`,`short_description`,`value`) VALUES (14,'user_limit',NULL);

Sorry for the oversight.  We'll get this fixed in the posted downloads asap.  For now,  just run the above SQL on your database and that should fix the issue.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: User changes - Error 0.20 Issue

Ok that code resolved the issue.

Thanks again for the speedy response.  big_smile