close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP pages not working on remote server

Thread began 5/18/2017 2:02 pm by s.joiner74419001 | Last modified 5/25/2017 8:52 am by Ray Borduin | 2052 views | 11 replies |

s.joiner74419001

PHP pages not working on remote server

I have built a few pages using various Data Bridge plugins which all work fine on my local testing server. But don't work when uploaded to my remote server. I suspect it is an issue with PHP versions but I have no idea on how to resolve it. I believe my server is running PHP 5.6. I have other sites set up the same with no problems with any PHP pages so I am a bit losses to what the problem is.

You can view the site at - www.rtmf.org.uk/test-site
The pages that are getting 500 internal server errors are;

right-to-manage-news.php
right-to-manage-success.php
contact.php

Thanks in advance!

Sign in to reply to this post

Ray BorduinWebAssist

It could be anything. Maybe just missing files that you didn't upload. If I had FTP access I could debug it.

Sign in to reply to this post
Did this help? Tips are appreciated...

s.joiner74419001

See private message

Sign in to reply to this post

Ray BorduinWebAssist

You are referring to URL parameters without checking if they exist or not. I was able to get the news page to show up by checking if they exist before displaying them. There is a php.ini setting to ignore this kind of error that is probably different on your live server.

("".$_GET['year'] ."" == "2016")

becomes:
("".(isset($_GET['year'])?$_GET['year']:"") ."" == "2016")

Using that syntax or updating the php.ini file should correct the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

s.joiner74419001

Thanks for this Ray. Ive had a go at adjusting the code in the 'right-to-manage-success.php' page but can't seem to get it working.

Any pointers please!

Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

I updated lines 22 and 23 that referred to $_GET variables without checking if they exist. I also had to update the connection file since it seems you had overwritten the live settings with your local testing connection.

Sign in to reply to this post
Did this help? Tips are appreciated...

s.joiner74419001

Thanks for this Ray... So what about the contact.php page which is just an enquiry form? I doesn't use any variables, as far as I'm aware..

Sign in to reply to this post

Ray BorduinWebAssist

On line 310 you have:
if ("".$_GET['action'] ."" == "sent")

needs to be:
if ("".(isset($_GET['action'])?$_GET['action']:"") ."" == "sent")

Sign in to reply to this post
Did this help? Tips are appreciated...

s.joiner74419001

Thanks Ray. So now I've got to adjust most of the pages in the admin section.

http://www.rtmf.org.uk/test-site/admin

I've managed to correct some successfully but I'm stuck on 'rtm-properties-list.php' which uses a search behaviour. I've tried to adjust lines 10,16,17 and 18 referring to a page you corrected for me that also used a search behaviour but I must be incorrectly adjusting it. The page loads ok but the three buttons using the search behaviour causes error. plus the view all button is not working.

Help please!

Sign in to reply to this post

Ray BorduinWebAssist

You have the wrong syntax.

For instance line 16 you have:
($_GET['unknown']?$_GET['unknown']:"")

but it should be:
(isset($_GET['unknown'])?$_GET['unknown']:"")

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...