If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Started by yellow1912 on 22 Jan 2008, 4:47 PM · Views: 1,115,297

Results 2,881 to 2,900 of 5,058
12 Apr 2009, 3:46 AM
#2881
bfmarini avatar

bfmarini

New Zenner

Join Date:
May 2008
Posts:
29
Plugin Contributions:
0

Post #2881 by bfmarini

I made that change but the problem is still there.

I turned SSU back on, so you should see the error if you use this URL:

http://www.kids-n-cribs.info/?main_page=index&manufacturers_id=1+union+select+1%2C%27+union+select+1%2C%27&zenid=abhbargadilqab5mj8l2kcj926

From the error message, it looks like the SQL error is getting thrown in this group of code

// Aliases needed to be loaded on demand
static function retrieveAliasesOnDemand($params, $field, $compare, $links, $aliases, $status=null){
$elements_to_query = array_diff(explode('/',$params), self::$$compare);
if(count($elements_to_query) > 0) {
foreach($elements_to_query as $element){
$conditions[] = "$field LIKE '%/$element/%' ";
}
$conditions = implode(' OR ', $conditions);
$query_string = 'SELECT DISTINCT link_url, link_alias FROM '.TABLE_LINKS_ALIASES." WHERE ($conditions)";
$query_string .= !empty($status) ? " AND status = $status" : '';
$query_string .= " ORDER BY length(link_alias) DESC";
global $db;
$alias_result = $db->Execute($query_string);
while(!$alias_result->EOF){
array_push(self::$$aliases, $alias_result->fields['link_alias']);
array_push(self::$$links, $alias_result->fields['link_url']);
$alias_result->MoveNext();
}
}
}

Specifically where the SELECT DISTINCT ... .query is being created. Is there a way to sanitize the data as it's building the conditions array?

Bryan
Destination Baby & Kids - https://www.destinationbabykids.com

12 Apr 2009, 3:48 AM
#2882
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2882 by yellow1912

Ddo the same thing there, find:

$conditions[] = "$field LIKE '%/$element/%' ";

Add above

$element = zen_db_input($element);

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Apr 2009, 3:58 AM
#2883
bfmarini avatar

bfmarini

New Zenner

Join Date:
May 2008
Posts:
29
Plugin Contributions:
0

Post #2883 by bfmarini

yellow1912:

Ddo the same thing there, find:

$conditions[] = "$field LIKE '%/$element/%' ";

Add above

$element = zen_db_input($element);

That did the trick ... thank you very much!

Bryan
Destination Baby & Kids - https://www.destinationbabykids.com

12 Apr 2009, 4:00 AM
#2884
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2884 by yellow1912

I will have the fixes updadted in the later release soon.

Cheers

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

13 Apr 2009, 3:30 PM
#2885
epalla avatar

epalla

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Post #2885 by epalla

I've got a new Zen Cart installation (latest versions of everything) going and I've just installed Simple SEO. It works beautifully for category and product listing pages, but it seems like the "exceptions" aren't working. I've got all the default exceptions in, yet when I click "add to cart" it tries to go here: http://xxx.com/store/pc-it/1/sort/20a/action

I suspect the issue might be that a tech before me modified the product listing module which now draws the "add to cart" buttons in a form like so (I've removed the var it's adding to, there's no syntax error here)

zen_draw_form('add_product_'.$listing->fields['products_id'], zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"');
zen_draw_hidden_field('products_id', (int)$listing->fields['products_id']);

any ideas?

13 Apr 2009, 3:46 PM
#2886
epalla avatar

epalla

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Post #2886 by epalla

For more context, the form action for the add product buttons looks like this with Simple SEO turned off:

http://xxx.com/store/index.php?main_page=product_info&cPath=2&sort=20a&number_of_uploads=0&action=add_product

and like this with it turned on:

http://xxx.com/store/pc-it/1?sort=20a&action=add_product
14 Apr 2009, 12:03 AM
#2887
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2887 by yellow1912

What is the current version you are using? Where did you download it?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Apr 2009, 12:50 AM
#2888
epalla avatar

epalla

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Post #2888 by epalla

latest version from your website (not zencart's)

16 Apr 2009, 12:52 AM
#2889
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2889 by yellow1912

epalla:

latest version from your website (not zencart's)
I have to see the site in question to know what's going.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Apr 2009, 12:07 PM
#2890
tiaz avatar

tiaz

New Zenner

Join Date:
Apr 2009
Posts:
36
Plugin Contributions:
0

Post #2890 by tiaz

Sorry to pop up in this thread but trying to get some support on module manager thread:

http://www.zen-cart.com/forum/showthread.php?t=90575&page=5

I understand your very busy but if you do get time to pop across, a few of us need support there if you get a momment.

Thanks

16 Apr 2009, 7:50 PM
#2892
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2892 by yellow1912

neighbornick:

Can someone help me....

All my urls now have an SSU_ID_DELIMITER in them... such as

http://nnforyou.com/cSSU_ID_DELIMITER1

anyone have any ideas?
Meaning something is wrong with the db patches. Either you have not installed db patches, or the patches have been removed for whatever reason (a server database rollback?)

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Apr 2009, 8:48 PM
#2894
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2894 by yellow1912

neighbornick:

How do I install the patches???
Did you read
http://wiki.rubikintegration.com/zencart/modules/attributes_filter/installation

Do you see SSU menu under admin->configuration?

If you do, then go under extras->ssu manager and reset cache.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Apr 2009, 9:03 PM
#2896
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2896 by yellow1912

neighbornick:

I do not see the SSU in admin > Configuration and where do I get this patch from???
Ddid you read my link above?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Apr 2009, 9:18 PM
#2898
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2898 by yellow1912

neighbornick:

Yes, Where do I find the install.sql patch for the Simple SEO URLS
If you have read the link, you will know that there is no install.sql, the module installs itself if you follow the steps in the tutorial above.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me