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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Since I created user validation for some pages my login.php will not show on my site.

Thread began 1/05/2015 1:22 pm by bbgd | Last modified 1/06/2015 4:36 pm by Jason Byrnes | 779 views | 15 replies |

bbgd

Since I created user validation for some pages my login.php will not show on my site.

The page login php shows up fine on my test server. If I go to a restricted page on the test server it automatically goes to the login page. If I click on CLIENT LOGIN it also takes me to the login page. When I upload it to my server the page is blank no matter which way I go. I also can't get the passwords to work but I can get the redirect.

Sign in to reply to this post

Jason ByrnesWebAssist

a blank page means that a php error is occurring but error reporting is turned off.

to turn error reporting on, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



once we know what the error is, we will be able to troubleshoot the cause.

Sign in to reply to this post

bbgd

The error I get is:

Warning: mysql_pconnect(): Access denied for user 'boydbartley'@'localhost' (using password: YES) in /home/cinder2bob/public_html/test2/Connections/Interprimus.php on line 9

Fatal error: Access denied for user 'boydbartley'@'localhost' (using password: YES) in /home/cinder2bob/public_html/test2/Connections/Interprimus.php on line 9

Line 9 is @session_start();

Sign in to reply to this post

Jason ByrnesWebAssist

That suggests that the database connection file is not updated with the correct information for connecting to the remote MySQL server.

Sign in to reply to this post

bbgd

That suggestion worked. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

bbgd

See private message

Sign in to reply to this post

Jason ByrnesWebAssist

What are the pages you are having trouble with? Please provide direct links.

you say it's not accepting password?

please give step by step details to reproduce the issues so i can troubleshoot.

Sign in to reply to this post

bbgd

http://test2.interprimus.com/login.php- all restricted pages go here. See private message for passwords. When I put in the the username and password I get the 'Invalid username or password' message.


http://test2.interprimus.com/contactPage.php- I click on the login button and get the following message:

Warning: require_once(Connections/interprimus.php): failed to open stream: No such file or directory in /home/cinder2bob/public_html/test2/contactPage.php on line 11

Fatal error: require_once(): Failed opening required 'Connections/interprimus.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cinder2bob/public_html/test2/contactPage.php on line 11


Will you need my password for the phpMyAdmin?

Sign in to reply to this post

Jason ByrnesWebAssist

Login page- there where duplicate sections of code, looks like you ran the security assist wizard multiple times to cause the duplicates. i removed the duplicate code.

also one of the validations was set to enforce a 6 character minimum on the user name, this was failing because the user name you are using is not 6 characters long.

Contact page: The connection was pointing to Connections/interprimus.php, but the connection file is named with an uper case I, i updated that to:
Connections/Interprimus.php

to fix the error.

the other errors that are on the page are a a result of your mail script.

in the ScriptLibrary/incSmartMailer.php file, you should change line 7:

session_start();


to:
@session_start();



also for the form element value, you should use isset, for example:
value="<?php echo $_POST['first_name']; ?>"


should be:
value="<?php echo(isset($_POST['first_name'])?$_POST['first_name']:""); ?>"

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...