Php Error

Issues related to previewing and publishing your web site.
Post Reply
Milt
 
 
Posts: 4
Joined: Fri Sep 29, 2017 10:26 am

Php Error

Post by Milt » Fri Sep 29, 2017 10:31 am

Hello
Question about below PHP error. I'm not new to wysiwyg builder so I'm not sure what is going on. My page is set to PHP (for a contact form) but I keep getting the below error code. I have no know errors on the page and I don't see any conflicts because it is a simple page. I can't remember but can I use a master page with content place holder on a PHP page? I don't remember there every being a problem until now. I'm running latest version. Thank you :)

Any help would be appreciated.

Milt

HTTP 500 error
That’s odd... the website can’t display this page
The site may be under maintenance or could have a programming error.
Try this
Go back to the last page
Try contacting the website’s owner

User avatar
BaconFries
 
 
Posts: 3891
Joined: Thu Aug 16, 2007 7:32 pm

Re: Php Error

Post by BaconFries » Fri Sep 29, 2017 11:01 am

This has nothing to do with the programme a 500 error is a internal server issue which means something has went wrong but cannot exactly say what. Please check your host/server supports PHP along with ensuring that all files have been uploaded to the correct folder. As it is unrelated to the programme you will need to contact your host to check they are not having any issues such as a downtime it may just be temporary and checking later it may be resolved.

User avatar
Pablo
 
Posts: 12614
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Php Error

Post by Pablo » Fri Sep 29, 2017 11:17 am

I need to see the PHP code of the page to be able to tell if there is an error.

Milt
 
 
Posts: 4
Joined: Fri Sep 29, 2017 10:26 am

Re: Php Error

Post by Milt » Fri Sep 29, 2017 12:06 pm

Hello
Tech support gave me this reply after checking..

Parse error: syntax error, unexpected 's' (T_STRING) in /home/******/public_html/**************.php on line 46

Milt
 
 
Posts: 4
Joined: Fri Sep 29, 2017 10:26 am

Re: Php Error

Post by Milt » Fri Sep 29, 2017 12:12 pm

Found the error... I had put an apostrophe in the subject line. Duh. :oops: This business name includes an apostrophe so I suppose I have to be a little more careful with coding. :) Thank you.
Last edited by Milt on Fri Sep 29, 2017 12:16 pm, edited 1 time in total.

Milt
 
 
Posts: 4
Joined: Fri Sep 29, 2017 10:26 am

Re: Php Error

Post by Milt » Fri Sep 29, 2017 12:13 pm

You know how it is... You look at something for some long and you can't see anything after a while. :D

User avatar
Pablo
 
Posts: 12614
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Php Error

Post by Pablo » Fri Sep 29, 2017 12:38 pm

You will need to escape apostrophes like this:

Code: Select all

Place \'this\' in apostrophes.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests