Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seach Engine Friendly URL Support


BlueYon

Recommended Posts

  • Replies 968
  • Created
  • Last Reply

Top Posters In This Topic

I found a solution that fixed the errors for my current SEO installation.

 

In /catalog/includes/application_top.php, find:

// set php_self in the local scope
 if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 

and insert the following code just after it

if ($PHP_SELF != $SCRIPT_NAME) {
 $PHP_SELF = $SCRIPT_NAME.$PHP_SELF;
}

 

Then save file and turn SEF on from the Administration screen. Now everything should work normally and no more "Unable to determine the page link!" errors.

 

Hope this works for anyone else that was experiencing this issue.

 

 

PERFECT!!!!!!!!!!! I HAD THE SAME PROBLEM!!! :thumbsup: :thumbsup:

 

Thank you very much!!!

adsoma

Edited by adsoma
Link to comment
Share on other sites

Hi friends

 

Any mate tell me why url showing me "/index.php/cPath/47" file name and product id i want to change the category id or product id to its name and dont wantt o show any index.php page . Its ok if its show only index in url any one plzzz suggest me what i do

 

Thanks in Advance

Link to comment
Share on other sites

Hi guys, I installed this contrib and it looked to be working great, then I edited some products and it stopped working for those products yet others still worked great, any ideas why?

 

I have tried the Ultimate SEO URLs but this gives me a critical error.

 

Any and all info/help greatly appreciated.

Link to comment
Share on other sites

Hi,

First I have to say that this is a great contrib :thumbsup: .

 

I am using shared ssl and when I enable admin -> configuration -> cache -> use cache = true, I am getting an error in my online shop it is showing only T-Shirts in category list. If I disable cache the SEF url is not working. Please anybody help me to overcome this problem. Thankyou.

Link to comment
Share on other sites

Hi,

First I have to say that this is a great contrib :thumbsup: .

 

I am using shared ssl and when I enable admin -> configuration -> cache -> use cache = true, I am getting an error in my online shop it is showing only T-Shirts in category list. If I disable cache the SEF url is not working. Please anybody help me to overcome this problem. Thankyou.

Link to comment
Share on other sites

  • 2 weeks later...

hi guys...

 

i have problem with accentuated category and product names...all the characters with accent changes to 'A', but it works..i found out a solution, i use this row before the character changing row...:

 

$url = iconv("UTF-8", "ISO-8859-2", $url);

 

its good in my case, and works fine in the url bar, BUT BUT BUT when i want to open a category by clicking, it does nothing.:((

how can i solve this? where i need repair the code?

 

thx, Laszlo Dobos

Edited by lacy
Link to comment
Share on other sites

Hi. If someone could help me it would be so appreciated. After installing this contribution, my popup images don't work correctly. It's not the same problem other people in this thread have been having, where you need to copy the javascript function to index.php, it's different. When "click to enlarge" is clicked, a popup window does open, but it doesn't contain the image and uses a different template than its supposed to (I'm using the Simple Template System contribution). I discovered that if I type in the address the way it would be if SEF was not installed, that it still works properly. To see this in action:

 

Doesn't Work:

http://www.peachlotus.com/catalog/popup_image.php/pID/248

 

Works Correctly:

http://www.peachlotus.com/catalog/popup_image.php?pID=248

 

So does anyone know either:

1.) How to get this to work properly with the SEF style URL? or

2.) How to prevent only the popup_image.php URLs from being converted to SEF style?

 

Thanks so much for taking the time to read this, and if you respond, thanks in advance!

Link to comment
Share on other sites

I had it almost working. My problem was regardless what link I clicked while browsing the product list on the index page, it would not take me to the product_info page. Nothing happens. So if by chance you do reply to this post, let me know first. Because I backed up the files and put the other files back on server.

 

Thanks.

 

Bennett

Link to comment
Share on other sites

  • 3 weeks later...

Just checking in on this - as it was referred to me as "A must have" contrib. Just wondering if there are a lot of problems or...?

See a few recent questions unanswered... Afraid to install if there are problems or ?

 

Thanks!

 

--Jeff

Link to comment
Share on other sites

I tried to install this but I am getting the following error:

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/radiorev/public_html/buydigital/includes/header.php:214) in /home/radiorev/public_html/buydigital/includes/boxes/categories.php on line 13
Link to comment
Share on other sites

can anyone think of a reason why the SEO URL titles work correctly in all facets but with product_info? I updated to the newer SEO contrib. but would love to roll back the installation, as all the search engines have the old links.

 

Back Door Guitars

Back Door Guitars Site Map

ok so i deleted the index.php that came with the contribution and replaced it with mine. The site sorta works now... but i products cant be purchased or viewed.

 

wtf.

Link to comment
Share on other sites

  • 2 weeks later...

