Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php not loading


xxbr3ndanxx

Recommended Posts

William,

 

 

Check your catalog>includes>configure.php file to ensure the proper path has been set. It should look similar to this:

 

<?php

/*

$Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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://www.xtremedeals.net');

define('HTTPS_SERVER', 'https://www.xtremedeals.net');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.xtremedeals.net');

define('HTTPS_COOKIE_DOMAIN', 'www.xtremedeals.net');

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','/home/content/a/b/c/xtreme/html/');

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

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

 

// define our database connection

define('DB_SERVER', 'Your Database Server Info');

define('DB_SERVER_USERNAME', 'xtreme');

define('DB_SERVER_PASSWORD', 'NEVER ENTER THIS IN THE FORUM');

define('DB_DATABASE', 'yourservername');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

?>

 

Check to make sure you have it set like above.

 

 

 

Chris

Link to comment
Share on other sites

Mine's like this:

<?php
 define('HTTP_SERVER', 'http://www.xtremedeals.net');
 define('HTTPS_SERVER', 'http://www.xtremedeals.net');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'wwww.xtremedeals.net');
 define('HTTPS_COOKIE_DOMAIN', 'www.xtremedeals.net');
 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', '/home/xtremede/public_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', 'xtremede_****');
 define('DB_SERVER_PASSWORD', '**************');
 define('DB_DATABASE', 'xtremede_****');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

Are there any problems?

Link to comment
Share on other sites

I'm having problems setting up my shop, i've gone through the installation process and it installed with no errors.

I can access Admin CP with no issues, but i can't browse the catalog.

Can someone help me with this problem?

 

Please check it out..

http://xtremedeals.net

 

Thanks

 

You have an error that is not being displayed. Try turning off Gzip compression in admin Configuration that often helps to visualize blank page errors.

Link to comment
Share on other sites

Enable GZip Compression in the admin cp is already on false..

 

Then in application_top.php near the top ,,

 

Find ..

 

  error_reporting(E_ALL & ~E_NOTICE);

 

Change TEMPORARILY to ..

 error_reporting( E_ALL | E_STRICT );

 

See if that outputs anything useful.

Link to comment
Share on other sites

You have an error that is not being displayed.

500 Internal Server Error

curl -vi http://xtremedeals.net
* About to connect() to xtremedeals.net port 80 (#0)
*   Trying 66.7.207.112... connected
* Connected to xtremedeals.net (66.7.207.112) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host: xtremedeals.net
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Date: Sun, 03 Jan 2010 08:45:51 GMT
Date: Sun, 03 Jan 2010 08:45:51 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
< X-Powered-By: PHP/5.2.8
X-Powered-By: PHP/5.2.8
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
Pragma: no-cache
< Set-Cookie: osCsid=83ceb1b3196bdea4c7c8e2fc3cde36d6; path=/; domain=wwww.xtremedeals.net
Set-Cookie: osCsid=83ceb1b3196bdea4c7c8e2fc3cde36d6; path=/; domain=wwww.xtremedeals.net
< Content-Length: 0
Content-Length: 0
< Connection: close
Connection: close
< Content-Type: text/html
Content-Type: text/html

Link to comment
Share on other sites

500 Internal Server Error

curl -vi http://xtremedeals.net
* About to connect() to xtremedeals.net port 80 (#0)
*   Trying 66.7.207.112... connected
* Connected to xtremedeals.net (66.7.207.112) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host: xtremedeals.net
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Date: Sun, 03 Jan 2010 08:45:51 GMT
Date: Sun, 03 Jan 2010 08:45:51 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
< X-Powered-By: PHP/5.2.8
X-Powered-By: PHP/5.2.8
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
Pragma: no-cache
< Set-Cookie: osCsid=83ceb1b3196bdea4c7c8e2fc3cde36d6; path=/; domain=wwww.xtremedeals.net
Set-Cookie: osCsid=83ceb1b3196bdea4c7c8e2fc3cde36d6; path=/; domain=wwww.xtremedeals.net
< Content-Length: 0
Content-Length: 0
< Connection: close
Connection: close
< Content-Type: text/html
Content-Type: text/html

 

You ought to do another funny link for people like me Jan :) Live HTTP headers is your friend :lol:

Link to comment
Share on other sites

Sorry but i don't really get how to fix this ><

Can you guide me?

 

Could be .htaccess what happens when you rename .htaccess to .htaccess_OFF or something?

Link to comment
Share on other sites

I renamed the one in the root folder to .htaccess_OFF, still a blank page when trying to access.

 

And you say that the admin end is working fine?

Link to comment
Share on other sites

Yeah, admin page works fine

 

What are the access rights of the root files?

Link to comment
Share on other sites

Their all 644

 

Well I am a bit stumped . . what does the server error log say?

Link to comment
Share on other sites

You mean the one in cpanel? Here:

[sun Jan 03 05:06:18 2010] [error] [client ***********] File does not exist: /home/xtremede/public_html/404.shtml
[sun Jan 03 05:06:18 2010] [error] [client **********] File does not exist: /home/xtremede/public_html/favicon.ico

Link to comment
Share on other sites

Look at the posts by steve_s in this thread about how to get the site to make an error log for you.

 

That thread is about admin problems but you can do the same thing on the catalog side to help find errors.

 

Although if the problem is not in a PHP file and .htaccess problem instead this won't help.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

You mean the one in cpanel? Here:

[sun Jan 03 05:06:18 2010] [error] [client ***********] File does not exist: /home/xtremede/public_html/404.shtml
[sun Jan 03 05:06:18 2010] [error] [client **********] File does not exist: /home/xtremede/public_html/favicon.ico

Those errors are probably right after the one you are looking for...include about the last 50 lines taken from the error log immediately after you try to access the page. Maybe we can see something in there.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

You mean the one in cpanel? Here:

[sun Jan 03 05:06:18 2010] [error] [client ***********] File does not exist: /home/xtremede/public_html/404.shtml
[sun Jan 03 05:06:18 2010] [error] [client **********] File does not exist: /home/xtremede/public_html/favicon.ico

 

-- 500 error causes: http://www.oscommerce.com/forums/topic/345637-internal-server-error/page__view__findpost__p__1442374

-- missing 404, favicon: You don't have your own "error handler"/"error document"/"error page" files defined, and the system is using the default handlers when you get, say, a 404 error (/catalog/ not found). Then it throws a 404 that it couldn't find the 404 handler! Not critical, but if you'd like to get rid of these extra 404 messages, define your own error handlers. To minimize the number of unnecessary error messages cluttering up your account log, you should supply a set of Error Pages for your account: /400.shtml, /401.shtml, /403.shtml, /404.shtml, and /500.shtml at a minimum, along with a /robots.txt (requested by every search bot) and a /favicon.ico (requested by every browser). If you have cPanel, it has a button to produce the *.shtml Error Pages ("Error pages") -- you can customize them all you want with additional HTML code. /robots.txt can be empty until you figure out what you want to put in it. Any "paint" program can produce a favicon for you (16x16 ICON format). Having these seven files will greatly reduce the clutter in your system error log, enabling you to see real errors that you need to address.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...