Undefined variable: mr_status

General Support for technical Issues relating to AlegroCart
Post Reply
UltraX
Posts: 11
Joined: Thu Dec 27, 2012 5:43 pm

Undefined variable: mr_status

Post by UltraX » Thu Dec 27, 2012 5:54 pm

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

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Undefined variable: mr_status

Post by Brent » Fri Dec 28, 2012 9:21 am

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.

UltraX
Posts: 11
Joined: Thu Dec 27, 2012 5:43 pm

Re: Undefined variable: mr_status

Post by UltraX » Sat Dec 29, 2012 9:56 am

PHP Version: 5.2.17
Version of Apache: 2.2.23

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

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Undefined variable: mr_status

Post by leo » Sat Dec 29, 2012 2:44 pm

Is the apache_get_modules listed in your php.ini below disable_functions?

Post Reply