close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undefined variable loginFormAction

Thread began 9/14/2016 7:09 am by warpsys | Last modified 9/16/2016 4:19 am by Ray Borduin | 416 views | 12 replies |

warpsys

Undefined variable loginFormAction

I am in the process of moving web hosting companies for one of our websites. The website requires the visitor to agree to Terms and Conditions prior to viewing the site. This work well on the current site, but whilst testing the new site, when the visitor clicks agree or disagree, the following error occurs

he requested URL /<br /><b>Notice</b>: Undefined variable: loginFormAction in <b>/home/xxxxxx/public_html/index.php</b> on line <b>162</b><br /> was not found on this server.

Please advise if you need more info

Many thanks

Paul

Sign in to reply to this post

warpsys

Update

If I manually define loginFormSction with this

$loginFormAction="index.php"

I then get the error

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/index.php:1) in /home/xxxxxx/public_html/webassist/security_assist/helper_php.php on line 62

Sign in to reply to this post

Ray BorduinWebAssist

This implies that you have a blank line of code on line 1. PHP doesn't allow blank lines before a redirect. Go through your page and remove any blank lines and the error should go away.

If you attached a copy of the index.php file I could be more specific.

Sign in to reply to this post

warpsys

Thank you Ray

please see attached

Sign in to reply to this post

Ray BorduinWebAssist

Are you still having the issue with this page? It doesn't look like there is anything on line 1 that would cause an issue.

Sign in to reply to this post

warpsys

Yes, I am afraid so

Now that I have I manually define loginFormAction with this in the index.php

$loginFormAction="index.php"

..I get this erro

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/index.php:1) in /home/xxxxx/public_html/webassist/security_assist/helper_php.php on line 56

Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP access? That will allow me to debug this properly.

Sign in to reply to this post

warpsys

Thanks Ray - please see attached

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure what was going on, but I think I've fixed it. You had your success and fail redirect set to: "/" and for some reason that seems to have caused the issue.

Sign in to reply to this post

warpsys

I am still getting the same error- do you think you might be looking at the current site not the new site?

Sign in to reply to this post
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...