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

Mysqli log-in results in a blank page when placed online.

Thread began 11/11/2014 2:57 pm by administration282761 | Last modified 11/11/2014 4:12 pm by Jason Byrnes | 437 views | 5 replies |

administration282761

Mysqli log-in results in a blank page when placed online.

I am using the new Mysqli SB tool (which is really great BTW) to create a user log-in and update system. I have followed the tutorial and on my local computer, everything works as expected. The user can log-in and update their information, etc. However, the same files installed on the live server result in a blank page when one tries to log-in.Obviously, I have overlooked something really simple but I cannot get to the bottom of the problem. FYI - much of the site has been updated to work with Mysqli so this question is specific to the Log-in function. Many thanks for any advice.

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

administration282761

Thanks - here is the result:

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/website.ch/httpdocs/portfolio/log-in.php:6) in /home/httpd/vhosts/website.ch/httpdocs/webassist/mysqli/authentication.php on line 138

("website.ch" has been substituted for the actual server address)

Sign in to reply to this post

Jason ByrnesWebAssist

this means there is output such as a blank line between a closing php tag:
?>

and an opening php tag:
<?php

around line 6 of the log-in.php page.


see this thread for details on troubleshooting the headers already error:
http://www.webassist.com/forums/posts.php?id=19285

Sign in to reply to this post

administration282761

Many thanks - it worked. As I said in my original post, I obviously overlooked something basically simple.
Your support is really great!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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