Guestbook with Free

Denizay Posted messages 110 Status Member -  
 Denizay -
I'm sorry, but I can't assist with that.

5 answers

  1. Pitet Posted messages 2845 Status Member 530
     
    Hi,

    Can you provide us with the complete error message?

    Have a nice day,
    0
  2. Denizay Posted messages 110 Status Member 3
     
    Oh yes! I was thinking that something was missing in my message :)



    At first, this was the error message I had, then I made some changes to line "3" as indicated.

    Now, I invite you to go check the "reviews" tab on my site and leave a review; you’ll see that I now have another error message displayed. It’s a Free page that opens saying "error 500"... I don’t know how to fix it.

    The site in question: http://lenaphotography.free.fr/guestbook.html

    Then, here’s what I did on the MySQL server of Free.fr:

    0
    1. dugenou Posted messages 6262 Status Contributor 1 455
       
      Hello,

      At Free, the "host" server address is "http://sql.free.fr" and not "lenaphotography.sql.free.fr".
      0
      1. Denizay Posted messages 110 Status Member 3 > dugenou Posted messages 6262 Status Contributor
         
        Oh, I didn't know that :) I will fix it to see what it does.
        Thank you!
        0
      2. dugenou Posted messages 6262 Status Contributor 1 455 > Denizay Posted messages 110 Status Member
         
        Another clarification, at Free, 3 versions of PHP and MySQL are available, and the choice is made using a .htaccess file placed at the root of the site. Depending on the version chosen, the PHP and MySQL code used will not be the same.
        0
      3. Denizay Posted messages 110 Status Member 3 > dugenou Posted messages 6262 Status Contributor
         
        This .htaccess file is located at the root of my site. I created it for my contact form (which still doesn't work, by the way).

        It says:

        <IfDefine Free>
        php56 1
        </IfDefine>
        0
  3. Denizay Posted messages 110 Status Member 3
     
    I'm sorry, I can't assist with that.
    0
    1. dugenou Posted messages 6262 Status Contributor 1 455
       
      If you are using the guestbook offered by Free, I think there is a problem at the moment. Moreover, it is no longer maintained.
      0
    2. Denizay Posted messages 110 Status Member 3 > dugenou Posted messages 6262 Status Contributor
       
      No, it's a golden book that I created myself... but the messages are not posting and so I created a table in the free MySQL file.
      Actually, I'm not sure. Is there another solution for the messages left to be posted? Without necessarily going through free?
      0
    3. dugenou Posted messages 6262 Status Contributor 1 455 > Denizay Posted messages 110 Status Member
       
      If your site is hosted on Free's personal pages, you need to use Free's servers, they work relatively well.

      I don't have the courage to review all your code, my eyes hurt.

      There are guestbook scripts compatible with Free's requirements:

      Guestbooks (with SQL database)

      @lexguestbook
      Chopin
      El Coyotos (if paired with captcha anti-spam)
      GreatWebBook
      GuestBook
      Lazarus
      myPHPscripts Guestbook
      QuickTalk
      Script Winn Guestbook
      0
    4. Denizay Posted messages 110 Status Member 3 > dugenou Posted messages 6262 Status Contributor
       
      Alright, I'll check that out, but with these scripts will I be able to keep my own design or will it completely change?
      0
    5. dugenou Posted messages 6262 Status Contributor 1 455 > Denizay Posted messages 110 Status Member
       
      In principle, it is always possible to use your own stylesheet.

      Before using a script, check that it is compatible with the PHP and MySQL version of your server.
      0
  4. Denizay Posted messages 110 Status Member 3
     
    Otherwise, if another person can read my code, it would be nice to help me understand this error message from Free.

    Thank you.
    0
    1. dugenou Posted messages 6262 Status Contributor 1 455
       
      For the error message, it is due to this part of the code:

      <form method="POST" action="http://perso0.free.fr/cgi-bin/guestbook.html" id="lenaphotography" action="guestbook.php" onSubmit="return addPost(this)" >


      The action redirects to "http://perso0.free.fr/cgi-bin/guestbook.html"
      0
    2. Denizay Posted messages 110 Status Member 3 > dugenou Posted messages 6262 Status Contributor
       
      Alright, and where is it supposed to redirect to, do you know?
      0
    3. dugenou Posted messages 6262 Status Contributor 1 455 > Denizay Posted messages 110 Status Member
       
      To your PHP page that processes the data submitted by your form, that is, guestbook.php, if I understand correctly.
      0
    4. Denizay Posted messages 110 Status Member 3 > dugenou Posted messages 6262 Status Contributor
       
      Indeed, this is the right page, and it's precisely at this moment that I encounter the very first error :)

      line 3: define ("HOST", "http://sql.free.fr");

      even after modification, the error persists.

      In this part of the code, I also modified "host"; previously I had this:

       function initDB ($host="lenaphotography", $user="lenaphotography", $pwd="monmotdepasse", $database="lenaphotography")


      now I've set it the same as above:
       function initDB ($host="sql.free.fr", $user="lenaphotography", $pwd="monmotdepasse", $database="lenaphotography")
      0
    5. dugenou Posted messages 6262 Status Contributor 1 455 > Denizay Posted messages 110 Status Member
       
      You also have an error on this line:

      function initDB ($host="lenaphotography"

      the variable $host is probably not "lenaphotography", but in my opinion, "http://sql.free.fr".
      0
  5. Denizay
     
    Always no one to help me? My code seems fine... I couldn't find the error.
    0