Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Page is blank


dan325

Recommended Posts

Hey again,

I have posted this before in another topic, but it was a little off topic and I got no replies

 

 

I have been making a website for my parents for christmas, but when i go to somrack.com/store/admin, it displays a blank page and says done, I am using firefox, but the same happens for IE.

 

Also, I am hosting it off of my own computer with apache 2, mysql 4.1 and php5.

 

 

my store- http://somrack.com/store

 

the admin page for it - http://somrack.com/store/admin

 

 

 

I did not password protect it yet

 

 

here is my config file in admin/include

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://somrack.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://somrack.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/Apache Group/Apache2/htdocs/store/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', 'http://somrack.com/store/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'C:/Program Files/Apache Group/Apache2/htdocs/store/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', 'http://somrack.com/store/'); // absolute path required
 define('DIR_FS_CATALOG', 'C:/Program Files/Apache Group/Apache2/htdocs/store/'); // 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/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', 'col114');
 define('DB_DATABASE', 'oscommerce');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

 

and here is the source of the opened file, just to make sure that it did interpret the php wrong

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Link to comment
Share on other sites

1) now that you've told us all your database login info, please go change it

2) what file(s) have you changed recently? Can you restore them from backup?

 

If you misplace brackets or parentheses in just the right place, you can do things like cause infinite loops, etc.

 

Back off the most recent changes you've done to the admin area, including admin functions. If that takes care of the problem, then slowly, carefully go over the changes you've made, looking for errors.

 

-jared

Link to comment
Share on other sites

hmmm, i just reinstalled oscommerce and i am having the same problem

 

I can tell you this much as I and many have had the same problem, I suspect you didn't configure a file that needs to be edited to say PHP5. I forget the actual file, but it's a minor edit, very simple. Because you're using PHP5, you must specify it as far as I know when setting up the store,, but I know for sure if you're having that kind of problem, you should make sure the file I'm talking about recognizes PHP5.

 

Kevin

"What I didn't know yesterday, I know today & will remember tomorrow"

(By Kwalker)

 

What do you see when you open up the tep_database-pr2.2-CVS.pdf file that came with your osCommerce download?

Link to comment
Share on other sites

You are a lifesaver!

 

If any one has this problem, go here

http://www.oscommerce.com/community/bugs,2405/category,Other

 

Thanks!!!!

 

 

You're welcome.

 

Just changing

 

$this = null;

 

to:

 

unset ( $this );

 

fixed my problem in the file adminincludesclassesupload.php.

 

 

Kevin

"What I didn't know yesterday, I know today & will remember tomorrow"

(By Kwalker)

 

What do you see when you open up the tep_database-pr2.2-CVS.pdf file that came with your osCommerce download?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...