Welcome, Guest. Please login or register for free.
Did you miss your activation email?
Thursday 21 August 08 09:19 BST (UK)
Welcome Home Help Shop Search Calendar Login Register
Search Images 

Online
 
  First Name(s)

Last Name

 
News: Ad: New! FULL 1841 Census: England - Isle of Man - Wales  - Channel Islands Now online. No missing counties.

+  RootsChat.Com
|-+  General
| |-+  The Common Room
| | |-+  Free RootsChat Webspace (Moderator: trystan)
| | | |-+  Aargh! Why doesn't my Guest Book work?
« previous next »
Pages: [1] Print
Author Topic: Aargh! Why doesn't my Guest Book work?  (Read 1080 times)
JDGen
RootsChat Aristocrat
******
Offline Offline

Posts: 1733



WWW
Aargh! Why doesn't my Guest Book work?
« on: Friday 06 January 06 21:21 GMT (UK) »

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.uk

CHS: 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 Offline

Posts: 1349


Portrait of the genealogist as a young man


WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #1 on: Saturday 07 January 06 00:26 GMT (UK) »

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
trystan
Moderator
RootsChat Aristocrat
*******
Offline Offline

Posts: 1773


One of the RootsChat Caretakers


WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #2 on: Saturday 07 January 06 01:12 GMT (UK) »

Jean,

If you let us know your web address then we can have a go at working out what's going wrong (or send me a Personal Message and I'll look into it for you)


Trystan
Logged

Send RootsChat a postcard:
RootsChat.com, Europa House, Barcroft Street, Bury, Lancashire, BL9 5BT
Admin Tip: Forgotten your Username or Password and would like to reply to one of these messages?  CLICK HERE to get a reminder.
AOL Users: You may need to 'cut and paste' any links you get in emails for them to work.
JDGen
RootsChat Aristocrat
******
Offline Offline

Posts: 1733



WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #3 on: Saturday 07 January 06 11:11 GMT (UK) »

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.uk

CHS: 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 Online

Posts: 5056


by My Daughter. Chatting to find her Roots !


Re: Aargh! Why doesn't my Guest Book work?
« Reply #4 on: Saturday 07 January 06 11:20 GMT (UK) »

Hi Jean,

I notice you have your website address in your profile, but as text.

If you enter it in the relevant fields (see below) it will then be shown as a globe-icon in all your messages and you can put something else in the text bit.

Quote
Website title: A title (the one between the <title>-tags)
This must be included if you specify a website address below.
   
Website URL:
http://jdcheshire.rootschat.net/
Please include the complete website address.

I have to go out now, but if Trystan hasn't replied when I get back I'll have a look too.
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)
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Online Online

Posts: 5056


by My Daughter. Chatting to find her Roots !


Re: Aargh! Why doesn't my Guest Book work?
« Reply #5 on: Saturday 07 January 06 21:39 GMT (UK) »

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:
Code:
   $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
Code:
       $vcomment = str_replace(""","\"",$vcomment);   
and
Code:
       <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:
Code:
   $vname = str_replace("<","&lt;",$vname);
   $vname = str_replace(">","&gt;",$vname);
   $vname = str_replace("~","-",$vname);
   $vname = str_replace("\"","&quot;",$vname);
   $vcomment = str_replace("<","&lt;",$vcomment);
   $vcomment = str_replace(">","&gt;",$vcomment);
   $vcomment = str_replace("|","",$vcomment);
   $vcomment = str_replace("\"","&quot;",$vcomment);
and
Code:
       $vcomment = str_replace("&quot;","\"",$vcomment);   
and
Code:
  <font size="2" color="<?=$title_color?>"><b>&raquo;</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 Offline

Posts: 1733



WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #6 on: Sunday 08 January 06 11:36 GMT (UK) »

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.uk

CHS: 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 Online

Posts: 5056


by My Daughter. Chatting to find her Roots !


Re: Aargh! Why doesn't my Guest Book work?
« Reply #7 on: Sunday 08 January 06 13:06 GMT (UK) »

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 (&gt;, 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 Offline

Posts: 1349


Portrait of the genealogist as a young man


WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #8 on: Sunday 05 February 06 11:51 GMT (UK) »

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 Offline

Posts: 1349


Portrait of the genealogist as a young man


WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #9 on: Sunday 05 February 06 12:29 GMT (UK) »

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
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Online Online

Posts: 5056


by My Daughter. Chatting to find her Roots !


Re: Aargh! Why doesn't my Guest Book work?
« Reply #10 on: Sunday 05 February 06 12:37 GMT (UK) »

Hi Julian,

I've just tried entering something and got an error message which disappeared before I could read it !

I then tried it again and pressed the "print" key as soon as the error message came up
(saves a screen shot in the clipboard)
I then used <ctrl> + V to dump the clipboard into IrfanView

It definitely says "Permission denied"  !!
And despite the "thank you" message, my text wasn't saved !

I then check my guestbook and the file attribute is -666 (ftp program)
or -rw-rw-rw- (RootsChat file manager).
Are you sure this is what you have ??

Bob



* guestbook.jpg (15.15 KB, 800x187 - viewed 114 times.)
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 Offline

Posts: 1349


Portrait of the genealogist as a young man


WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #11 on: Sunday 05 February 06 12:42 GMT (UK) »

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 Online

Posts: 5056


by My Daughter. Chatting to find her Roots !


Re: Aargh! Why doesn't my Guest Book work?
« Reply #12 on: Sunday 05 February 06 12:48 GMT (UK) »

Next question:

Quote
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 ? Grin

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 Offline

Posts: 1349


Portrait of the genealogist as a young man


WWW
Re: Aargh! Why doesn't my Guest Book work?
« Reply #13 on: Sunday 05 February 06 13:24 GMT (UK) »

Next question:

Quote
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 ? Grin

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] Print 
« previous next »


[Copyright] [Free RootsChat Webspace] [Your Surname Interests] [Shrink Link] [About Us] [Terms of Use]
All Census Lookups are Crown Copyright, National Archives for academic and non-commercial research purposes only
RootsChat.com cannot be held responsible directly or indirectly for the messages or content posted by others. Inline images in messages are the copyright of the respective linked sites.
RootsChat.com, Europa House, Bury, Lancashire, BL9 5BT
0.226:22