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 > Discuss the Software
 Messed up board...

Skin Selection:
 (2 pages) 12  
SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 6, 2005, 11:25 am by SSS
Messed up board...
I was editing my skin settings to place the ad code that my host requires, but after editing it, I can't view my board or my Admin CP. This is the error I get on both the board and Admin CP:

Parse error: parse error, unexpected T_STRING in /home/sss/public_html/cdse/config.php(65) : eval()'d code on line 42




Error type:E_NOTICE
Message:Undefined property: board
Location:/home/sss/public_html/cdse/index.php (line: 170)
How do I fix this?

 
Top

chris

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


Posted on Jun 6, 2005, 4:17 pm by chris
Hmm what's on line 170 of index.php?


 
Top

SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 6, 2005, 6:57 pm by SSS
What program allows me to jump to a certain line? I am not going to count every single line on that page.

 
Top

chris

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


Posted on Jun 6, 2005, 10:03 pm by chris
LOL

I believe Textpad does...


 
Top

Koby

Story Teller
Group: Testers
Posts: 368
Reputation: 8


Posted on Jun 6, 2005, 10:11 pm by Koby
Same here.. lol.. I usually count ten lines.. see how big that is then use my fingers to hold in position on screen, then scroll ten x that length and thats how I get around.

Though if it shows you a portion of the line like IPB sometimes does, then you could simply use ctrl+f, to find it.

This world is not perfect. That is what makes it beautiful.
 
Top

SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 9, 2005, 12:28 pm by SSS
This is what's on line 170 on my index.php file:
if($CONFIG->board->rewrite=="true")

 
Top

chris

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


Posted on Jun 9, 2005, 3:34 pm by chris
Funny how these 2 errors look unraleted.

I suspect that in line 42 of config.php you will find a call to eval(), which is used to dynamically read your board's config. from the database. Is there a way you could send a dump of your db to me?


 
Top

SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 9, 2005, 9:36 pm by SSS
Quote (chris)
Funny how these 2 errors look unraleted.

I suspect that in line 42 of config.php you will find a call to eval(), which is used to dynamically read your board's config. from the database. Is there a way you could send a dump of your db to me?
Sure. :)


EDIT: I need the default code of the menu bar. That will most likely fix the error.


Last edit by SSS on Dec 31, 1969, 7:00 pm
 
Top

chris

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


Posted on Jun 9, 2005, 10:18 pm by chris
To reset your menubar to an empty value, simply go to:
http //yourboard/tools.php

Note that this file is not currently a security risk; it will be in the future when more features are available. It can be an annoyance if you don't change its permissions to '0' after using it though.


 
Top

SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 9, 2005, 10:47 pm by SSS
Thanks, that fixed it. Apparently, it doesn't like the ads because I have to run the tools.php script every time I put the ads in the menubar. >_< And I have to have the ads.

EDIT: It appears that I can't add anything into the menubar, because I tried to put a link to the User CP and I had to run the tools.php again.


Last edit by SSS on Dec 31, 1969, 7:00 pm
 
Top

chris

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


Posted on Jun 10, 2005, 2:10 am by chris
Hmmm...Could you post here an sample code that you know messes up the board?


 
Top

SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 10, 2005, 9:48 am by SSS
Just putting a link in the bar messes up the board.

 
Top

chris

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


Posted on Jun 10, 2005, 7:07 pm by chris
Well, the actual code would be real helpful :)

Thanks!


 
Top

SSS



Group: Members
Posts: 17
Reputation: 0


Posted on Jun 11, 2005, 12:16 am by SSS

<a href="www.sssforum.ryanstrehlow.info/cdse/?do=cp">User CP</a>

:P

EDIT: I also had the http:// in there, I don't know why it was removed when I posted it.



Last edit by SSS on Dec 31, 1969, 7:00 pm
 
Top

chris

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


Posted on Jun 11, 2005, 3:19 am by chris
Mystery solved: you found a bug!

It's fixed in Perforce. You can fix your already installed board by opening config.php:

Search for:
Code:
$configtxt .= '$this->'.$row['config_key'].' = "'.$row['config_value']."\";\n";

Before, add:
Code:
$row['config_key'] = str_replace('"', '\"', $row['config_key']);
$row['config_value'] = str_replace('"', '\"', $row['config_value']);



 
Top

 (2 pages) 12 - Flat Mode | Threaded Mode  
Quick Jump:

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