|
Pages: [1]
|
 |
|
Author
|
Topic: Aargh! Why doesn't my Guest Book work? (Read 1080 times)
|
JDGen
RootsChat Aristocrat
     
Offline
Posts: 1733
|
Hi All,
Me again! I've tried to set up the guest book from http://www.promosi-web.com/script/guestbook/ to access from my website jdcheshire.rootschat.net. I'm getting the following error: Parse error: parse error, unexpected '\"' in /home/vhosts/jdcheshire.rootschat.net/guestbook/ardguest17/index.php on line 368
I thought that I'd set all the variables correctly but I'm a bit stuck now (and a bit rusty on programming!!)
Can anyone help?
Jean
|
|
|
|
|
Logged
|
Census information is Crown Copyright, from www.nationalarchives.gov.ukCHS: Barber(Tabley) Barlow(Antrobus) Blackshaw(Lymm, Mobberley) Blease/Done/Moore(G Bud) Owen(Netherton, Tabley) Spragg/Witter(Goostrey) Youd(Frodsham) Pennell Bankes Birchall Beckett DBY: Higginbottom(Mellor) HRT: Gurney HRT/BED/ESS: Verney (Markyate St) LAN: Davenport(Bolton) Schofield/Gurney(Oldham) Lord(Heap) Quinn(Manchester) Sutcliffe(Rossendale) NTH: Tubb/Johnson(Hellidon)Brown(Kettering) YKS: Scott(Clapham)
|
|
|
julianb
RootsChat Aristocrat
     
Offline
Posts: 1349

Portrait of the genealogist as a young man
|
Jean
This is a new one on me. I had terrible trouble loading my ardguest book, but less so with with the coding.
The only thing I can suggest is looking at the coding that others with these guest books have used to see whether you've slipped in something extra that you shouldn't have [or wait for someone more knowledgable in HTML/PHP than me to come along]. Also, have you uploaded it to the right place on the rootschat server - the path which the error message quotes is not what you have pointed the link at.
I assume you've looked at the appropriate topic on this:
http://www.rootschat.com/forum/index.php/topic,75215.0.html
Good luck
JULIAN
|
|
|
|
|
Logged
|
Essex - Carter, Danns, Mason, Middleditch, Pond, Poole, Rose, Sorrill, Surry, Theobold Kent - Luetchford Nottinghamshire - Baker, Dunks, Woodward, Price, Priestley Suffolk - Rose Surrey - Baker, Bedel, Bransden, Carter, Coleman, Gibbs, Luetchford, Quinton Sussex - Gibbs, Langridge Wiltshire - Brice, Rumble http://genbires.blogspot.com/http://genbires-networking.blogspot.com/Any census info in this post is Crown Copyright, from www.nationalarchives.gov.uk
|
|
|
|
|
JDGen
RootsChat Aristocrat
     
Offline
Posts: 1733
|
Hi Julian,
Yes, I'd looked at other people's working guest books to get this far. I think that the variable isn't resolving properly in the code but I can't see where!
Trystan, the site is http://jdcheshire.rootschat.net/
I'd be happy for you to take a look to see if you can assist!!
Jean
|
|
|
|
|
Logged
|
Census information is Crown Copyright, from www.nationalarchives.gov.ukCHS: Barber(Tabley) Barlow(Antrobus) Blackshaw(Lymm, Mobberley) Blease/Done/Moore(G Bud) Owen(Netherton, Tabley) Spragg/Witter(Goostrey) Youd(Frodsham) Pennell Bankes Birchall Beckett DBY: Higginbottom(Mellor) HRT: Gurney HRT/BED/ESS: Verney (Markyate St) LAN: Davenport(Bolton) Schofield/Gurney(Oldham) Lord(Heap) Quinn(Manchester) Sutcliffe(Rossendale) NTH: Tubb/Johnson(Hellidon)Brown(Kettering) YKS: Scott(Clapham)
|
|
|
|
|
Berlin-Bob
Global Moderator
RootsChat Marquessate
      
Online
Posts: 5056

