Jump to content
Latest News: (loading..)
FWR Media

ULTIMATE Seo Urls 5 - by FWR Media

Recommended Posts

I have an issue with the 404 redirects for products / categories that have been discontinued. Google is reporting issues with pages where the products have been removed, however the URL still redirects to the original page and in the case of the categories, the page states there are no products listed in the category and still displays the original text information associated with it. Below are two examples:

 

http://instrotech.com/fluke-718ex-300g-p-1804.html - this product has been deleted from the database

http://instrotech.com/multicore-clamp-meters-c-39_43.html - this category status has been turned off

http://instrotech.com/flir-reporter-pro-software-p-1602.html - this product status has been turned off

 

Having searched the forum and gone over the installation instructions several times, I'm at a loss to work out what is going wrong. The contents of the .htaccess are as follows:

 

# Ultimate SEO URLs BEGIN

# If you are getting errors you may need to comment this out like ..

# Options +FollowSymLinks

Options +SymLinksIfOwnerMatch

<IfModule mod_rewrite.c>

RewriteEngine On

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

# Change RewriteBase using the instructions above

RewriteBase /

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]

# Articles contribution

RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]

# Information pages

RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]

# Links contribution

RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]

# Newsdesk contribution

RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]

</IfModule>

# Ultimate SEO URLs END

 

Any help is appreciated.

Share this post


Link to post
Share on other sites

Hello all,

 

i hope anyone can help me.

I have all installed so documentation it says.

It´s a great Contrib, but..

 

When i click on a Product i see : gift-100-p-41.html all ok.

 

But when i click inside the Categorie Box, i see only this :

please click to see, what i mean: http://www.bonnybee.de/seo.jpg

 

 

I hope anyone can help me. Here you see an empty categorie and no right und left boxes.

 

I don´t know, who the error i have to search.

 

Sorry my bad english ;-)

 

regards

Hobbes

Edited by HobbesBS

Share this post


Link to post
Share on other sites

An interesting issue with USU5 today. I linked to a non existent category and this threw out a foreach error, which had me scratching my head for a few minutes. So, and this might well have been covered many times but I am not going to read 194 pages to find out...ensure that when you use us on rewrite, that you link only to categories that actually do exist.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites

Hello Burt,

i´m Setup a new store with any modifications and the categories are brand new.

Have you seen my Problem?

 

I don´t know, how the Categories not work. Links are ok, i think.

 

the looks like : gift-c-28.html

 

but, i only see what im my image above.

 

greets

Hobbes

Edited by HobbesBS

Share this post


Link to post
Share on other sites

Hello!

Installed and all seems to work with the exception of www.mysite.com/products_new.php/ which redirects me to www.mysite.com

This is the same with all product links under "new products for month" & "what's new?" on the index.php pages.

 

My .htaccess file does have AcceptPathInfo On

 

Is there something else I am missing?

Thanks!

-Alex

If you are using a 2.2 template from TemplateMonster it is a know issue. I added the cure for it some ways back.

Share this post


Link to post
Share on other sites

Well this one turns out to be nice and easy .. good catch. It is some legacy code left over from development and is not needed at all.

 

catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php

 

Find ...

 

	private function uriModulesParsePath() {
if ( !is_readable( Usu_Main::i()->getVar( 'page_modules_path' ) . Usu_Main::i()->getVar( 'filename' ) ) ) {
return false;
}
$dependencies = Usu_Main::i()->getVar( 'page_modules', substr( Usu_Main::i()->getVar( 'filename' ), 0, -4 ) )->retrieveDependencies();
$uri_modules = Usu_Main::i()->getVar( 'uri_modules' );
foreach ( $uri_modules as $object ) {
if ( false !== ( $object->isValidUri() ) ) {
$object->parsePath();
}
}
} // end method

 

Change to ..

 

	private function uriModulesParsePath() {
if ( !is_readable( Usu_Main::i()->getVar( 'page_modules_path' ) . Usu_Main::i()->getVar( 'filename' ) ) ) {
return false;
}
$uri_modules = Usu_Main::i()->getVar( 'uri_modules' );
foreach ( $uri_modules as $object ) {
if ( false !== ( $object->isValidUri() ) ) {
$object->parsePath();
}
}
} // end method

