Jump to content



Latest News: (loading..)

roadkill

Member Since 05 Aug 2004
OFFLINE Last Active Apr 23 2013 02:40 PM
-----

Posts I've Made

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

23 April 2013 - 02:40 PM

View PostFWR Media, on 30 December 2010 - 04:26 PM, said:

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

View Postzipicip, on 30 December 2010 - 11:43 AM, said:

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!

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

28 September 2012 - 09:39 AM

First a big thank you to the developer of this excellent add-on and thank you for supporting the add-on for so long!

My question:

I just changed the name of a manufacturer, but when i call the oldmanufacturer-m-1.html it does not redirect to newmanufacturer-m-1.html

I tried adding the exception to uri_redirects_array.php and reset the cache, but it did not work.

Is there any other way to resolve this (am i overlooking something?)

version: ULTIMATE Seo Urls 5 PRO ( version 1.1 )

Thanks in advance for every reply to this :)