When I've tried to edit the administrator user, putting my own e-mail and name using the backend (dont see if password can be changed?) i got the following error:
"A PHP Error was encountered
Severity: Notice
Message: Undefined property: Users::$security
Filename: helpers/security_helper.php
Line Number: 43
Fatal error: Call to a member function xss_clean() on a non-object in /home/vivelibr/public_html/0_0CI/CIcore_2_0_0/helpers/security_helper.php on line 43".
Note: After the error, I'm browsing back to the edition of the user and the changes seem to be correctely saved.
Problem editing admin user
Re: Problem editing admin user
Correction: the data was not updated at all
Re: Problem editing admin user
That was CI 2.0 bug, which I didn't knew before as it was working fine in previous version and have fixed in new one, which is yet to release.
It can be fixed by adding:
to a page, or can be globally turned on at: app/admin/config
Thanks for notifying again!
It can be fixed by adding:
Code: Select all
$this->load->library('security');
Code: Select all
$config['global_xss_filtering'] = TRUE;
Re: Problem editing admin user
Copied the line you say for admin/config at admin/config/config.php but still receiving the same error:
'A PHP Error was encountered
Severity: Notice
Message: Undefined property: Users::$security
Filename: helpers/security_helper.php
Line Number: 43
Fatal error: Call to a member function xss_clean() on a non-object in /home/vivelibr/public_html/0_0CI/CIcore_2_0_0/helpers/security_helper.php on line 43'
on trying to edit+update the user.
Regards
'A PHP Error was encountered
Severity: Notice
Message: Undefined property: Users::$security
Filename: helpers/security_helper.php
Line Number: 43
Fatal error: Call to a member function xss_clean() on a non-object in /home/vivelibr/public_html/0_0CI/CIcore_2_0_0/helpers/security_helper.php on line 43'
on trying to edit+update the user.
Regards

Re: Problem editing admin user
Right now modified this file: app/admin/config/autoload.php adding 'security' to the loaded libraries.
Doing this the administrator seems to update the data ok, my question is:
This autoloaded libraries will also load in the front-end? Cause my idea is to get the front-end so light as possible
Thanks again
Doing this the administrator seems to update the data ok, my question is:
This autoloaded libraries will also load in the front-end? Cause my idea is to get the front-end so light as possible

Thanks again

Re: Problem editing admin user
admin and frontend have separate autoload.php
You added on admin, so it will be loaded on admin pages only.
You added on admin, so it will be loaded on admin pages only.