Hello. The contribution works very well but I checked my error log and this is what I found out:

 

 

 

PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/original/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 409

 

 

I read on oscommerce forum that error came from filename that contains "-" instead of " _" is there any way to find out what file is causing the problem ? and exclude that file.

 

Another error:

 

HP Fatal error: Call to a member function store() on a non-object in /home/original/public_html/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78, referer: http

 

I also checked this on forum and there was something similar but I don't now when the error triggers because usually rewrites work fine.

 

I was experiencing this same problem and the solution was in the default index page on Windows iis

Windows uses Index.php as default index page (with capital I) after changing to index.php with lower case this problem was solved (changed in iis manager).

Maybe this can be changed into the code?

 

Anyway, great contribution!

Share this post


Link to post
Share on other sites

Am missing all images. This is a new install of USU5 on a modified Osc 2.3

 

Images disappeared after I chose to follow the directions to shorten the URL and modify .htaccess for rewrite.

 

Funny thing is, that when the images first disappeared, I thought I had fixed it by changing settings in the admin.

 

Then I installed KissMT Dynamic SEO Meta Tags and they disappeared again. Have tried uninstalling Meta Tags by disabling the line int template_top.php and deleting the directory from the server, but it didnt help.

 

After installing KissMT Dynamic SEO Meta Tags, I never found any setup options on Admin...is this to be expected?

 

Steve

Share this post


Link to post
Share on other sites

I lose all my images if I enable

 

RewriteBase /catalog/

 

in .htaccess

 

This happens even if I turn SEO off in admin.

 

My images are in the standard location for OSC.

 

Thanks

Share this post


Link to post
Share on other sites

I lose all my images if I enable

 

RewriteBase /catalog/

 

in .htaccess

 

This happens even if I turn SEO off in admin.

 

My images are in the standard location for OSC.

 

Thanks

 

Found the source of the problem, but no solution yet. The boilerplate .htaccess I am using had a section of code for Adaptive Images.

 

If I disable the next to the last line (RewriteRule \.(jpg|jpeg|gif|png) adaptive-images.php) my images come back.

 

I would like to use Adaptive Images, so help would be appreciated, though I know this is no longer the forum for my particular issue.

 

<IfModule mod_rewrite.c>

Options +FollowSymlinks

RewriteEngine On

 

# ----------------------------------------------------------------------

# Adaptive Images

# ----------------------------------------------------------------------

 

# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:

# RewriteCond %{REQUEST_URI} !some-directory

# RewriteCond %{REQUEST_URI} !another-directory

 

# RewriteCond %{REQUEST_URI} !assets

 

# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories

# to adaptive-images.php so we can select appropriately sized versions

RewriteRule \.(jpg|jpeg|gif|png) adaptive-images.php

</IfModule>

Edited by MountainMan

Share this post


Link to post
Share on other sites

I just had an error. Any idea?

 

PHP Fatal error:  Call to a member function store() on a non-object in /catalog/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78

Share this post


Link to post
Share on other sites

@@FWR Media

and everyone else

 

New Problem.

PHP Fatal error: Cannot redeclare usu5_base_filename() (previously declared in /catalog/includes/application_top.php:62) in /catalog/includes/application_top.php on line 82

Any Suggestions? PLEASE

Edited by newburns

Share this post


Link to post
Share on other sites

@@FWR Media

 

 

is Ultimate SEO url 5 compatiable to run with the header tags SEO contribution. Any issues or problems that must be addressed?

 

Thanks,

 

Timmy C

Share this post


Link to post
Share on other sites

Nope I want to talk about any issues that relate to the efficiency of USU5 without exception.

 

Your problem is nothing to do with USU5.

 

The code that redirects to cookie_usage.php is in application_top.php as follows: -

 

	if ($session_started == false) {
tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
}

 

Therefore if no session is started you are 301 redirected to that file.

 

If you care to look at this problem, you will find that, even though looking at your code we would expect a 404 not found error header to be sent to the browser when a page is not found, the header actually sent is a 302.

 

You need to debug this, not fob people off.

Share this post


Link to post
Share on other sites

Hi all,

 

jus installed a oscommerce store on a Windows 2008 web edition machine.

 

The store has following configuration:

 

osCommerce 2.3.3

Mini template system 1.4.03_c

Ultimate SEO url

