Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello everyone,

 

Since this is my first store and Im a little daunted by php I hired someone to install the Header Controller contribution as well as SID killer, canada post tracking and shipping with dimensions contributions.. As well I installed Ultimate SEO urls myself..

 

What I've run into is now when I visit one product or catagory I dont get a SID but the minute I visit another product or catagory I get a SID in my url.. Is this normal?

 

My next major problem is whenever I edit a products description properties in admin the product name disappears.. The guy I hired to install the contrib's says its a problem with the Ultimate SEO Urls database and told me to use the fill tags function to solve the problem yet when I do that the product name is still missing... *sigh*

 

Then today I discovered whenever I attempt to order a product after the first ordering screen it boots me out to the login screen again.. I am honestly starting to feel like Ive been taken for a ride by the people who I hired to skin the site since Ive had numerous problems.. loads of files unexplicably gone missing that I never touched or even knew existed... mentions of contributions I never installed or ever knew existed either... Please can someone help this project is wayyy over budget and weeks overdue...

 

*Begging*

 

IF you'd like to check out the site the url is www.thedailyspout.com maybe someone will recognise the problem.. Ive tried using the search feature on this forum to find answers but have turned up nothing..

Posted

Just from the looks of it it looks like your SEO url are not turned on to do this go to the admin panel>my store> Use SEO safe urls still in develepment (set this to true) However to get the sid off completely with SEO urls simply force cookies.

 

Hope this helps

Posted

Your best bet is to first remove the SEO urls contrib completely and the SID Killer contrib. I have run into compatability issues with those 2 mods also and removed them.

 

Once you have those removed test all the features of your other mods and make sure everything is working BEFORE you add any more additional mods.

 

This way you will be able to identify if it is the next mod you are installing that is causing problems.

 

Note: Once everything seems ok you might want to try Chemo's Ultimate SEO URLS mod. It is a lot better than SEO URLS.

Posted

Im currently using chemo's ultimate seo urls.. but I will definately remove those just to see if these are in fact causing the problems

 

Thanks for your input guys! Ill post back this evening with the results

Posted

Sorry also misread your post. You do have Ultimate SEO URLS installed.

 

go through the install process step by step and doublecheck everything is installed correctly and remove the SID Killer mod as it has compatability issues with Ultimate SEO URLS.

 

 

the following instructions are a patch. Try the following code if you have not installed it:

 

This is an awesome contribution! But, when it's turned off in the admin console the website stops working. This update fixes the problem. I just wrapped the original code & chemo's code in an 'if' statement. Two files must be updated:

 

includes/application_top.php

includes/functions/html_output.php

 

-Randelia

 

===============================================================

Updated installation instructions:

===============================================================

includes/application_top.php

 

FIND this code:

 

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

 

 

Directly AFTER add this:

 

 

// Ultimate SEO URLs v2.1

if (SEO_ENABLED == 'true') {

include_once(DIR_WS_CLASSES . 'seo.class.php');

if ( !is_object($seo_urls) ){

$seo_urls = new SEO_URL($languages_id);

}

}

 

===============================================================

includes/functions/html_output.php

 

FIND the tep_href_link() function:

 

 

////

// 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('<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('<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>');

}

 

if (tep_not_null($parameters)) {

$link .= $page . '?' . tep_output_string($parameters);

$separator = '&';

} else {

$link .= $page;

$separator = '?';

}

 

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 . $_sid;

}

 

return $link;

}

 

 

And REPLACE with this function:

 

 

////

// Ultimate SEO URLs v2.1

// The HTML href link wrapper function

if (SEO_ENABLED == 'true') { //run chemo's code

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {

global $seo_urls;

if ( !is_object($seo_urls) ){

if ( !class_exists('SEO_URL') ){

include_once(DIR_WS_CLASSES . 'seo.class.php');

}

global $languages_id;

$seo_urls = new SEO_URL($languages_id);

}

return $seo_urls->href_link($page, $parameters, $connection, $add_session_id);

}

} else { //run original code

// 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('<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('<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>');

}

 

if (tep_not_null($parameters)) {

$link .= $page . '?' . tep_output_string($parameters);

$separator = '&';

} else {

$link .= $page;

$separator = '?';

}

 

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 . $_sid;

}

 

return $link;

}

}

 

 

Now Make sure Ultimate SEO is enabled.

 

Hope that helps.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...