You are not enjoying the benefits offered by registering. To register click here...
  
Forums | Prefs | Your Messages | Members | Recent | Search
Quick Search


Advanced Search
| Calendar | Doc | Dev' Blog! |
Chat (Alpha Version)

Guest, do not forget to login ( Register )
 Top > Forums > This Software > Support, FAQ, How-to's
  Undefined variable: isrelative

Skin Selection:
 (1 pages) 1  
fingz


Newbie
Group: Members
Posts: 2
Reputation: 0


Posted on Mar 9, 2008, 1:28 pm by fingz
Undefined variable: isrelative

I got green lights on every part of the installation, but when I try to load the forum page I get this:

 

 

Notice: Undefined variable: isrelative in /Applications/MAMP/htdocs/forums0/main.php (362)

at Areas()() (/Applications/MAMP/htdocs/forums0/main.php:17)

at require("/Applications/MAMP/htdocs/forums0/main.php" (/Applications/MAMP/htdocs/forums0/index.php:442)

 

Source Code:

353                    $sc 'last_post_date';

354            }

355            $so = ($sort_way == 'A' 'ASC' 'DESC');

356

357            // Default values

358            $areaclause "WHERE area='".$parent."'";

359            $relstring '';

360

361            if($isrelative)

362            {

363                $areaclause "WHERE area IN ('".$parent."','".implode("','"explode(','$nephews))."')";

364                $relstring '&rel='.$parent;

365            }

366            else if($isclass_based)

367            {

368                $extraSql .= "LEFT JOIN {$CONFIG->dbprfx}classification c ON (t.topic_ID=c.topic) ";

369                $areaclause "WHERE (area='".$parent."' OR CLASS IN ('".implode("','"explode(','$classifiers))."'))";

370                $relstring '&rel='.$parent;

371            }

372            /** @todo: Could the query below be simplified by not accessing users? */

 

 

 

 

 

 


 
Top

fingz


Newbie
Group: Members
Posts: 2
Reputation: 0


Posted on Mar 9, 2008, 1:35 pm by fingz
I just tried substituting that variable with false and now I get that same error, but this time on $isclass_based, so I try putting false in there and it just goes down the line claiming that the next variable is not defined.

I'm running this on PHP5 and Apache... is there soemthing I'm missing?
 
Top

Burning Ice

Local Hero
Group: Testers
Posts: 72
Reputation: 5


Posted on Mar 10, 2008, 6:55 am by Burning Ice

I think you just have to turn out the notice report...

A little quote from the wiki: (Board admin guide)

The Notice Of Death (NOD)

What to do if nBBS complains with an error message stating "Notice:" and then a blurb about, for instance, "Trying to get property of non-object"?
It appears that your web host has configured your php setup to report anything that may seem even remotely disturbing to it.

Open nbbs_error_reporter.php, and find these two lines:
if(0 == (error_reporting() & $type))
return;


Below, add:
if(E_NOTICE == $type)
return;

Greetz.


You can do it if you really want it... - - - see my testforum (0.5.3)
 
Top

chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


Posted on Mar 25, 2008, 2:38 am by chris
fingz, this should have fixed your issue. Please let us know otherwise.

Hey, I use MAMP too!

 
Top

Epic


Newbie
Group: Members
Posts: 1
Reputation: 0


Posted on Jul 19, 2008, 12:18 am by Epic
I am having the same problem, but when I tried to fix it the way that was suggested, I found that I did not have permission to edit the file "nbbs_error_reporter.php" on further inspection I found that the user was set to "Apache". Please help me fix this I have tried for hours with little success.
 
Top

chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


Posted on Jul 29, 2008, 2:57 am by chris
Unfortunately I do not know how to fix this issue. Your online control panel should let you edit these files.

 
Top

threshold


Newbie
Group: Members
Posts: 2
Reputation: 0


Posted on Sep 27, 2008, 2:36 pm by threshold
Same issue - fix did not work?
Hello

I am having the same error message. I did this:

Open nbbs_error_reporter.php, and find these two lines:
if(0 == (error_reporting() & $type))
return;

Below, add:
if(E_NOTICE == $type)
return;

but it did not make any difference. Did I misread the instructions? THanks!
Mike
 
Top

threshold


Newbie
Group: Members
Posts: 2
Reputation: 0


Posted on Sep 27, 2008, 2:53 pm by threshold
Oops. My bad. The file did not copy successfully the first time. It is there now and the fix worked.

THanks!

 
Top

chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


Posted on Oct 6, 2008, 3:25 am by chris
Phew. I like that better :D

 
Top

 (1 pages) 1 - Flat Mode | Threaded Mode  
Quick Jump:

         
Page generated in 0.04 seconds (Queries: 0.00) - Cpu: 0.62
Total DB [adodb:mysql] queries: 15
Total Strings Translated: 12
Powered by NextBBS SE v0.4.5 - Copyright © 2007 CFR & The NextBBS Team
Chatbox powered by smiletag