Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ULTIMATE Seo Urls 5 - by FWR Media


Recommended Posts

You can try using the xml sitemap add-on included in the SEO Url download instead, its located inside the "extras" folder

 

Hi,

 

Just after I made my post I thought I would had another look at the documentation and found what you are referring too. Tried it but exactley the same error. When I run the command from a browser the sitemap gets created fine. But from a CRON job is when I get the error. Worked fine before and works when disabling the mod.

 

Tried different methods to setup the CRON but same result.

 

Seem no near yet so far :-(

Link to comment
Share on other sites

OK. Just discovered my Google Base Feed produces the same error also but works when run manually.

 

Again this is the error I get:

 

<br />

< b>Fatal error</b>: Call to a member function retrieveDependencies() on a non-object in <b>/home/******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/standard.php</b> on line <b>84</b><br />

Help. Pretty please.

Link to comment
Share on other sites

I have it installed and I'm not sure if it's actually working. I am able to use the site and admin panel properly, but I don't have any options in the admin panel. Could this be due to the fact that I have renamed my admin directory? If not what could it be?

 

Thanks, Brandon

 

^bump?

 

Heres what I'm seeing.

 

seo-urls.gif

Link to comment
Share on other sites

 

^bump?

 

Heres what I'm seeing.

 

seo-urls.gif

 

I did a database restore recently and noticed that there were no options available in the admin panel. I have gone through all the installation instructions and I did have to re-upload some of the files in the upload directory. However, I'm 100% sure that all pages are modified correctly, and all proper files are uploaded. Maybe it's not adding the proper SQL into my database, since it was already implemented and then restored to an earlier version?

Edited by dbznss
Link to comment
Share on other sites

I found out that this is the function that translate url

 

setVar( 'request_querystring', http_build_query( $_GET ) )

 

(search for all apperences in ultimate_seo_urls5 folder )

 

other alternative to keep []

Edited by zipicip
Link to comment
Share on other sites

I did a hack

 

$custom_url_allow_array = http_build_query( $_GET );
$custom_url_allow_array = preg_replace('/%5B([0-9]+)%5D/', '[]',  $custom_url_allow_array );

 

ultimate_seo_urls5/uri_modules search for http_build_query( $_GET )

 

Usu_Main::i()->setVar( 'request_querystring', $custom_url_allow_array );

Link to comment
Share on other sites

and ultimate_seo_urls5/includes/usu_general_functions

 

change

 

  function usu_cleanse( $value ) {
return preg_replace( '@[^a-z0-9_]@i', '', $value );
 }

 

into

 

function usu_cleanse( $value ) {
return preg_replace( '@[^a-z0-9_\[\]]@i', '', $value );
 }

Edited by zipicip
Link to comment
Share on other sites

Hello,

I have installed Ultimate SEO URL in the oscommerce templete. Everything seems to be working fine except the products have incorrect link under the heading of "NEW PRODUCTS FOR OCTOBER". This is oscommerce V2.3 and template is from templatemonster.com. I guess there is a change required in catalog>includes>modules>new_products.php but I am not that much technical. Click this link to view the problem http://tiny.cc/1vxhg

 

An urgent help is requested.

Link to comment
Share on other sites

Hello,

I have installed Ultimate SEO URL in the oscommerce templete. Everything seems to be working fine except the products have incorrect link under the heading of "NEW PRODUCTS FOR OCTOBER". This is oscommerce V2.3 and template is from templatemonster.com. I guess there is a change required in catalog>includes>modules>new_products.php but I am not that much technical. Click this link to view the problem http://tiny.cc/1vxhg

 

An urgent help is requested.

 

Here is the code of new_products.php:

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2010 osCommerce

 

Released under the GNU General Public License

*/

?>

<?php

if ($first_page === true){

if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_PRODUCTS_FIRST_PAGE);

} else {

$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_PRODUCTS_FIRST_PAGE);

}

}else{

if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

} else {

$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

}

}

$col = 0;

$row = 0;

 

