murphydesigns Posted April 16, 2010 Share Posted April 16, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/ Share on other sites More sharing options...
oni-kun Posted April 16, 2010 Share Posted April 16, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1042792 Share on other sites More sharing options...
murphydesigns Posted April 16, 2010 Author Share Posted April 16, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1042801 Share on other sites More sharing options...
PFMaBiSmAd Posted April 16, 2010 Share Posted April 16, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1042806 Share on other sites More sharing options...
murphydesigns Posted April 16, 2010 Author Share Posted April 16, 2010 Certainly, here is the link to the page where I located the script http://car-dealer-website.org/ Any help would be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1043031 Share on other sites More sharing options...
PFMaBiSmAd Posted April 16, 2010 Share Posted April 16, 2010 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.) Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1043064 Share on other sites More sharing options...
murphydesigns Posted April 16, 2010 Author Share Posted April 16, 2010 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?? Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1043072 Share on other sites More sharing options...
murphydesigns Posted April 16, 2010 Author Share Posted April 16, 2010 I GOT IT TO WORK!!!!!! HOORAY Thanks for looking at it for me Quote Link to comment https://forums.phpfreaks.com/topic/198700-help-blank-page-on-admin-page-httpwwwellerbeckmotorscaadmin/#findComment-1043138 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.