Zen Cart Logo
Forums / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Views: 1,113,830

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

Simple SEO URL (OLD version) [support thread]

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?

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

yellow1912

Totally Zenned

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

Re: Simple SEO URL (OLD version) [support thread]

Ddo the same thing there, find:

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

Add above

$element = zen_db_input($element);

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

bfmarini

New Zenner

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

Re: Simple SEO URL (OLD version) [support thread]

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!

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

yellow1912

Totally Zenned

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

Re: Simple SEO URL (OLD version) [support thread]

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

Cheers

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

epalla

New Zenner

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

Re: Simple SEO URL (OLD version) [support thread]

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

Re: Simple SEO URL (OLD version) [support thread]

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

Re: Simple SEO URL (OLD version) [support thread]

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

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

epalla

New Zenner

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

Re: Simple SEO URL (OLD version) [support thread]

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

Re: Simple SEO URL (OLD version) [support thread]

epalla:

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

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

tiaz

New Zenner

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

Re: Simple SEO URL (OLD version) [support thread]

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:04 PM
#2891
neighbornick avatar

neighbornick

Zen Follower

Join Date:
Dec 2008
Posts:
93
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

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?

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

yellow1912

Totally Zenned

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

Re: Simple SEO URL (OLD version) [support thread]

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?)

16 Apr 2009, 8:44 PM
#2893
neighbornick avatar

neighbornick

Zen Follower

Join Date:
Dec 2008
Posts:
93
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

How do I install the patches???

16 Apr 2009, 8:57 PM
#2895
neighbornick avatar

neighbornick

Zen Follower

Join Date:
Dec 2008
Posts:
93
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I do not see the SSU in admin > Configuration and where do I get this patch from???

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

yellow1912

Totally Zenned

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

Re: Simple SEO URL (OLD version) [support thread]

neighbornick:

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

16 Apr 2009, 9:12 PM
#2897
neighbornick avatar

neighbornick

Zen Follower

Join Date:
Dec 2008
Posts:
93
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Yes, Where do I find the install.sql patch for the Simple SEO URLS

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

yellow1912

Totally Zenned

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

Re: Simple SEO URL (OLD version) [support thread]

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.

16 Apr 2009, 9:26 PM
#2899
neighbornick avatar

neighbornick

Zen Follower

Join Date:
Dec 2008
Posts:
93
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I dont understand... the link said to copy the following lines to where I want the filter to appear??

16 Apr 2009, 9:30 PM
#2900
neighbornick avatar

neighbornick

Zen Follower

Join Date:
Dec 2008
Posts:
93
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I think I will just upload the backup of my store and then re-install ssu.