Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install woes


trollboy

Recommended Posts

Hi I recently installed OS Commerce, and THOUGHT I had all the var's set properly. However, I'm getting:

Error!

Unable to determine the page link!

On every page. Is there a full featured documentation somewhere I can peruse? I'd really like to get this going soon if at all possible.

Link to comment
Share on other sites

  • 1 month later...

trollboy (or anyone),

Did you find a fix. I'm having this problem on 2.2MS1 and can't seem to find a fix for it. I've searched both the forums and the Wiki site but haven't found a fix.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

You haven't given much info to go on, but this might be worth a try.

Check your configure.php files and if using $DOCUMENT_ROOT rather than the actual path in your definition statements you will want to edit this.

 

If you have Admin access, go to Tools ... Server Info ... Search for DOCUMENT_ROOT without the $ and that is your actual path that you should use in the definitions.

Link to comment
Share on other sites

>> Not much to go on

Twasn't sure how much to post. I'm pretty sure that's not the issue but just in case... the document root is /www/champion-battery-sales

 

And here's the configure.php info

    define('ENABLE_SSL', true); // secure webserver for checkout procedure?

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

 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', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/www/champion-battery-sales');

 define('DIR_FS_CATALOG', '/www/champion-battery-sales/catalog/');

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

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

 

The top page no longer displays the error. I see it on the public side when I try to visit the categories.

 

Admin side is fine - no errors anywhere.

 

Love the sig BTW.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

And I forgot to mention register_globals is ON (since it was mentioned in one of the threads on this subject). The server is running PHP 4.3.1.

 

I'm using 2.2MS1 with no additional installations - yet.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

Ah - you're thinking the WS path might be the culprit. I tried using the full URL and it just broke the cart - and wouldn't it cause problems when the cart called for HTTPS?

 

I noted that the error doesn't appear on any of the product pages - only the categories.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

The top page no longer displays the error. I see it on the public side when I try to visit the categories.

 

sorry, i missed this bit the first time I read it. (I have help right now from a toddler on my knee - not giving you my full attention! :roll: )Could you post a link? Maybe something will leap out at me? Can you tell I have jobs to do & dont want to start? lol

Link to comment
Share on other sites

This is becoming very maddening!

 

Reading through the posts again I noted the same problem occurred for someone else when they enabled Safe URLs. Mine are disabled but on a whim I turned them on, went back to the problem page and refreshed the page. Low and behold the listing of products showed up!

 

But then I clicked on one of the category titles to be sure and I was sent to the top of the shop. I'm a tad bit lost here - help please.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

Aha! I found the problem child.

 

I went back to the application_top.php file and located the section which starts with:

 

 if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')

 

I dropped down to the "ELSE" statement which reads:

 

$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 

I converted this to now read:

 

$PHP_SELF = $_SERVER['PHP_SELF'];

 

And is working fine (at least as near as I can tell.

 

On to the next mod/problem.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

Aha! I found the problem child.
What's my dd doing over there?Please send her back - she should be in bed!

 

sorry. :crazy:

 

And is working fine (at least as near as I can tell.

 

On to the next mod/problem.

8)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...