if ($first_page == 0){

$col_items = (MAX_DISPLAY_NEW_PRODUCTS_PER_ROW - 1);

$colspan = ((MAX_DISPLAY_NEW_PRODUCTS_PER_ROW * 2) - 1);

}else{

$col_items = (MAX_DISPLAY_NEW_PRODUCTS_PER_ROW_FIRST_PAGE - 1);

$colspan = ((MAX_DISPLAY_NEW_PRODUCTS_PER_ROW_FIRST_PAGE * 2) - 1);

}

$col_width = (int)(100 / ($col_items + 1)).'%';

 

$new_prods_content .= '<div class="prods_content prods_table">';

while ($new_products = tep_db_fetch_array($new_products_query)) {

 

if (($col === 0) && ($row != 0)) {

$new_prods_content .= '<ul><li class="prods_hseparator">'.tep_draw_separator('spacer.gif', '1', '1').'</li></ul>';

}

if ($col === 0) {

$new_prods_content .= '<ul class="row" id="row-'.$row.'">';

}else {

$new_prods_content .= '<li class="prods_vseparator">'.tep_draw_separator('spacer.gif', '1', '1').'';

}

// *************************************

// *************************************

$product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$new_products['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

$product = tep_db_fetch_array($product_query);

$p_id = $new_products['products_id'];

 

$p_pic = '<a class="prods_pic_bg" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '" style="width:'.(SMALL_IMAGE_WIDTH + 2).'px;height:'.(SMALL_IMAGE_HEIGHT + 2).'px;">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], (SMALL_IMAGE_WIDTH + 2), (SMALL_IMAGE_HEIGHT + 2), ' style="width:'.(SMALL_IMAGE_WIDTH +2).'px;height:'.(SMALL_IMAGE_HEIGHT + 2).'px;"') . '';

 

$p_name = '<span><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a></span>';

 

// $p_desc = ''.substr(strip_tags($product['products_description']), 0, MAX_DESCR_1).' ...';

 

$p_desc = mb_substr(strip_tags($product['products_description']), 0, MAX_DESCR_MODUL_NEW_PRODS, 'UTF-8').'...';

 

$p_price = '<span class="productSpecialPrice">' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</span>';

// *************************************

$p_details_text = '<div class="bg_button22" onMouseOut="this.className=\'bg_button22\';" onMouseOver="this.className=\'bg_button22-act\';">' .tep_draw_button_top() . '<a href="' . tep_href_link('product_info.php?products_id='.$p_id) . '" id="tdb1" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e"></span><span class="ui-button-text">'. IMAGE_BUTTON_DETAILS .'</span></a>' . tep_draw_button_bottom().'</div>';

$p_buy_now_text = '<div class="bg_button2" onMouseOut="this.className=\'bg_button2\';" onMouseOver="this.className=\'bg_button2-act\';">' .tep_draw_button_top() . '<a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'" id="tdb1" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-cart"></span><span class="ui-button-text">'. IMAGE_BUTTON_IN_CART .'</span></a>' . tep_draw_button_bottom().'</div>';

// *************************************

// *************************************

 

$new_prods_content .= '<li style="width:' . PRODS_BLOCK_WIDTH . 'px;" class="wrapper_prods">'.

 

 

' <div class="pic_padd wrapper_pic_div" style="width:'.(SMALL_IMAGE_WIDTH + 2).'px;height:'.(SMALL_IMAGE_HEIGHT + 2).'px;">'.$p_pic.''.tep_draw_prod_pic_top().''.tep_draw_prod_pic_bottom().'</a></div>'. "\n".

' <div class="box-padd first">'. "\n".

' <div class="name name_padd equal-height">'.$p_name.'</div>'. "\n".

' <div class="desc desc_padd">'.$p_desc.'</div>'. "\n".

' <h2 class="price price_padd un"><b>'.PRICE. '</b>'.$p_price.'</h2>'. "\n".

' <div class="button__padd">'.$p_details_text.'</div>'. "\n".

' </div>'. "\n";

 

$col ++;

if ($col > $col_items) {

$new_prods_content .= '</ul>';

$row ++;

$col = 0;

}else{

$new_prods_content .= '</li>';

}

}

 

$new_prods_content .= '</div>';

?>

<?php echo tep_draw_title_top();?>

<h1 class="cl_both "><?php echo sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')); ?></h1>

<?php echo tep_draw_title_bottom();?>

<div class="contentPadd">

<?php echo $new_prods_content; ?>

</div>

 

<script type="text/javascript">

$(document).ready(function(){

var row_list = $('.row');

row_list.each(function(){

new equalHeights($('#' + $(this).attr("id")));

});

})

</script>

Link to comment
Share on other sites

Love the contribution but 1 problem;

 

I have a product name TAG Heuer; but the SEO url only states Heuer; for example;

 

URL : http://www.savingshub.com/heuer-watches-heuer-alter-wp1319ba0751-p-65.html

Title = TAG Heuer Alter Ego WP1319.BA0751

 

How can I edit it so that TAG shows up also, I do not want to put underscores or dashes.

 

Anyone have a clue? Thank you!

Link to comment
Share on other sites

There is a configuration setting for min word length in the url , change that to a value lower than 3

Link to comment
Share on other sites

I'm having problems with a new implementation of USU 5, I have installed it on a couple of sites before, but this one is giving me problems? I am getting an error "no input file specified" when I turn USU 5 on!

 

There are some unusual changes to the image sizes, but not substantial. I created a new category and product in that category and received the same error message. This only happens in the Category navigation. Any ideas?

 

-Bill

Link to comment
Share on other sites

Hello All,

I'm migrating our website to a new server and not sure if I have problem or not so any insight would be much appreciated.

 

The site has been copied to the new server and we're in testing right now before the final DB move and DNS updating. The problem is the search engine friendly links are not working when the website's HTTP_SERVER is set to the IP address. If I turn off the Ultimate SEO and use the standard osC links the site works fine. My assumption is the SEO links will not work until DNS propagation has occured and the website is accessible by it's domain name. But, I don't want to be changing the DNS if there could be a potential problem, especially if all our search results suddenly become unreachable.

 

Just want to know if my assumption is correct or do I need to do some more digging before finalizing the move.

Thanks for any info,

Frank

Link to comment
Share on other sites

It should work with an ip address to as-long as the configuration and htaccess files are correctly set-up.

Link to comment
Share on other sites

Thanks a ton for this contribution. I just upgraded from an earlier version of SEO URLS.

 

My question is, I have, in application_top, my main root url link like this

<a href="<?=tep_href_link('index.php')?>">

however, so everything points to www.mydomain.com/ instead of www.mydomain.com/index.php, I had changed the above code to

<a href="<?=tep_href_link('/')?>">

Under the old SEO URLS that took me to www.mydoamin.com/. However now it wants to take me to www.mydomain.com// (double slashes). I've temporarily changed it back to 'index.php'... It gives an error when I define nothing. and I do have a rewrite in my .htaccess that sends all index.php to '/'. I'd just rather all my links point to www.mydomain.com/ any ideas? Am I overlooking something very simple?

 

Also, I have a custom 404 page that works for an incorrect URL, but the FWR 404 shows up when a bad SEO url comes up. I'd like all my 404's to be my custom one, but because the SEO Urls 5 404 is in a different folder, it messes up my code.... can I just point it to my 404 or disable it all together so mine is the only one that shows?

Link to comment
Share on other sites

I just upgraded from chemo;s ultimate seo 2.2d. When submitting my sitemaps in xml form to google I am getting the following error

Invalid URL

This is not a valid URL. Please correct it and resubmit.

URL:

url_icon.gifhttp://

 

Parent tag: url

Tag: loc

Problem detected on: Oct 28, 2011

 

I also installed the xml sitemaps mod in the extras folder.

Any ideas? none of my links are being listed.

Link to comment
Share on other sites

Hi Folks

 

I hope I'm not posting an already reported issue.

Upgraded from Chemo's 2.1 on a 2.2 shop

Everything is working fine except that every day at midnight, my settings are set back to default (the rewrite goes back to standard, the short words back to 2, etc...)

Please let me know if you experienced similar issue and how you fixed it.

 

Thanks!

Link to comment
Share on other sites

osCommerce apparently allows categories id's to be added to no end in the url. I have around 1,000 categories 3 levels deep and around 20,000 products. I've had page load times in excess of 5 minutes, which seem to be caused by the caching system (speeds increased after cache has been deleted). After more insight from problems every 3 months at the start, and more frequent as time went on I've came to notice an interesting trend. For some reason the web crawlers just start adding categories such as: 22_34_78_79_99 and so on! I now have around 90k pages indexed at Google, LOL. I'm going to have a lot of pages not found for quite awhile to come. As long as the last two are valid osCommerce category id's the site accepts the entry and displays the last category id.

 

Many of the cached entries had category depths as high as 5 levels deep or more?

 

This becomes a serious issue in USU5 because of the size of the cache (seek times in sqlite are enormous, file seek times are impossible, I never tried mysql caching), with google indexing around 90k pages and crawling an amazing amount of pages and continually adding random add-on categories. I was desperate and made a change to the tep_parse_category_path function in general.php, this fixed the caching problem from osCommerce's cache, but did nothing for the problem with caching in USU5. In order to stop USU5 from caching these invalid url's, I tried to modify the index.php in the page modules directory and couldn't figure out how. So instead I was able to modify the hrefLink function in usu5.php file in the main directory like this:

   public function hrefLink( $page, $parameters, $connection, $add_session_id, $search_engine_safe ) {
 // Badly coded shops often pass in odd characters

 if (sizeof($parameters)>2){
  $parameters = array_slice ($parameters, -3);	
  return osc_href_link( $page, $parameters, $connection, $add_session_id, $search_engine_safe );
 }

 

I'm not sure if this is the most elegant way to fix this problem or if there is a better way!

 

-Bill

Link to comment
Share on other sites

osCommerce apparently allows categories id's to be added to no end in the url. I have around 1,000 categories 3 levels deep and around 20,000 products. I've had page load times in excess of 5 minutes, which seem to be caused by the caching system (speeds increased after cache has been deleted). After more insight from problems every 3 months at the start, and more frequent as time went on I've came to notice an interesting trend. For some reason the web crawlers just start adding categories such as: 22_34_78_79_99 and so on! I now have around 90k pages indexed at Google, LOL. I'm going to have a lot of pages not found for quite awhile to come. As long as the last two are valid osCommerce category id's the site accepts the entry and displays the last category id.

 

Many of the cached entries had category depths as high as 5 levels deep or more?

 

This becomes a serious issue in USU5 because of the size of the cache (seek times in sqlite are enormous, file seek times are impossible, I never tried mysql caching), with google indexing around 90k pages and crawling an amazing amount of pages and continually adding random add-on categories. I was desperate and made a change to the tep_parse_category_path function in general.php, this fixed the caching problem from osCommerce's cache, but did nothing for the problem with caching in USU5. In order to stop USU5 from caching these invalid url's, I tried to modify the index.php in the page modules directory and couldn't figure out how. So instead I was able to modify the hrefLink function in usu5.php file in the main directory like this:

public function hrefLink( $page, $parameters, $connection, $add_session_id, $search_engine_safe ) {
 // Badly coded shops often pass in odd characters

 if (sizeof($parameters)>2){
  $parameters = array_slice ($parameters, -3);	
  return osc_href_link( $page, $parameters, $connection, $add_session_id, $search_engine_safe );
 }

 

I'm not sure if this is the most elegant way to fix this problem or if there is a better way!

 

-Bill

 

I have the same issue, google apparently adds or also remove the category number. For example category with 28_378_451 becomes 378_451 in my case generating a lot of duplicate content (server header returns 200 status).

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