PHP error at home page (front end)

Have You Encountered Any Bug Related To The CodeFight CMS Software? Let Us Know And Help Us To Keep The CMS Clean And Bug Free.
Post Reply
eowynx
Member Neptune
Member Neptune
Posts: 7
Joined: Sun Jun 27, 2010 4:24 pm
antispam: NO

PHP error at home page (front end)

Post by eowynx » Mon Jun 28, 2010 3:32 pm

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.

dbashyal
Site Admin
Posts: 30
Joined: Mon May 21, 2007 10:35 pm
antispam: NO
Contact:

Re: PHP error at home page (front end)

Post by dbashyal » Mon Jun 28, 2010 9:04 pm

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

dbashyal
Site Admin
Posts: 30
Joined: Mon May 21, 2007 10:35 pm
antispam: NO
Contact:

Re: PHP error at home page (front end)

Post by dbashyal » Wed Jul 28, 2010 9:24 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest