Page 1 of 1

PHP error at home page (front end)

Posted: Mon Jun 28, 2010 3:32 pm
by eowynx
I get this error entering the frontend:
"A PHP Error was encountered

Severity: Notice

Message: Undefined variable: reduce_space

Filename: libraries/Menu.php

Line Number: 151"

The error started appearing after removing some items of the menu that i dont need.
This error appears when you dont have active links in a menu.

Re: PHP error at home page (front end)

Posted: Mon Jun 28, 2010 9:04 pm
by dbashyal
You can add $reduce_space = false; somewhere at the beginning of the function to fix that issue.

Code: Select all

if(!is_array($this->menu) || empty($this->menu)) return FALSE;

//add this line.
$reduce_space = false;


app/frontend/libraries/Menu.php

Re: PHP error at home page (front end)

Posted: Wed Jul 28, 2010 9:24 am
by dbashyal
try new version and let me know if it solved your issue. If not can you send me the url, so i can have a look at the issue.