by My Daughter. Chatting to find her Roots !
|
Hi Jean,
Trystan recently changed a few security settings, and this may be causing the problem. I've been comparing my version of the guest book (it works !) with an older version, and discovered the following differences:
Older version:
$vname = str_replace("<","<",$vname); $vname = str_replace(">",">",$vname); $vname = str_replace("~","-",$vname); $vname = str_replace("\"",""",$vname); $vcomment = str_replace("<","<",$vcomment); $vcomment = str_replace(">",">",$vcomment); $vcomment = str_replace("|","",$vcomment); $vcomment = str_replace("\"",""",$vcomment);
and
$vcomment = str_replace(""","\"",$vcomment);
and
<font size="2" color="<?=$title_color?>"><b>»</b><input type="checkbox" name="byip" value="<?=$row[7]?>"> Delete all record that using this IP : <?=$row[7]?></font>
(this line isn't showing here properly, don't know why)
newer Version:
$vname = str_replace("<","<",$vname); $vname = str_replace(">",">",$vname); $vname = str_replace("~","-",$vname); $vname = str_replace("\"",""",$vname); $vcomment = str_replace("<","<",$vcomment); $vcomment = str_replace(">",">",$vcomment); $vcomment = str_replace("|","",$vcomment); $vcomment = str_replace("\"",""",$vcomment);
and
$vcomment = str_replace(""","\"",$vcomment);
and
<font size="2" color="<?=$title_color?>"><b>»</b><input type="checkbox" name="byip" value="<?=$row[7]?>"> Delete all record that using this IP : <?=$row[7]?></font>
Basically, what's happened is that the special characters have been replaced with the HTML special characters.
Have a look at your index.php and see if you have the older version. If so, save the file (just in case) and then try editing the original file to include the changes from the newer version.
Bob
|
|
|
|
« Last Edit: Sunday 08 January 06 13:08 GMT (UK) by Berlin-Bob »
|
Logged
|
Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe; Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861) and, of course, any other ancestors for my web-site http://boco.rootschat.net All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
|
|
|
JDGen
RootsChat Aristocrat
     
Offline
Posts: 1733
|
Hi Bob,
I've changed my site as you suggested and it works now!
Thanks for all the help,
Jean
|
|
|
|
|
Logged
|
Census information is Crown Copyright, from www.nationalarchives.gov.ukCHS: Barber(Tabley) Barlow(Antrobus) Blackshaw(Lymm, Mobberley) Blease/Done/Moore(G Bud) Owen(Netherton, Tabley) Spragg/Witter(Goostrey) Youd(Frodsham) Pennell Bankes Birchall Beckett DBY: Higginbottom(Mellor) HRT: Gurney HRT/BED/ESS: Verney (Markyate St) LAN: Davenport(Bolton) Schofield/Gurney(Oldham) Lord(Heap) Quinn(Manchester) Sutcliffe(Rossendale) NTH: Tubb/Johnson(Hellidon)Brown(Kettering) YKS: Scott(Clapham)
|
|
|
Berlin-Bob
Global Moderator
RootsChat Marquessate
      
Online
Posts: 5056

by My Daughter. Chatting to find her Roots !
|
Hi Jean,
that's a relief !!
For the benefit of anybody who is interested:
In the older version of this script it was possible to introduce a virus by writing HTML and PHP code in your guest book. The guestbook-programmer noticed this, and changed his script so that HTML special character are changed to HTML code-constants (>, etc), so the code will just show as a character string and can't be executed, resulting in a safer guestbook.
Recently Trystan changed a few settings on the RootsChat server to tighten security, and now the old script doesn't run.
Any other users of this script: if you have any problems, please edit your index.php as above. If you have any problems, please contact me or Trystan for an update.
Bob
|
|
|
|
|
Logged
|
Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe; Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861) and, of course, any other ancestors for my web-site http://boco.rootschat.net All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
|
|
|
julianb
RootsChat Aristocrat
     
Offline
Posts: 1349

