Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Path issue


yugolancer

Recommended Posts

Posted

If your /includes/configure.php has this:

 

  define('DIR_WS_HTTP_CATALOG', '');

Make it this instead:

 

  define('DIR_WS_HTTP_CATALOG', '/');

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 >

Posted

////
// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
   global $request_type, $session_started, $SID;

   if (!tep_not_null($page)) {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
   }

   if ($connection == 'NONSSL') {
     $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
   } elseif ($connection == 'SSL') {
     if (ENABLE_SSL == true) {
       $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
     } else {
       $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
     }
   } else {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');
   }

[color="#FF0000"]    if (tep_not_null($parameters)) {
     $link .= $page . '?' . tep_output_string($parameters);
     $separator = '&';
   } else {
     $link .= $page;
     $separator = '?';
   }[/color]

   while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
   if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
     if (tep_not_null($SID)) {
       $_sid = $SID;
     } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
       if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {
         $_sid = tep_session_name() . '=' . tep_session_id();
       }
     }
   }

   if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
     while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

     $link = str_replace('?', '/', $link);
     $link = str_replace('&', '/', $link);
     $link = str_replace('=', '/', $link);

     $separator = '?';
   }

   if (isset($_sid)) {
     $link .= $separator . tep_output_string($_sid);
   }

   return $link;
 }

Unless you have a template thats FUBAR, I'd check function tep_href_link in /includes/functions/html_output.php

 

Specifically the code I have in red

 

If that's not it, I really don't know...

:huh:

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 >

  • 4 weeks later...
Posted

I get the same path problem, immediately after completing the installation 'wizard'; I click on "administration tool" and it goes from https://shop.whatever.com/install/install.php?step=4 to https://shop.whatever.comadmin/index.php, when this should be https://shop.whatever.com/admin/index.php

 

I checked /admin/includes/configure.php and includes/configure.php and the paths are correct (I copied the contents of Catalog to www-root to see if i would have the problem then as well). I also checked includes/functions/html_output.php and is also fine - I just can't get to the point where I can configure the shop. The whole site is SSL, not just a checkout section for example..

 

I am running PHP 5.2.4-2ubuntu5.6 and oscommerce-2.2rc2a on a Ubuntu server..

 

Have been looking for hours now, and have another problem which is that i don't see pics when I hit the https://shop.whatever.com page, just text, should I do something with permissions there?

 

thanks for help, could use some by now..

Posted
I'll install V3 since i am running php5+, I'll post later if that does work..

Well that didn't work either, I'm stuck now :(

Posted

I find no indications in any logfiles, other sites work fine - If so many ppl use it, there must be more info on this problem right? Anyway, need to configure a different package now since i don't have time to lose..

Archived

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

×
×
  • Create New...