Jump to content

HELP!!!!! Blank Page on Admin Page (http://www.ellerbeckmotors.ca/admin/)


Recommended Posts

Hi All,

 

I am pulling my hair out with this problem, I am looking for suggestions to help debug this problem ASAP. I am fairly new to PHP, this is my first database attempt. I am using a car database obtained for free off the web. I think I have the database information entered in properly, it is shown below:

 

<database type="mysql">

<server>sql5c11b.megasqlservers.com</server>

<login>ellerbeckm619178</login>

<password>*****</password>

<default>phpmy1_ellerbeckmotors_ca</default>

</database>

 

I managed to get rid of the connection error I was getting by playing around with the login and servers. The issue is now I am getting a blank screen.

 

Does anyone have any thoughts, I have tried everything I know of.

 

Thanks in Advance

 

 

Error reporting is most likely set to off on your server thus the blank page. Add the following lines to the top of your code (In the code file you provided):

ini_set('display_errors',1);

error_reporting(E_ALL);

 

You should always check the support forums and documentation of the third part script.

I added the code to the PHP page....index.php

<?php

ini_set('display_errors',1);

error_reporting(E_ALL);

//define("PB_CRYPT_LINKS" , 1);

require "config.php";

 

$site = new CSite("./site.xml",true);

$site->Run();

 

?>

 

I am still getting a blank page, could there be an issue with the config.php file?

This is the config file:

<?php

define("_LIBPATH","./lib/");

require_once _LIBPATH . "site.php";

?>

 

Is there a particular directory I need to be placing the files, I have them in the root directory.

 

Thanks for the quick reply, I feel a little lost, and I am running out of ideas.

 

 

Blank php pages are either due to fatal parse errors, fatal runtime errors, or simply code that is not outputting anything.

 

Adding the two lines that set error_reporting/display_errors in the code does not do anything in the case of fatal parse errors because the code is never executed to change those settings.

 

I managed to get rid of the connection error I was getting by playing around with the login and servers

You probably introduced a syntax error (fatal parse error) that is preventing the code from ever executing.

 

You could set the error_reporting/display_errors settings in a local php.ini (when php is running as a CGI application) or in a .htaccess file (when php is running as an Apache Module), but frankly, you should be developing and debugging your code on a local development system and only put it onto a live server once it is completely working.

 

It would certainly help if you provided a link to the site where you obtained the script.

The script worked for me.

 

All I did after copying all the files into a folder in my document root folder was to execute the site.sql file to set up the database, edit the site.xml file with the database details, and change some of the lazy-way short open tags into normal opening tags (the raw php code was being displayed instead of being parsed as code.)

Maybe there is something wrong with my details...maybe I should erase everything and start from scratch.

 

I entered in the server that my host has displayed, the user name and password to the database, and the database name.

 

frustrating!!! were the files you uploaded in the root director, public folder??

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.