Page 1 of 1

GBook Appears blank

Posted: Sat May 16, 2020 3:41 pm
by Voreno
Script URL: http://iseliodelisi.com/diccilatua/gbook.php
Version of script: 1.8.2
Hosting company: Hostek
URL of phpinfo.php: http://iseliodelisi.com/session_test.php
URL of session_test.php: http://iseliodelisi.com/phpinfo.php
What terms did you try when SEARCHING for a solution: blank GBook

Write your message below:

Initially GBook appeared in English (even if I had translated it into Italian) ,

when I tried to post something a blank page appeared (I did not receive a new post email).

I set the CHMOD

file entries chmod: 666,
file Banned IP, chmod: 777,
folder apptmp: chmod: 777,

GBook appeared again but in English (I didn't tried make a new post this time).

I set: setting.php file to:

// Language file
$ settings ['language'] = 'italiano.inc.php';

GBook has disappeared again (shows a blank page).

I have corrected some missing " '\ '", GBook still does not appear.

Could someone please help me?

Thanks for the attention

Voreno

Re: GBook Appears blank

Posted: Sat May 16, 2020 4:45 pm
by Klemen
This means there is probably a PHP syntax error somewhere. Impossible to tell exactly where without seeing your files.

Do you have space before and after "settings" in $settings['language']? There shouldn't be any space there.

If that's not the problem you will need to have someone look at your files (or check your server error logs for information in which line the error occurs).

Re: GBook Appears blank

Posted: Sun May 17, 2020 2:03 pm
by Voreno
Hi Klem,

thanks for your reply I checked several times the files, I fixed some sintax errors but the GBokk still didn''t show.
Finally I found a missing apostrophe at the line: Febbraio';

I fixed it and the GBook appeared. I wrote th first Comment, I filled all the required fields and click on the "Submint" button.

The main page became blank and I didn't receive any email about the new comment to approve.

I cannot understand the error or where to check it.

Please can you help me?

the page is visible at: http://iseliodelisi.com/diccilatua/gbook.php?a=sign

thank for the attention.

Voreno

Re: GBook Appears blank

Posted: Mon May 18, 2020 7:07 pm
by Klemen
Do you get any additional errors if you set

Code: Select all

$settings['debug'] = 0;
to

Code: Select all

$settings['debug'] = 1;
in your settings file?

Does it work if you set

Code: Select all

$settings['man_approval'] = 1;
back to

Code: Select all

$settings['man_approval'] = 0;
in your settings file?

Re: GBook Appears blank

Posted: Tue May 19, 2020 8:20 am
by Voreno
Hello Klemer,

thanks for your reply.

This are the results of the perfomed actions:

set $settings['debug'] = 1; don't works, No error Message

set $settings['man_approval'] = 0; don't works, No error Message

set $settings['debug'] = 1; & $settings['man_approval'] = 0; = don't works, No error Message

CHMOD

Pemissions

Main GK folder 755

folder apptmp 777

folder badwords 755 -> file it.php 644

folder templates 755

txt file entry renominated 666

txt file banned.ip 777

footer 644

gbook.php 644

index.php 644

italiano.inc.php 644

language.inc.php 644

print_sec_img.php 644

secimg.inc.php 644

settings.php 644

smileys.php 644

If can help I can send you the settings file.

Thanks for your attention.

Voreno

Re: GBook Appears blank

Posted: Tue May 19, 2020 8:50 am
by Klemen
Are you able to give me FTP access to your server? If yes, you can send it in a private message and I will have a look.

Re: GBook Appears blank

Posted: Wed May 20, 2020 10:07 am
by Klemen
You had a bunch of PHP syntax errors (mostly missing double quotes) in the /badwords/it.php file, that was causing the problems.

I fixed those and it works now.

Re: GBook Appears blank

Posted: Thu May 21, 2020 9:48 am
by Voreno
Hi Klem,

Thanks a lot!

Now your Guestbook works fine, you are great! A true PHP Master and good person!

Again thanks! :D