PDA

View Full Version : Gone through the whole process, getting blank pages


gail.bergan407744
06-17-2010, 09:24 AM
Hi, I think I've gone through the whole process, yet when I try to access my pages on the remote server, I'm getting blanks. This is what I've done.
- Installed URSP; copied all files to the secure folder of my local site
- Went through all How To PDFs and made the changes: imported the users table into my existing database, updated the DB connections file, customized WA_Globals.php, added my template to your pages successfully, restricted access to certain pages, made a mysql dump of my database and imported into the server's database of the same name....then uploaded all my files via DreamWeaver CS4's upload feature.
- Now when I go to the remote site and try to access any of the pages I just altered - for example www.gcssepm.org/secure/users_LogIn.php, I get nothing. Blank. This is true for all pages.

About ready to tear my hair out now...any help would be appreciated. Note that this was originally a static HTML site that my client wanted certain database applications added to; so the only PHP files are in the secure folder. I hope I assumed correctly that I could do this. Did I upload everything into the wrong folder?

Gail

Jason Byrnes
06-17-2010, 10:01 AM
when php pages display b lank, it means a php error is occurring, but error reporting is turned off.

to troubleshoot the problem, we will need to know the error. To turn error reporting on, add the following code at line one of the login page:

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


once we know the error, we can start tracking down the cause.

gail.bergan407744
06-17-2010, 11:31 AM
OK, I added the code and here are the resulting error messages:

Warning: require_once(Connections/localhost.php) [function.require-once]: failed to open stream: No such file or directory in /home/gcssepm/www/secure/users_LogIn.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'Connections/localhost.php' (include_path='.:/usr/local/lib/php') in /home/gcssepm/www/secure/users_LogIn.php on line 5

Jason Byrnes
06-17-2010, 12:12 PM
that error means the connections/localhost.php file has not been uploaded


upload the connections folder to the /home/gcssepm/www/secure/ directory on the host.

gail.bergan407744
06-17-2010, 12:33 PM
The line

<?php require_once('Connections/localhost.php');?>

needed to be changed to my actual database name:

<?php require_once('Connections/GCSMembership.php');?>

This allows the page to show up, but all template details that I applied to the page are missing. My server tech support pointed out that some lines in the users_LogIn.php page have invalid paths:

<script src="../../../../wamp/www/2010 new site/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../../../../wamp/www/2010 new site/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<link href="../../../../wamp/www/2010 new site/GCSSEPM.css" rel="stylesheet" type="text/css" />

Those files are present in the site, but OUTSIDE the secure folder, in the SpryAssets folder in the main www area. So, I understand path problems, I just don't know how to fix it. Do I move your php files (and their supporting files) OUT of the secure folder and into the main www area? or vice versa? I was assuming the php files (and their supporting files) needed to be in the secure folder because of the login process, but maybe I assumed wrong.