Page 1 of 1
Php from server cannot be displayed
Posted: Mon Mar 25, 2019 7:08 pm
by mindentezzel
Dear Pablo,
I am sorry my left-handedness, but I am not able to understand the following:
I create forms
my php file can be displayed from my computer (it appears as html) but it cannot be displayed from the server. I get an 500 Internal Server Error. What do I make wrong?
I have old php files made by me with an earlier version of wysiwyg. They have been working on my server for years. If I re-edit and save them by wysiwyg and put them into a new server directory I get the same 500 error. Shall I change something in my web builder (that I really love)
T.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 7:27 pm
by Pablo
Usually this indicates an error in the syntax. For example, there may be quote or other invalid character in your settings.
To be able to help you I need to see the PHP code.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 7:35 pm
by BaconFries
my php file can be displayed from my computer (it appears as html)
PHP cannot be viewed/previewed locally on your PC it is required ti be uploaded to your server. Please also ensure that the page extension is named correctly eg .php and not .html
but it cannot be displayed from the server. I get an 500 Internal Server Error.
As the message says it is a internal server error which means something has went wrong on the server. Please contact you hosting provider for help. It may just be a temporary issue amd will resolve itself in a couple of hours.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 7:53 pm
by mindentezzel
Dear Pablo,
pls give a look at these pics
php appears as html on my computer in chrome, I find it cool:
https://www.mediafire.com/view/av793av0 ... 1.jpg/file
https://www.mediafire.com/view/821t1141 ... l.jpg/file
I will ask my hosting provider about 500 internal server error
T.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 9:08 pm
by Pablo
To be able to help you I need to see the PHP code.
Menu -> Page -> Page HTML
It works locally because then the PHP code is filtered out.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 10:20 pm
by mindentezzel
I was happy at a sad part
pls see the wbs file, it is a standalone file
https://www.mediafire.com/file/wea2o6g4 ... s.wbs/file
Thank you for your kind help
T.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 10:26 pm
by Pablo
I have found the following issues:
- the specified email address is not valid
- the form does not have an success and error page.
- the CSV points to ./public_html/kerdoivproba/keerdodo.csv, this is most likely not correct.
If the CSV file is in the same folder then it should be set to
./keerdodo.csv
Also, make sure the file exists on the server and is writable.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 10:53 pm
by mindentezzel
on the server and is writable
There was an error, too many options were allowed
Thank you !!!
I do not know the precise terms, so I put a pic here for armatures like me.
It shows the right permissions: octal 0644 in both cases (csv and php).
https://www.mediafire.com/view/19u3bo7o ... e.jpg/file
Thank you for you fast and kind help
T.
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 10:57 pm
by Pablo
Maybe it needs to be 666 or 777?
Does it work when you disable CSV?
Re: Php from server cannot be displayed
Posted: Mon Mar 25, 2019 11:18 pm
by mindentezzel
I have tried both options.
No, it works only with 0644
Yes, it works without csv, but of course it does not write