Portrait of the genealogist as a young man
|
Here we go again with problems loading dat files for the promosi guestbook!
I wanted to edit out an unwanted entry in my guestbook, so I copied the dat file off and edited it, and then when I reloaded it, the file disappeared altogether. I've tried to reload it again through rootschat file manager, and I've also changed the file name to get it to load (successfully with a .php suffix) but I can't get it to accept the change of name to .dat. I've even checked the permissions.
Help!
JULIAN
|
|
|
|
|
Logged
|
Essex - Carter, Danns, Mason, Middleditch, Pond, Poole, Rose, Sorrill, Surry, Theobold Kent - Luetchford Nottinghamshire - Baker, Dunks, Woodward, Price, Priestley Suffolk - Rose Surrey - Baker, Bedel, Bransden, Carter, Coleman, Gibbs, Luetchford, Quinton Sussex - Gibbs, Langridge Wiltshire - Brice, Rumble http://genbires.blogspot.com/http://genbires-networking.blogspot.com/Any census info in this post is Crown Copyright, from www.nationalarchives.gov.uk
|
|
|
julianb
RootsChat Aristocrat
     
Offline
Posts: 1349

Portrait of the genealogist as a young man
|
I've now managed to change the name, but it still doesn't work!
JULIAN
|
|
|
|
|
Logged
|
Essex - Carter, Danns, Mason, Middleditch, Pond, Poole, Rose, Sorrill, Surry, Theobold Kent - Luetchford Nottinghamshire - Baker, Dunks, Woodward, Price, Priestley Suffolk - Rose Surrey - Baker, Bedel, Bransden, Carter, Coleman, Gibbs, Luetchford, Quinton Sussex - Gibbs, Langridge Wiltshire - Brice, Rumble http://genbires.blogspot.com/http://genbires-networking.blogspot.com/Any census info in this post is Crown Copyright, from www.nationalarchives.gov.uk
|
|
|
|
|
julianb
RootsChat Aristocrat
     
Offline
Posts: 1349

Portrait of the genealogist as a young man
|
Bob
Thanks - done the trick - you're an absolute star, as ever
JULIAN
|
|
|
|
|
Logged
|
Essex - Carter, Danns, Mason, Middleditch, Pond, Poole, Rose, Sorrill, Surry, Theobold Kent - Luetchford Nottinghamshire - Baker, Dunks, Woodward, Price, Priestley Suffolk - Rose Surrey - Baker, Bedel, Bransden, Carter, Coleman, Gibbs, Luetchford, Quinton Sussex - Gibbs, Langridge Wiltshire - Brice, Rumble http://genbires.blogspot.com/http://genbires-networking.blogspot.com/Any census info in this post is Crown Copyright, from www.nationalarchives.gov.uk
|
|
|
Berlin-Bob
Global Moderator
RootsChat Marquessate
      
Online
Posts: 5056

by My Daughter. Chatting to find her Roots !
|
Next question:
I wanted to edit out an unwanted entry in my guestbook, so I copied the dat file off and edited it, .... Why didn't you you delete it on site ??
You can enter an "Administrator password" in index.php, which enables you, as administrator, to delete messages !
Forgotten that bit ? 
Bob
|
|
|
|
|
Logged
|
Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe; Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861) and, of course, any other ancestors for my web-site http://boco.rootschat.net All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
|
|
|
julianb
RootsChat Aristocrat
     
Offline
Posts: 1349

Portrait of the genealogist as a young man
|
Next question: I wanted to edit out an unwanted entry in my guestbook, so I copied the dat file off and edited it, .... Why didn't you you delete it on site ?? You can enter an "Administrator password" in index.php, which enables you, as administrator, to delete messages ! Forgotten that bit ?  Bob Bob
Yes I had tried, but unsuccesfuly. It works now (might have been the permissions). Your kind words have not been deleted though!
JULIAN
|
|
|
|
|
Logged
|
Essex - Carter, Danns, Mason, Middleditch, Pond, Poole, Rose, Sorrill, Surry, Theobold Kent - Luetchford Nottinghamshire - Baker, Dunks, Woodward, Price, Priestley Suffolk - Rose Surrey - Baker, Bedel, Bransden, Carter, Coleman, Gibbs, Luetchford, Quinton Sussex - Gibbs, Langridge Wiltshire - Brice, Rumble http://genbires.blogspot.com/http://genbires-networking.blogspot.com/Any census info in this post is Crown Copyright, from www.nationalarchives.gov.uk
|
|
|
|
Pages: [1]
|
|
|
|
|