Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping v4.x

Ceon URI Mapping v4.x

Views: 452,128

Results 901 to 920 of 2,454
7 Nov 2012, 7:53 AM
#901
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Ceon URI Mapping v4.x

Thank you taking the time to reply Conor

I was in two minds whether to post in Zen pub or here - chose here as I thought this thread might better recognise the ceon_mapping database references.

I've taken on board what you've said and have managed to get it working satisfactorily.

Looks like I now know a bit of php - amazing what a nights sleep can do.

7 Nov 2012, 6:53 PM
#902
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hey everyone,

store: http://www.royal-fleur.com

I am having issues with ceon uri mapping. It was working fine but now it is redirecting to a wrong page.

If i click on the about us link ( left column sideboxe ) or any of the link beside product, it redirect me to the following page :http://www.royal-fleur.com/index.php?main_page=product_info&products_id=0 instead of redirecting to http://www.royal-fleur.com/index.php?main_page=about_us.

the parameter for the about us page in mysql are as follow:

uri -> /about-royal-fleur
language_id -> 1
current_uri -> 1
main_page -> about_us
query_string_parameters ->
associated_db_id ->0
alternate_uri ->
redirection_type_code -> 301
date_added -> 2012-02-29 21:55:07

It only redirect to the correct page if i specified the full url address in the alternate url field.

I stated the about_us page as an example but i have the same problem for all the pages redirect by ceon url except for product pages

Please help me with this because it creates a lot of broken link in my store

Thank you in advance

8 Nov 2012, 12:54 AM
#903
newbie76 avatar

newbie76

Zen Follower

Join Date:
Aug 2009
Posts:
100
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi,

I would suggest upgrading, it won't actually take you that long.. however, things don't just suddenly stop working. So you must have installed software that messed something up, or added something to your .htaccess file which has broken things.

All the best..

Conor
ceon