I installed Search Friendly URL version 1.10 and I am having trouble with it. My admin board comes up but when I get to the catalog side I get this error:

 

Fatal error: Call to undefined function: tep_setcookie() in /home/winregs/public_html/includes/application_top.php on line 173

 

I am a little new at this and don't know what is causing this. Could someone help?

Link to comment
Share on other sites

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/fhlinux163/c/comptechnology.co.uk/user/htdocs/includes/header.php:175) in /home/fhlinux163/c/comptechnology.co.uk/user/htdocs/includes/boxes/categories.php on line 59

 

any idea what can be a problem ?? You solution works but when im trying to see whats in categories im getting this error.

Link to comment
Share on other sites

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/fhlinux163/c/comptechnology.co.uk/user/htdocs/includes/header.php:175) in /home/fhlinux163/c/comptechnology.co.uk/user/htdocs/includes/boxes/categories.php on line 59

 

any idea what can be a problem ?? You solution works but when im trying to see whats in categories im getting this error.

 

 

This is my header.php where the error starts

 

<? // ---- CATEGORIES

 

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

if(!$tree[$counter]['level']){

 

 

$categories_string .= $categories_string ? '<tr><td><img src=images/m26.gif width=167 height=1><br><br class=px2></td></tr>' : '';

 

$categories_string .= '<tr><td><img src=images/m25.gif width=5 height=5 align=absmiddle>   <a class=ml1 href=';

 

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

$categories_string .= tep_href_link('index.php', $cPath_new) . '>';

// display category name

$categories_string .= $tree[$counter]['name'];

$categories_string .= '</a><br><br class=px4></td></tr>';

}else{

$categories_string .= '<tr><td>';

 

for($i=0;$i<$tree[$counter]['level'];$i++)

$categories_string .= '   ';

 

$categories_string .= ' - <a class=ml1 href=';

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

$categories_string .= tep_href_link('index.php', $cPath_new) . '>';

// display category name

$categories_string .= $tree[$counter]['name'];

$categories_string .= '</a><br><br class=px4></td></tr>';

}

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

 

 

 

define(TABLE_CATEGORIES, "categories");

define(TABLE_CATEGORIES_DESCRIPTION, "categories_description");

$categories_string = '';

$tree = array();

 

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

while ($categories = tep_db_fetch_array($categories_query)) {

$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],

'parent' => $categories['parent_id'],

'level' => 0,

'path' => $categories['categories_id'],

'next_id' => false);

 

if (isset($parent_id)) {

$tree[$parent_id]['next_id'] = $categories['categories_id'];

}

 

$parent_id = $categories['categories_id'];

 

if (!isset($first_element)) {

$first_element = $categories['categories_id'];

}

}

 

//------------------------

if ($cPath) {

$new_path = '';

reset($cPath_array);

while (list($key, $value) = each($cPath_array)) {

unset($parent_id);

unset($first_id);

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

if (tep_db_num_rows($categories_query)) {

$new_path .= $value;

while ($row = tep_db_fetch_array($categories_query)) {

$tree[$row['categories_id']] = array('name' => $row['categories_name'],

'parent' => $row['parent_id'],

'level' => $key+1,

'path' => $new_path . '_' . $row['categories_id'],

'next_id' => false);

 

if (isset($parent_id)) {

$tree[$parent_id]['next_id'] = $row['categories_id'];

}

 

$parent_id = $row['categories_id'];

 

if (!isset($first_id)) {

$first_id = $row['categories_id'];

}

 

$last_id = $row['categories_id'];

}

$tree[$last_id]['next_id'] = $tree[$value]['next_id'];

$tree[$value]['next_id'] = $first_id;

$new_path .= '_';

} else {

break;

}

}

}

$categories_string .= '';

tep_show_category($first_element);

$categories_string .= '';

 

echo $categories_string;

?>

 

This is categories.php from line 59

 

// display category name

$categories_string .= $tree[$counter]['name'];

 

if (isset($cPath_array) && in_array($counter, $cPath_array)) {

$categories_string .= '</b>';

}

 

if (tep_has_category_subcategories($counter)) {

$categories_string .= '->';

}

 

$categories_string .= '</a>';

 

if (SHOW_COUNTS == 'true') {

$products_in_category = tep_count_products_in_category($counter);

if ($products_in_category > 0) {

$categories_string .= ' (' . $products_in_category . ')';

}

}

 

$categories_string .= '<br>';

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

?>

Edited by viperek
Link to comment
Share on other sites

I have installed this contrib and it seems to work fine, Only thing is that now my discount plus price breaks doesnt seem to appear on the products.

Is anyone else had a similar problem?

 

Where and how should this contribution be installed ? In catalog/index.php ? or under catalogue or in root ?

 

At present oscommerce isn't working off root, its coming off catalog and thats a real mess too.

 

Thanks

 

Nina

Nina

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...