Security Pro

Modular header tags

Sitemap generator

 

Whe I visit the shop root a got a white page with show error's on, this is the error:

 

Fatal error: Call to a member function retrieveDependencies() on a non-object in C:\Inetpub\vhosts\tuinenverkest.be\httpdocs\winkel\includes\modules\ultimate_seo_urls5\uri_modules\osc_experimental.php on line 51

 

If I visit URL with index.php added the site is working fine

If I disable Ultimate Seo Urls 5 site is also working fine without the index.php added but MTS banners are not loading

 

Anyone that knows where to start looking to solve this

 

Thanks

Filip

Share this post


Link to post
Share on other sites

Hi,

 

just wanted to ask this one question:

 

I'm using OSC 2.3.3 -

Add ons: Ultimate SEO Urls 5 and Modular Header Tags

 

and I'm getting a lot of duplicate titles in Google Webmaster Tools, because of the "language=en" parameter.

 

The shop is in English only.

 

When I try to redirect the parameter language=en with htaccess it goes to product_info.php instead of the corresponding product.

 

I think that Ultimate SEO Urls is somehow conflicting with it.

 

Any ideas how to solve this problem?

 

Thanks

Share this post


Link to post
Share on other sites

It is not a good idea to hack the code as there is no current issue with the code base.

 

It looks like there is a quirk in your code that is causing the registry to destruct before the Usu_Main class.

 

The following should eradicate the error you are seeing but it should not be necessary .. I can't however debug your local code.

 

open the following file: -

 

catalog/includes/modules/ultimate_seo_urls5/main/usu5.php

 

Replace the entire __destruct() method with the following: -

 

	/**
* Class destructor
*
* Stores the cache and outputs and performance data requested
*
* @[member='access'] public
* @[member='Return'] void
*/
public function __destruct() {
if ( defined( 'USU5_ENABLED' ) && ( USU5_ENABLED == 'true' ) ) {
$registry = $this->getVar( 'registry' );
$cache = $this->getVar( 'cache' );
if ( $registry instanceof Data_Registry && $cache instanceof iCache_System ) {
$cache->store( $registry->store() );
}
if ( defined( 'USU5_OUPUT_PERFORMANCE' ) && ( USU5_OUPUT_PERFORMANCE == 'true' ) ) {
performance();
}
if ( defined( 'USU5_DEBUG_OUPUT_VARS' ) && ( USU5_DEBUG_OUPUT_VARS == 'true' ) ) {
usu5_show_vars( $this->vars );
}
}
} // end destructor

 

Searching the forum for a second time I came upon this fix for the security problem McAfee discovered. After implementing the new code I no longer see errors in my error log. PCI compliance is is very important. I hope this helps other people. McAfee and myself were able to recreate the problem at will anytime with relative ease.

 

McAfee tested this query string to produce the error.

osCsid=x%20
%20ls%20-l%20=
%20dir%20=

 

I was able to produce the same error with this query string "osCsid=x ls-".

 

I hope this helps!


plasma.jpg

Share this post


Link to post
Share on other sites

Hi Robert.

 

I'm using the latest release of ULTIMATE Seo Urls 5 Pro in an oscommerce rc2a shop and I can't get rid of a known error. My google webmaster tools informed me that all my child categories had duplicate links.

 

Example:

 

/regalos/regalos-varios-c-44_46.html

 

/regalos/regalos-varios-c-46.html

 

 

I've tried to find out why in this forum, but despite having the file validator,php I keep having the same error in google webmaster tools.

 

I use as well the usu5_sitemaps. I don't know if it can cause this problem.

 

I'll be very grateful if you could help me.

 

Thanks

Share this post


Link to post
Share on other sites

I am getting errors on my main catalog page. The admin area seems fine no errors showing. On the main catalog page all it shows are the errors below nothing else. Please let me know what I am missing here and need to fix/update to get this issue resolved.

 

 

Errors:

 

 

Warning: Invalid argument supplied for foreach() in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 274

 

Warning: include_once(page_modules.php) [function.include-once]: failed to open stream: No such file or directory in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 339

 

Warning: include_once() [function.include]: Failed opening 'page_modules.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 339

 

