If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Parse Error?  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi there! I just updated to the new version to get rid of that exploit, and am receiving the following error when I try to load the guestbook from IE:

Parse error: parse error, unexpected '(' in /home/skinks/public_html/guestbook/admin/config.inc.php on line 6

Here is what I was instructed to do:

Make sure you know the database name, username, user password and host prefix, if any, for your guestbook database. Open admin/config.inc.php with a text editor, or from (File Manager in the CPanel) and edit the following information:

Around line 4:
Code:
$GB_DB["dbName"] = "(hostprefix)_guestbookdatabasebname";
$GB_DB["host"] = "localhost";
$GB_DB["user"] = ""(hostprefix)_username";
$GB_DB["pass"] = "dbuserpassword";

Around line 59:
Code:
$GB_PG["base_url"] = "http://www.yoursite.com/guestbook";;
$DB_CLASS = "mysql.class.php";
$TEC_MAIL = "your_email@yoursite.com";
$GB_UPLOAD = "public";
$GB_TMP = "tmp";


Even when I replace the fields with my own information, I get the same error.

Any help is great. Thanks! Email at zachg@efn.org
Anonymous



PS--

I also updated the SQL tables as far as I know, here were my inst....


In PhpMyAdmin, Update the database tables:

On the right window pane, click on "SQL"

Find the Sql box near the bottom, click inside the box, then click on "browse" and navigate to the place on your hard drive where the new version of guestbook is, the Doc/update.sql file. Once you have navigated to that file and it is in the box, click on ok.

After processing the task, you should get a successful result. If successful, the guestbook tables will appear in the left (blue) pane.

If there is a problem, you will get an error message. If you get an error message, please make note of it for future help.

On the left (blue) pane, click on Home

On the right pane, select log out

Close out the PhpMyAdmin window without navigating anywhere else (for security reasons)
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

$GB_DB["user"] = ""(hostprefix)_username";


You have 2 quotes at the start and this is causing an error.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Thanks Cabonize, actually Amber helped me out personally, and it was something else! The double quotes were fixed as well though.

Thanks for the reply.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Glad it was fixed. I also noticed a double ; which I assume was also fixed.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Carbonize wrote:Glad it was fixed. I also noticed a double ; which I assume was also fixed.




A double?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

$GB_PG["base_url"] = "http://www.yoursite.com/guestbook";;


The double ; at the end. SHouldn't cause any errors though.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Oh, I did'nt even see that one...... Yeah, doesn't seem to be doing anything..

So, I this new version is pretty much 'expoit' or generally hacker safe? I know you've probably answered that a million times by now... I really like the guestbook. :cool:
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum