Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't access admin. Blank page.


ivan8r

Recommended Posts

I just finished installing 2.2ms1, and I can't seem to gain access to my admin. I have installed this successfully before on the same server, so that makes this hard to understand since I didn't do anything different from my first install. I am able to access my catalog, but I get a blank screen for admin. No errors... just a white screen.

 

Did I do something wrong?

Link to comment
Share on other sites

  • 4 years later...
  • 5 weeks later...

My admin page is blank also. Does anyone know how to fix this? I just moved from a shared host to a virtual dedicated server with Plesk. Could this be because of my admin/configure.php? Is the following right?

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://cootersautomanuals.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://cootersautomanuals.com');

define('HTTPS_CATALOG_SERVER', 'https://cootersautomanuals.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/cootersautomanuals.com/httpdocs/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/httpd/vhosts/cootersautomanuals.com/httpdocs/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', /home/httpd/vhosts/cootersautomanuals.com/httpdocs/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Link to comment
Share on other sites

Shelby replace your whole config file with this one (remember to input databse info at bottom) and see if it works.

 

<?php

define('HTTP_SERVER', 'http://cootersautomanuals.com');

define('HTTP_CATALOG_SERVER', 'http://cootersautomanuals.com');

define('HTTPS_CATALOG_SERVER', 'http://cootersautomanuals.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/cootersautomanuals.com/httpdocs/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/home/httpd/vhosts/cootersautomanuals.com/httpdocs/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/cootersautomanuals.com/httpdocs/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'DATABASE-USERNAME-HERE');

define('DB_SERVER_PASSWORD', 'PASSWORD-HERE');

define('DB_DATABASE', 'DATABASE-NAME-HERE');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

I didnt have any freakin links in my sig!!! Pm me for help any other things ;-) There!

Link to comment
Share on other sites

Shelby replace your whole config file with this one (remember to input databse info at bottom) and see if it works.

 

 

It still shows a blank white page. Maybe it's not the admin/configure.php. Is there anything else it could be?

Link to comment
Share on other sites

I got the same problem...

 

The interesting part is that it displays correctly on my computer and on others I've tested, but on my client's computer shows just a blank page! I've asked him to check also on other computers, from cybercaffes, and on one of them got the same problem, and on the other displayed correctly. But of course I have to get it to work on his computer...

 

He called his ISP, they also couldn't see the admin page, but they said it's not their fault either.

 

Any suggestions? Thanks

Link to comment
Share on other sites

Got it!

 

At least in my case this worked. Maybe it can be useful to others.

 

First of all you have to enable error reporting in .htacces .You have to add these two lines at the end of the file:

 

php_flag display_errors on
php_value error_reporting 7

 

After uploading the file to your server, instead of a blank page, you sould see the error code that prevents your page from displaying.

 

In my case the error was:

 

Warning: main(includes/languages/french.php) [function.main]: failed to open stream: No such file or directory in /home/dreams/public_html/admin/includes/application_top.php on line 130

Fatal error: main() [function.require]: Failed opening required 'includes/languages/french.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dreams/public_html/admin/includes/application_top.php on line 130

 

This error being caused by my client's computer trying to load the french version of the admin panel, version that wasn't present. So I've duplicated the english version (admin/includes/languages) and renamed it "french". And now everything works fine!

 

Thanks to HostVision.ro for the help provided!

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

Im having a blank page type of problem as well, but its on the Fourth step of the installation/configuring process. Its able to communicate with the DB fine too in the beginning 1 & 2 step of the installation/configure process. When i try to access the admin directory it gives me a "Unable to connect to database server!".

 

 

 

Hi

I too have a blank page when I try to log in to my admin page.... Have tried all the suggestions on this page, but nothing is working so far. Is anyone able to suggest something else I can try?

 

Thanks

Anthony

Link to comment
Share on other sites

  • 2 weeks later...
May I join the blank admin page club?

 

The french thing did not work for me (verified permissions etc)

 

Just wondering, are you guys being hosted on an HSPHERE system?

I'm having the same issue and now I can't even bring up my clients osCommerce site. I am using BlueGenesis hosting and the phpMyAdmin can't find the database as well.

www.pinelandsspecialtystore.com/osCommerce

Link to comment
Share on other sites

i have a same problem.

 

[Mon Dec 10 23:30:40 2007] [error] [client 86.104.244.196] PHP Warning: require(/var/www/html/osc/catalog/admin/includes/configure.php) [<a href='function.require'>function.require</a>]: failed to open stream: Permission denied in /var/www/html/osc/catalog/admin/includes/application_top.php on line 28

[Mon Dec 10 23:30:40 2007] [error] [client 86.104.244.196] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/html/osc/catalog/admin/includes/configure.php' (include_path='.:/usr/share/pear') in /var/www/html/osc/catalog/admin/includes/application_top.php on line 28

 

Thank you

Link to comment
Share on other sites

i have a same problem.

 

[Mon Dec 10 23:30:40 2007] [error] [client 86.104.244.196] PHP Warning: require(/var/www/html/osc/catalog/admin/includes/configure.php) [<a href='function.require'>function.require</a>]: failed to open stream: Permission denied in /var/www/html/osc/catalog/admin/includes/application_top.php on line 28

[Mon Dec 10 23:30:40 2007] [error] [client 86.104.244.196] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/html/osc/catalog/admin/includes/configure.php' (include_path='.:/usr/share/pear') in /var/www/html/osc/catalog/admin/includes/application_top.php on line 28

 

Thank you

 

I figured this part out by reading line 28 in application_top.php. The line: require('includes/configure.php'); is the wrong path to the file. It's located in catalog/includes/ not admin/includes.

Link to comment
Share on other sites

  • 2 weeks later...

Newest member of the Blank Admin Page Club here. All I've got to show for an attempt to access /admin/index.php on my site is the following entry in my Apache Error logs:

 

PHP Fatal error: Cannot re-assign $this in /admin/includes/classes/upload.php on line 31

Link to comment
Share on other sites

Newest member of the Blank Admin Page Club here. All I've got to show for an attempt to access /admin/index.php on my site is the following entry in my Apache Error logs:

 

PHP Fatal error: Cannot re-assign $this in /admin/includes/classes/upload.php on line 31

 

 

try commenting out that line:

 

// $this = null;

Link to comment
Share on other sites

  • 2 months later...

I have spent my whole day trying to figure out my problem with my Admin folder. My hosting company, Dot 5 hosting, has just switched me to their new platform, but they say my problem is with the OSCommerce files.

 

I can type in the path to my admin and my login box will appear and I can successfully login. HOwever, when I click on Catalog, or any other links, it pulls up Windows cannot display page. I have tried to manipulate my catalog/admin/includes/configure.php but nothing has worked!

 

Does anybody else have this problem or know what file could be causing this. I have read almost every forum about the admin and I'm still not able to figure it out. I'm so frustrated I'm about to delete OsCommerce and reinstall!!!! Please help!!!

Link to comment
Share on other sites

I have spent my whole day trying to figure out my problem with my Admin folder. My hosting company, Dot 5 hosting, has just switched me to their new platform, but they say my problem is with the OSCommerce files.

 

I can type in the path to my admin and my login box will appear and I can successfully login. HOwever, when I click on Catalog, or any other links, it pulls up Windows cannot display page. I have tried to manipulate my catalog/admin/includes/configure.php but nothing has worked!

 

Does anybody else have this problem or know what file could be causing this. I have read almost every forum about the admin and I'm still not able to figure it out. I'm so frustrated I'm about to delete OsCommerce and reinstall!!!! Please help!!!

 

I had the same problem "Blanks Admin pages" and reinstalling all was the solution but taking care about file types...

 

You must upload php files IN ascii mode NOT in binary mode.

 

My FTP software has an automatic mode but in configuration I must set ascii mode to the correct file extensions (.php .txt .htm .html .js .css)

 

That's all ;) !!

 

My thanks to all the osCommerce Comunity, Great Software !!

Link to comment
Share on other sites

  • 11 months later...
I just finished installing 2.2ms1, and I can't seem to gain access to my admin. I have installed this successfully before on the same server, so that makes this hard to understand since I didn't do anything different from my first install. I am able to access my catalog, but I get a blank screen for admin. No errors... just a white screen.

 

Did I do something wrong?

Link to comment
Share on other sites

  • 3 weeks later...

The admin blank page comes from not having your language files in /admin/include/languages/... If you have just set a new default language please make sure that you have the necessary files there. If not change the default language from the database...hope it helps

Link to comment
Share on other sites

  • 7 months later...

For some reason when i try to enter the admin part it redirects me to the hosts control panel?

 

Here is my configure.php info

 

<?php

define('HTTP_SERVER', 'http://www.green-as-grass.co.uk');

define('HTTPS_SERVER', 'http://www.green-as-grass.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.green-as-grass.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'www.green-as-grass.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/var/www/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '*****');

define('DB_SERVER_PASSWORD', '*******');

define('DB_DATABASE', '******************');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

Have no idea what is wrong, any help appreciated

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...