entries aren't displayed

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
frifi
Posts: 5
Joined: Mon May 26, 2014 9:10 pm

entries aren't displayed

Post by frifi »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Greetings from Germany !
Could you please have a look at my homepage http://www.ffkamen.de ?
many thanks
frifi
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: entries aren't displayed

Post by Henrie »

Hello frifi,

I took a look at your guestbook and indeed, entries are not displayed.
When I look at the generated code, it seems at if the file comments.php which is located in your \templates\default (or your own theme name instead of default) folder can not be found. I say this because none of the code that is generated by that file is in the sourcecode of the page that is being displayed when I choose 'Gästebuch anzeigen'.

This can have 3 possible reasons:
  1. You did not upload the file comments.php to your \templates\default (or your own theme name instead of default) folder.
    To fix this, upload the comments.php file from the downloaded GBook zip file to your webserver in the right folder.
  2. The comments.php file is empty. You could have edited it and saved it empty, or with no code that can be displayed. To fix this, upload the original comments.php file from the downloaded GBook zip file to your webserver in the right folder.
  3. You have edited gbook.php and deleted or wrongly changed the part that displays the content of the comments.php file. To fix this, upload the original gbook.php file from the downloaded GBook zip file to your webserver in the gbook folder.
I hope this helps. If not, we need to search further.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
frifi
Posts: 5
Joined: Mon May 26, 2014 9:10 pm

Re: entries aren't displayed

Post by frifi »

Dear Henrie,
lots of thanks for your prompt help and interest in my problem !
1. the comments-file was present
2. it wasn't empty
3. I uploaded it from a fresh copy in the GBook-zip
but there was no change ...

By the way : I took a lot of time to get some answers from the t-online gods (TeleKom)
concerning the CHMOD function. My FTP program 'fetch' can do the modifications in a
very easy way, but it always got a 'forbidden-error' from the server. At last I found out,
that they set the .txt-file to 640 and the app-tmp-folder to 750 - and they say, that this
is enough for a secure traffic on the server and that I'm not allowed to CHMOD any privileges !
"So if your guestbook-author insists on CHMOD --- switch to another guestbook script !"

Now my question is: will the fixed privileges be enough for my gb ?
or
why can the gb write a new comment (and count the number of entries) but not
display them ?

greetings and best whishes from germany
yours frifi
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: entries aren't displayed

Post by Klemen »

If the server runs PHP under account username then no CHMOD settings will be required. If it runs as another user (like "nobody") then no PHP script will be able to write to files unless CHMOD is modified correctly.

I'm not sure what kind of changes you did to your files, but try this:

1. create a new "test" folder
http://www.ffkamen.de/guestbook/test

2. upload all GBook files inside "test"

3. DO NOT MAKE ANY CHANGES AT ALL to any of the files, just run a clean test:
http://www.ffkamen.de/guestbook/test

Does that work?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
frifi
Posts: 5
Joined: Mon May 26, 2014 9:10 pm

Re: entries aren't displayed

Post by frifi »

Hello Klemen,
it runs wonderfully !
How must I go on ?

thank you very much
frifi
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: entries aren't displayed

Post by Klemen »

This means GBook works fine on your server and something you changed along the way is causing problems. We can't know what as we don't know what has been changed.

One possible issue would be that the $settings['tpl_path'] is incorrect in your settings.php file, double-check that (and make sure you don't include the / at the end).

If that doesn't work, my suggestion would be to start from a fresh installation, make a small change, test it, make another small change, test, make change, test... This way you will know what changes of yours are the source of the problem.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
frifi
Posts: 5
Joined: Mon May 26, 2014 9:10 pm

Re: entries aren't displayed

Post by frifi »

Good evening, Henrie .

I got a message from the guestbook and read your comment as follows :
Henrie Test for guestbook forum<br />The guestbook administrator can delete this message when he/she see it. Sonntag, den 8. Juni 2014 um 13:21 h 0 0 88.159.62.4

Hello Klemen,
I beg your pardon, sir, but I can't find "$settings['tpl_path']" in my settings-file ?

Thanks for your efforts, gentlemen !

frifi from Germany
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: entries aren't displayed

Post by Henrie »

Hello frifi

I think maybe Klemen means $settings['template']='default';

And I think it is set correctly. That is why I posted the message, to see if any other files in the template folder were found correctly. And it seems that is does, because the sign_form.php file is used without any errors.

And I think Klemen is right, it would be best to start with a clean installation. When it works without you having changed any styles or header.txt and footer.txt files, than change one thing and test, than the next and test, untill all is working as you want.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
frifi
Posts: 5
Joined: Mon May 26, 2014 9:10 pm

Re: entries aren't displayed

Post by frifi »

Dear Henrie,
it works at last and I want to thank Klemen and you for your help !
Like Klemen proposed I started from a fresh Installation and tried a lot of different things,
but I was very frustrated with the monster running on my local machine and doing nothing
when uploaded - - - at last I installed a fresh gbook.php file and suddenly it worked !
If you would kindly have a last look at my website, you will notice, that the time-stamp
of your posting is in an 'official' German sort of presentation (even with time).
That has changed in my newest entries - so that I suspect that there was the source of the malfunction !
I'll let it run as it wishes - got some other problems to solve now !

It's a fine guestbook and you are some helpful fellows.
frifi from Germany
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: entries aren't displayed

Post by Henrie »

Hello frifi,

I am happy that you finally got it to work.
If you had previously changed the settings to display the timestamp as you wanted it, than that change was probably the reason it did not work. You probably had a markup that messed with the php code.

And the best way to learn is by correcting errors ;-)

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply