Jump to content
FWR Media

ULTIMATE Seo Urls 5 - by FWR Media

Recommended Posts

Your post suggests that you are now on a @nix server. On a *nix server _SERVER[REQUEST_URI] should exist and be populated.

 

Sorry because my ignorance.

where must I declare and populate this variable ?

 

Many thanks

kr.

Juan - Crester

Share this post


Link to post
Share on other sites

Could you please explain exactly what errors you are seeing and how to reproduce them.

 

Hi Roberts,

 

I tested again in 2.2RC and found differencies. The header var_dumb means that outputs starts first when HTML is displaying (the top of the page), and the column left and products listings blocks you know very simple.

If I cause errors the "header" second var_dump doesn't work. I think code call twice page_modules.php

 

protected function stripPathToLastNumber( $path ) {
 	if ( is_numeric( $path ) ) {
   	return $path;
 	} elseif ( false !== strpos( $path, '_' ) ) {
   	$split = explode( '_', $path );
   	var_dump($split);
   	return $split[count( $split )-1];
 	}
 	trigger_error( __CLASS__ . '::' . __FUNCTION__ . ': Incorrect path value of ' . $path . ' presented', E_USER_WARNING );
}

 

Here is the displaying:

 

1. Case with cPath displaying in URL-s

http://.../index.php...idek-eaa-c-2_46

header

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

 

 

column left

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "47" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "48" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "49" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "50" }

 

 

in my products listing boxes

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

.

.

.

 

 

2. Case without cPath in URL-s

http://.../product_i...no-fusion-p-166

 

header

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

Here is no working

 

 

column_left

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "47" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "48" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "49" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "50" }

 

 

in Products listing section (not the bottom of page)

KissER Error Handling:

E_NOTICE Error Count: 22

Error: Undefined index: products_model

File: includes/modules/ultimate_seo_urls5/page_modules/product_info.php

Line: 183

Error: Undefined index: my_identifier_split

File: includes/kiss_error_handler.php

Line: 178

Error: Undefined index: cPath

File: product_info.php

Line: 48

Unique error code: my_identifier_split Error Count: 6

Error:

 

Array

(

[0] => 2

[1] => 46

)

 

File: includes/modules/ultimate_seo_urls5/abstracts/page_modules.php

Line: 312

Error:

 

Array

(

[0] => 2

[1] => 47

)

 

File: includes/modules/ultimate_seo_urls5/abstracts/page_modules.php

Line: 312

Error:

 

Array

(

[0] => 2

[1] => 48

)

 

File: includes/modules/ultimate_seo_urls5/abstracts/page_modules.php

Line: 312

Error:

 

Array

(

[0] => 2

[1] => 49

)

 

File: includes/modules/ultimate_seo_urls5/abstracts/page_modules.php

Line: 312

Error:

 

Array

(

[0] => 2

[1] => 50

)

 

File: includes/modules/ultimate_seo_urls5/abstracts/page_modules.php

Line: 312

E_USER_WARNING Error Count: 1

Error: aPage_Modules::stripPathToLastNumber: Incorrect path value of presented

File: includes/modules/ultimate_seo_urls5/abstracts/page_modules.php

Line: 315

 

 

I think that the second page_modules calling was wrong.

 

 

I write out in V2.31 store var_dump and there are all outputs. (in header section are double)

 

 

 

Other debugs maybe this better

 

	
  protected function stripPathToLastNumber( $path ) {
  	if ( is_numeric( $path ) ) {
		var_dump($path);
		return $path;
  	} elseif ( false !== strpos( $path, '_' ) ) {
		$split = explode( '_', $path );
		var_dump($split);
		return $split[count( $split )-1];
  	}
  	trigger_error( __CLASS__ . '::' . __FUNCTION__ . ': Incorrect path value of ' . $path . ' presented', E_USER_WARNING );
	}

 

 

When working

in header section:

string(1) "2"

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

