Page 1 of 1

Undefined variable: mr_status

Posted: Thu Dec 27, 2012 5:54 pm
by UltraX
Hello I would like some help with a message that appears when I enter the option setting ... appears at the top of the admin page the following warning:
Notice: Undefined variable: mr_status in /home/amapa/public_html/loja/gerenciar/controller/setting.php on line 333
what should I do so that this message does not appear when I click setting.
thanks in advance

Re: Undefined variable: mr_status

Posted: Fri Dec 28, 2012 9:21 am
by Brent
The issue is caused by the function apache_get_modules() not being available on your server.
What version of Apache and PHP are being used on your server?

A simple fix is to add error suppresion in line 333 in the setting.php. This line would look like this.

Code: Select all

$view->set('mr_status', @$mr_status);
This will make the error disappear, but will not tell you if MOD_REWRITE is enabled or not.

Re: Undefined variable: mr_status

Posted: Sat Dec 29, 2012 9:56 am
by UltraX
PHP Version: 5.2.17
Version of Apache: 2.2.23

thanks for the alternative .... it worked properly. :P

Re: Undefined variable: mr_status

Posted: Sat Dec 29, 2012 2:44 pm
by leo
Is the apache_get_modules listed in your php.ini below disable_functions?