FWR 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 ...
Change to ..
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
zipicip, 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.
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!



Find content
Male