string(3) "166"

 

 

column_left:

string(2) "56" string(2) "55" string(2) "58" string(2) "18" string(1) "8" string(1) "1" string(1) "2"

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "47" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "48" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "49" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "50" }

string(1) "4" string(1) "9" string(2) "51" string(2) "42" string(2) "11" string(1) "5" string(2) "41" string(2) "13" string(2) "52" string(2) "21" string(2) "17"

 

 

Products info section:

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

 

array only!

 

 

When wrong

 

in header section:

string(1) "2"

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

string(3) "166"

 

 

in column left:

string(2) "56" string(2) "55" string(2) "58" string(2) "18" string(1) "8" string(1) "1" string(1) "2"

array(2) { [0]=> string(1) "2" [1]=> string(2) "46" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "47" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "48" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "49" }

array(2) { [0]=> string(1) "2" [1]=> string(2) "50" }

string(1) "4" string(1) "9" string(2) "51" string(2) "42" string(2) "11" string(1) "5" string(2) "41" string(2) "13" string(2) "52" string(2) "21" string(2) "17"

 

products info section:

here are the errors only

 

 

Maybe wrong with products info?


:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

Maybe wrong with products info?

 

 

I fixed in my catalog/products_info.php

 

change:

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_DEFAULT, 'action=add_product'.'&cPath='.$_GET['cPath'])); ?>

 

 

to:

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_DEFAULT, 'action=add_product'. (isset($_GET['cPath']) ? '&cPath='.$_GET['cPath'] : ''))); ?>

 

The error was when cPath was not able to predefinied in tep_href_link().

 

cPath=;

Edited by Gergely

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

 

The error was when cPath was not able to predefinied in tep_href_link().

 

cPath=;

 

Glad you found it.

 

But just to clarify for others .. this wasn't a bug of USU5 it was a bug in your site code.

Share this post


Link to post
Share on other sites

Glad you found it.

 

But just to clarify for others .. this wasn't a bug of USU5 it was a bug in your site code.

 

Sorry,

 

Yes this was only my site bug not FWR USU5 great contribution.

:thumbsup:

 

Thanks

Edited by Gergely

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

this is awesome contrib!!!!!!! :thumbsup:

 

I have some japanese and chinese products in my shop coded in UTF8

 

I am using rewrite mod

I got some probs with asian product names

 

for example:

the name of the product is: Yuhki裕紀 ゆうき

 

the hyperlink made point on

<a href="http://www.xxxxx/yuhkiè£ç´ãããã-p-346.html">

or

http://www.xxxxx/yuhki%C3%A8%C2%A3%C2%95%C3%A7%C2%B4%C2%80%C3%A3%C2%80%C2%80%C3%A3%C2%82%C2%86%C3%A3%C2%81%C2%86%C3%A3%C2%81%C2%8D-p-346.html

 

I don't think I am gonna convert all asian dictionnary in $char_convert ........

anyway, I heard from this post the RFC3986 standard accept only latin char

 

then how can I do to ignore all non latin char (asian one) or if there is a solution to display row asian char in the url..........

I turn 'Remove all non-alphanumeric characters?' on true but it does not help , I also follow this post http://forums.oscommerce.com/topic/369628-how-to-modify-usu5-pro-to-accept-chinese-characters-in-the-uri/ and does not works either.

 

thanks for Help!

any ideas to solve my prob

 

thanks

Share this post


Link to post
Share on other sites

Hi.

Can anyone pass me the htacess rules so that i can put them on tuckey urlrewitefilter (used in glassfish/ php/java bridge / tuckey instead of apache/php and mod_rewrite)?

Share this post


Link to post
Share on other sites

Hi Robert

 

whilst testing a link submission module on my site I got this error after submitting, can you tell me what it means?

 

Warning: SQLiteDatabase::query() [sqlitedatabase.query]: column cache_name is not unique in /home/username/public_html/includes/modules/ultimate_seo_urls5/cache_system/sqlite.php on line 101

 

Thanks in advance.


~ Don't mistake my kindness for weakness ~

Share this post


Link to post
Share on other sites

Ok. I understand. But sometimes let's say cpath is missing for example if a product is orphan (category is deleted).

 

 

Hello,

 

I find existent error when type into

in all sites where I installed USU5 Pro 197. Could you help someting, how can I fix it?

What should I do?

 

Thanks for any advices

Gergely


:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

Hello,

 

I find existent error when type into in all sites where I installed USU5 Pro 197. Could you help someting, how can I fix it?

What should I do?

 

Thanks for any advices

Gergely

 

 

I fixed.

 

/includes/modules/ultimate_seo_urls5/page_modules/index.php

 

change in line 163:

 

$this->setQuery( array( TABLE_CATEGORIES_DESCRIPTION, TABLE_CATEGORIES, (int)Usu_Main::i()->getVar( 'languages_id' ), $this->stripPathToLastNumber( $this->keys_index[$this->key] ) )) );

 

to:

     	$path = $this->stripPathToLastNumber( $this->keys_index[$this->key] );
     	$path = ( ( $path == '') ? 0 : $path );
     	$this->setQuery( array( TABLE_CATEGORIES_DESCRIPTION, TABLE_CATEGORIES, (int)Usu_Main::i()->getVar( 'languages_id' ), $path  ) );


:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

I fixed.

 

 

Glad you got it sorted but to be honest osCommerce code should not be passing in null cPaths.

Share this post


Link to post
Share on other sites

Glad you got it sorted but to be honest osCommerce code should not be passing in null cPaths.

 

I do that because on the other SEO versions cant knock out the shop by this way. I visited my server log file history and I found several times error pages with cPath= in the urls. This is maybe unusefull, but I dont like to see it.

That is it.

 

I like your works.

 

Best Regads

Gergely


:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

I do that because on the other SEO versions cant knock out the shop by this way. I visited my server log file history and I found several times error pages with cPath= in the urls. This is maybe unusefull, but I dont like to see it.

That is it.

 

I like your works.

 

Best Regads

Gergely

 

Gergely

 

I really appreciate you posting your findings .. this will allow me to cater better for badly written oscommerce sites in future versions.

Share this post


Link to post
Share on other sites

Hi

 

Not sure if this has been asked already, but is it possible to not have the product/category id numbers in links? According to some it's entirely cosmetic but I get the feeling from reading through some posts here that it's a thing on purpose? It does clearly identify, to me at least, an oscommerce site which is one thing I'm hoping to make less obvious.

Share this post


Link to post
Share on other sites

Hi

 

Not sure if this has been asked already, but is it possible to not have the product/category id numbers in links? According to some it's entirely cosmetic but I get the feeling from reading through some posts here that it's a thing on purpose? It does clearly identify, to me at least, an oscommerce site which is one thing I'm hoping to make less obvious.

 

No it is not currently possible.

Share this post


Link to post
Share on other sites

Call to a member function retrieveDependencies() on a non-object

 

Hello. I am trying to create a new module using class Usu_Template.php .

Share this post


Link to post
Share on other sites

Call to a member function retrieveDependencies() on a non-object

 

Hello. I am trying to create a new module using class Usu_Template.php .

 

This suggests that the page module file exists but it is not being instantiated as an object due to some error in the file.

 

Create a file in the shop root called usu_test.php containing: -

 

<?php
 include 'includes/application_top.php';
 error_reporting( 'E_ALL' );
 $page = 'index.php'; // Your module filename here
 $class_name = explode( '_', substr( $page, 0, strpos( $page, '.' ) ) );
 $class_name = ucwords( implode( '_', $class_name ) ) . '_Page_Module';
 echo 'Class name was: ' . $class_name . '<br />';
 $moduleObject = call_user_func( array( $class_name, 'i' ) );
 echo '<pre>' . print_r( $moduleObject->retrieveDependencies(), true ) . '</pre>';

 include DIR_WS_INCLUDES . 'application_bottom.php';

 