Thanks for the response Conor, I haven't updated the .htaccess file since the day after I installed uri mapping (and long before it stopped working), I was wondering if it was a compatibility issue with a more recent IE update (as I don't know anyone else with a zen store and ceon uri mapping to check), but if it isn't that, which by the sounds of it that shouldn't be the case, I will need to go through all of my files to see what other addons I have installed since (as I do have many installed and with not knowing the exact date it stopped working I'm not sure which to look at), didn't think it was a module problem though as it had been working great, as mentioned I was wondering if the problem was IE.

I'll update here if I can find anything or get to the bottom of it, I will also look at upgrading to the newer version (I just hate merging files but if needs must).

Thanks again!

8 Nov 2012, 8:39 AM
#904
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

nicksab:

Please help me with this because it creates a lot of broken link in my store

You haven't read the instructions properly.

associated_db_id ->0

should be NULL, not zero, for "other" Zen Cart pages.

All the best...

Conor
ceon

8 Nov 2012, 8:46 AM
#905
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Newbie76:

I will need to go through all of my files to see what other addons I have installed since

I looked at the source of your site there and it is a complete mess. You have code that should be in the body in the header, unclosed script tags etc.. that would be why it doesn't work in IE.

You appear to have installed some cookie software in your template, there is some badly placed jQuery sidebox code (don't know what it's for or why it's placed where it is) and also no canonical links are being output because that code is missing, probably from html_header.php.

So at least three things to fix.. whoever added things to the template file(s) really messed up!

Hope that helps you fix things!

All the best..

Conor
ceon

8 Nov 2012, 6:42 PM
#906
crazysarah avatar

crazysarah

New Zenner

Join Date:
May 2012
Posts:
45
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Ceon, thanks for a great mod. I've been fiddling about with this on a site on my localhost and although I've made a few changes there's none I can think of that should affect this mod. And it works fine, except... Even though I use zen_href_link to build links and even though the ceon_uri_mappings Table in the DB has what I expect, for some reason when the link gets outputted it lacks the categories.

Ie if the link should be to:
carsite.com/cars/ford/galaxy

it appears as only:
carsite.com/galaxy

This is despite it having the correct entry in the ceon_uri_mappings table (ie carsite.com/cars/ford/galaxy)

This is really doing my nut in, been staring at it for hours now and I guess it's probably something simple but the code is overwhelming.

Any clues what I've done wrong?

thanks again

8 Nov 2012, 6:47 PM
#907
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

crazysarah:

This is really doing my nut in, been staring at it for hours now and I guess it's probably something simple but the code is overwhelming.

I'm sorry to hear you've been spending so much time at this, I hate to hear people spending time on something that they may not have needed to.

Ceon URI Mapping can't do what you are suggesting, so either that's not the "current" URI for the category or you have some other code on your site which is redirecting/interfering.

Use the Live HTTP Headers Firefox extension to check if a redirect is taking place and check your .htaccess file for other rewrite rules.

Hope that helps!

All the best..

Conor
ceon

8 Nov 2012, 8:05 PM
#908
crazysarah avatar

crazysarah

New Zenner

Join Date:
May 2012
Posts:
45
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Wow, thanks for the quick response, I've managed to eat dinner in the meantime.

I do have a redirect, so it that whats causeing the issues? it goes like: zen_redirect(zen_href_link($_GET['main_page'], zen_get_all_get_params())

surely using the zen_href_link() function makes it work with this lovely mod?

Don't seem to have any other redirects in the htaccess other than redirecting www to non-www

8 Nov 2012, 8:17 PM
#909
crazysarah avatar

crazysarah

New Zenner

Join Date:
May 2012
Posts:
45
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

crazysarah:

Wow, thanks for the quick response, I've managed to eat dinner in the meantime.

I do have a redirect, so it that whats causeing the issues? it goes like: zen_redirect(zen_href_link($_GET['main_page'], zen_get_all_get_params())

surely using the zen_href_link() function makes it work with this lovely mod?

Don't seem to have any other redirects in the htaccess other than redirecting www to non-www

I should say, in case it matters, that the reason for the redirect is because I have a custom filter which POSTs form data, in order for a warning about resubmitting data not to appear when the user clicks the back button, I save all the POST vars into the SESSION and redirect to the same page.

Don't know it that matters?

8 Nov 2012, 10:27 PM
#910
crazysarah avatar

crazysarah

New Zenner

Join Date:
May 2012
Posts:
45
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Just incase it helps jog anyone else's memory and so that no-one wastes time helping me, I've figured it out. I'd a bunch of old URI's in the database from a month or so ago when I first played around with this software. It was causing all my issues problems. Stupid me. What a waste of time!

9 Nov 2012, 2:47 AM
#911
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

[QUOTE=conor;1162449]Hi,

You haven't read the instructions properly.

I did read the instructions nut it is not working for me.

associated_db_id ->0

should be NULL, not zero, for "other" Zen Cart pages.

When I try to set to NULL, I am getting the following error from mysql:

1 row affected.
Warning: #1366 Incorrect integer value: 'NULL' for column 'associated_db_id' at row 1

I don t really understand what s going on because it was working fine and then URI mapping just stop working for the "custom pages"

9 Nov 2012, 3:31 AM
#912
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

[QUOTE=nicksab;1162680]> conor:

Hi,

You haven't read the instructions properly.

I did read the instructions nut it is not working for me.

associated_db_id ->0

> 
> should be NULL, not zero, for "other" Zen Cart pages.
> 
> When I try to set to NULL, I am getting the following error from mysql:
> 
> 1 row affected.
> Warning: #1366 Incorrect integer value: 'NULL' for column 'associated_db_id' at row 1
> 
> 
> I don t really understand what s going on because it was working fine and then URI mapping just stop working for the "custom pages"

Nevermind, I find the error in one of my .php file.

Thank you for helping though
9 Nov 2012, 7:17 PM
#913
eazi avatar

eazi

New Zenner

Join Date:
Mar 2011
Posts:
5
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x


Please note the links are to an adult site......

Firstly, great Mod. Thanks

Secondly, sorry if I have missed this, just read 92 pages of comments and now my eyes are blurry :)

I have a problem with modified urls where there are multiple pages.

eg.

This url :
https://scandals-online.co.uk/index.php?main_page=index&cPath=32_33&sort=20a&page=1

works, ie pressing next page brings up next 10 items

But url :
https://scandals-online.co.uk/fifty-shades?sort=20a&page=1

always returns first 10 items?

9 Nov 2012, 10:31 PM
#914
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

nicksab:

conor:

You haven't read the instructions properly.

I did read the instructions nut it is not working for me.

No, I said "properly". associated_db_id has to be NULL for "other" Zen Cart pages.

nicksab:

When I try to set to NULL, I am getting the following error from mysql:

1 row affected.
Warning: #1366 Incorrect integer value: 'NULL' for column 'associated_db_id' at row 1

I don t really understand what s going on because it was working fine and then URI mapping just stop working for the "custom pages"

That's the problem then.. you've changed the database structure.. you have to let the associated_db_id be NULL.. your table must not allow that for the column.

Don't know how you did this but this was indeed your mistake. Use PHPMyAdmin to change the column so that it can be set to NULL then change all your custom pages to having NULL for that column.

Whenever you changed the column it will have broken all the custom pages at once.. that's the explanation!

Have a good weekend.

All the best...

Conor
ceon

9 Nov 2012, 10:36 PM
#915
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

eazi:

Firstly, great Mod. Thanks

Glad you like it.

eazi:

Secondly, sorry if I have missed this, just read 92 pages of comments and now my eyes are blurry :)

Yeah, most issues are fixed, so when 5.x is out I'll start a new thread here, save anyone else wasting their time reading so many pages (although there is a search thread option ;) )

eazi:

I have a problem with modified urls where there are multiple pages.

eg.

This url :
https://scandals-online.co.uk/index.php?main_page=index&cPath=32_33&sort=20a&page=1

works, ie pressing next page brings up next 10 items

But url :
https://scandals-online.co.uk/fifty-shades?sort=20a&page=1

always returns first 10 items?

Guess you've fixed this? Works perfectly fine for me.

All the best...

Conor
ceon

10 Nov 2012, 7:07 AM
#916
eazi avatar

eazi

New Zenner

Join Date:
Mar 2011
Posts:
5
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Conor,

Thanks for the fact reply.

No, it's not fixed. If you check the second url it always shows the same items, 1 - 10, never 11 -20

10 Nov 2012, 12:49 PM
#917
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

eazi:

Thanks for the fact reply.

No, it's not fixed. If you check the second url it always shows the same items, 1 - 10, never 11 -20

Sorry but I don't know what's going wrong.

Try re-uploading the Zen Cart files that deal with product listings, then re-install Ceon URI Mapping.

This is a problem with the code on your site, something is blocking the pagination. I'm really sorry but I don't have a specific answer for you other than to say it's not a problem with the module itself.

All the best...

Conor
ceon

11 Nov 2012, 2:31 PM
#918
eazi avatar

eazi

New Zenner

Join Date:
Mar 2011
Posts:
5
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi,

Sorry but I don't know what's going wrong.

Try re-uploading the Zen Cart files that deal with product listings, then re-install Ceon URI Mapping.

This is a problem with the code on your site, something is blocking the pagination. I'm really sorry but I don't have a specific answer for you other than to say it's not a problem with the module itself.

All the best...

Conor
ceon

Hi Conor,

Found it :)

Problem was in my .htaccess file.

It looked right but I just re-wrote it and it now works :)

11 Nov 2012, 3:17 PM
#919
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

HI,

eazi:

Problem was in my .htaccess file.

It looked right but I just re-wrote it and it now works :)

Glad you're sorted.. what was the problem exactly?

All the best...

Conor
ceon

11 Nov 2012, 7:21 PM
#920
eazi avatar

eazi

New Zenner

Join Date:
Mar 2011
Posts:
5
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I couldn't find it. But I think that uri redirects were only passing first argument. This was search order in my case. I rewrote .htaccess and it worked so I must have had a typo that I couldn'tsee..