Fatal error: Uncaught exception 'RuntimeException' with message 'Directory name must not be empty.' in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php:244 Stack trace: #0 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php(244): DirectoryIterator->__construct('') #1 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php(340): usu_dir_iterator() #2 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php(83): Usu5_Bootstrap->loadPageModules(false) #3 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/usu5.php(119): Usu5_Bootstrap->bootStrapper() #4 /home/b/public_html/n/Store/includes/application_top.php(338): Usu_Main->initiate(Object(language)) #5 in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php on line 244

Share this post


Link to post
Share on other sites

Sent you a PM with my email.

 

The file is credited to and generously contributed by Ioannis.

 

It is UTF-8 btw.

 

hello can sou send me the greek character conversion file..Thank you...

Share this post


Link to post
Share on other sites

hi there,

 

my categories , index and products work fine...

but when i call contact_us.php or specials.php and all other static pages they all turn out blank!

 

anybody know how to fix that???

 

regards john

Share this post


Link to post
Share on other sites

ULTIMATE Seo Urls 5 PRO ( version 1.1 ) - Performance

Standard URI produced: 58

SEO URI produced: 19

Query Count: 11

Queries Saved: 8

Cache load time: 0 seconds ( includes gzinflate/base64_decode/unserialize )

Data loaded from cache: false ( Cache System: Sqlite_Cache_Module )

Total query time: 0.0103 seconds

Cache system is Off

Standard Urls:

http://domain.de/index.php view = yes

http://domain.de/index.php view = yes

http://domain.de/pages.php?page=versand view = no (blank page)

http://domain.de/pages.php?page=impressum view = no (blank page)

http://domain.de/pages.php?page=agb view = no (blank page)

http://domain.de/shipping.php view = no (blank page)

http://domain.de/contact_us.php view = no (blank page)

http://domain.de/index.php?language=en view= yes

http://domain.de/index.php?language=de view = yes

http://domain.de/login.php view = no (blank page)

http://domain.de/create_account.php view = no (blank page)

http://domain.de/shipping.php view = no (blank page)

http://domain.de/advanced_search.php view = no (blank page)

http://domain.de/advanced_search_result.php view = no (blank page)

http://domain.de/products_new.php view = no (blank page)

http://domain.de/specials.php view = no (blank page)

http://domain.de/manufacturers.php view = no (blank page)

http://domain.de/reviews.php view = no (blank page)

http://domain.de/contact_us.php view = no (blank page)

http://domain.de/shopping_cart.php view = no (blank page)

http://domain.de/login.php view = no (blank page)

http://domain.de/create_account.php view = no (blank page)

http://domain.de/index.php view = yes

http://domain.de/featured_products.php view = no (blank page)

http://domain.de/products_new.php view = no (blank page)

http://domain.de/specials.php view = no (blank page)

http://domain.de/manufacturers.php view = no (blank page)

http://domain.de/topsellers_products.php view = no (blank page)

http://domain.de/reviews.php view = no (blank page)

http://domain.de/shipping.php view = no (blank page)

http://domain.de/contact_us.php view = no (blank page)

http://domain.de/product_info.php?products_id=54 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=54 view = no (blank page)

http://domain.de/product_info.php?products_id=53 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=53 view = no (blank page)

http://domain.de/product_info.php?products_id=52 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=52 view = no (blank page)

http://domain.de/product_info.php?products_id=51 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=51 view = no (blank page)

 

regards john

Share this post


Link to post
Share on other sites

I have seen this asked before in this thread but couldn't find the answer...

 

Basically the addon works perfectly except on the homepage...

 

If I click on one of the "New Products for May" which are listed on the home page it just bounces me back to the home page...

 

I am using osc 2.3 with the latest SEO URL addon...

 

Please can someone help this is really bugging me...

Share this post


Link to post
Share on other sites

I have seen this asked before in this thread but couldn't find the answer...

 

Basically the addon works perfectly except on the homepage...

 

If I click on one of the "New Products for May" which are listed on the home page it just bounces me back to the home page...

 

I am using osc 2.3 with the latest SEO URL addon...

 

Please can someone help this is really bugging me...

Fixed, was my bad nothing to do with this addon... *Face Palm*

Share this post


Link to post
Share on other sites

Hmmmmm it seems to be doing the blank links (just bounces back to home page) again on 'Whats New' page and index page :-(

 

 

any ideas what is causing this...?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×