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.

PHP error at home page (front end)

Postby 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.
eowynx
Member Neptune
Member Neptune
 
Posts: 7
Joined: Sun Jun 27, 2010 4:24 pm

Re: PHP error at home page (front end)

Postby 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
Download Free PHP CodeIgniter CMS 'Codefight CMS': http://codefight.org
dbashyal
Site Admin
 
Posts: 38
Joined: Mon May 21, 2007 10:35 pm

Re: PHP error at home page (front end)

Postby 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.
Download Free PHP CodeIgniter CMS 'Codefight CMS': http://codefight.org
dbashyal
Site Admin
 
Posts: 38
Joined: Mon May 21, 2007 10:35 pm


Return to Bug Report

Who is online

Users browsing this forum: No registered users and 0 guests

cron