Make sure you change the following to the name of your new page module file.

 

$page = 'index.php'; // Your module filename here

 

Then browse to the file like .. www.mysite.com/catalog/usu_test.php

 

It should print out the dependencies but in your case will no doubt show errors.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Thanks a lot.

 

I didn't understand that class name class Xxx_Page_Module extends aPage_Modules must be as the same as file name

 

for example:

 

if file_name is : this_is_a_test.php class must be name This_Is_A_Test_Page_Module

Share this post


Link to post
Share on other sites

Hello Robert, Now I have fixed all... but:

 

Error Type: [E_NOTICE] Undefined offset: 5

On line 86

File includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php

 

Tonight I had about 27Kb of those.

 

So, can I just use the following as a first line in the osc_experimental.php?

 

error_reporting(E_ALL ^ E_NOTICE);

 

Kindest

Sara

Share this post


Link to post
Share on other sites

Hello Robert, Now I have fixed all... but:

 

Error Type: [E_NOTICE] Undefined offset: 5

On line 86

File includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php

 

Tonight I had about 27Kb of those.

 

So, can I just use the following as a first line in the osc_experimental.php?

 

error_reporting(E_ALL ^ E_NOTICE);

 

Kindest

Sara

 

error_reporting is already set as low as it can go in application_top.php unless you have changed it.

Share this post


Link to post
Share on other sites

Just a question, i have additional category boxes installed, but i keep getting these results:

 

Homepgae url : http://www.jamello.nl/index.php

Category url's : http://www.jamello.nl/index.php/kofferbak-sierlijsten-c-933

One category deeper url's : http://www.jamello.nl/index.php/kofferbak-sierlijsten-alfa-romeo-c-933_935

One category deeper url's : http://www.jamello.nl/index.php/alfa-romeo-147-c-933_935_936

Product page url : http://www.jamello.nl/product_info.php/147-arhkl1-rvs-kofferbakstrip-vlak-voor-alfa-romeo-147-modeljaar-1997-p-1133

 

My programming skills are that big but somehow that index.php should disappear in the url's, can you please explain me how to do this?


Everything is conditional, you just can't always anticipate the conditions.

Share this post


Link to post
Share on other sites

Just a question, i have additional category boxes installed, but i keep getting these results:

 

Homepgae url : http://www.jamello.nl/index.php

Category url's : http://www.jamello.n...erlijsten-c-933

One category deeper url's : http://www.jamello.n...romeo-c-933_935

One category deeper url's : http://www.jamello.n...7-c-933_935_936

Product page url : http://www.jamello.n...aar-1997-p-1133

 

My programming skills are that big but somehow that index.php should disappear in the url's, can you please explain me how to do this?

 

It is in the instructions .. documentation/operation.htm

Share this post


Link to post
Share on other sites

I tested with some stettings form there but it seems i need to fool around with the htaccess to get it working properly?

Sorry, i'm quite new to this (1 month since i started with this) and somethings are unclear to me.

What should i put in the .htaccess?

Edited by easyq

Everything is conditional, you just can't always anticipate the conditions.

Share this post


Link to post
Share on other sites

I tested with some stettings form there but it seems i need to fool around with the htaccess to get it working properly?

Sorry, i'm quite new to this (1 month since i started with this) and somethings are unclear to me.

What should i put in the .htaccess?

 

To use the rewrite method you need to add to root .htaccess the code in extras/htaccess.txt

 

Ensure that you change the RewriteBase / to the correct setting.

 

When I say "root" it relates to where osCommerce is installed on your server ( e.g. whether osCommerce is installed into root or in a directory like catalog, shop etc ).These instructions are also in the htaccess.txt

Edited by FWR Media

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

×