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

Ceon URI Mapping v4.x

Views: 451,794

Results 161 to 180 of 2,454
18 Oct 2011, 13:49
#161
conor avatar

conor

Passed

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

Ceon URI Mapping v4.x

Hi,

rebelIT:

The store has always been configured to "Page Not Found". After installing URI Mapping though it goes to the index.

I'm afraid all I can say is that something must be up on your site as Ceon URI Mapping should show the Zen Cart page not found 404 and not the index.

You must have something else in Zen Cart which is interfering when a non-existent static URI is in use.

I wish you luck in finding and fixing the source of the problem.

If you're still stuck then I may be able to take a look if you send FTP and admin details.

All the best..

Conor
ceon

18 Oct 2011, 16:05
#162
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,

Ugh.

Unbelievable!

I was helping someone with the software on their site today and found that unknown static URIs where not displaying the 404 page as expected.

It turns out that this has indeed been a bug since version 4.0.0.

I don't understand!

I was so sure I'd tested this aspect and no-one else has mentioned this problem.

So apologies to RebelIT, my memory is wrong and somehow this bug has been sitting there all this time. Stunning! Nice co-incidental timing that we both run into this on the same day though!

4.0.7 will be released very soon but in the meantime, this bug can be fixed by doing the following:

Edit includes/classes/class.CeonURIMappingHandler.php

After line 110, insert a "return;" statement. I.e. Change:

if ($match_uri_result->EOF) {
            // URI not found, should the index page be shown or the 404 page?
            if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
                $_GET['main_page'] = 'index';
            } elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
                header('HTTP/1.1 404 Not Found');
                $_GET['main_page'] = 'page_not_found';
            }
        }

to:

if ($match_uri_result->EOF) {
            // URI not found, should the index page be shown or the 404 page?
            if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
                $_GET['main_page'] = 'index';
            } elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
                header('HTTP/1.1 404 Not Found');
                $_GET['main_page'] = 'page_not_found';
            }
            
            return;
        }

As I said, I have no idea how a bug like this could have slipped through the net.

My comment on the next line even says "// Have matched the URI!".. how much clearer to myself could I have been when coding this!?!

:frusty:

Sorry about the trouble.

Hopefully 4.0.7 will be the final version, with no bugs remaining to be found.

At least upgrading is incredibly simple.. :)

All the best..

Conor
ceon

18 Oct 2011, 16:33
#163
mikebr avatar

mikebr

Zen Follower

Join Date:
May 2007
Posts:
124
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Ceon
Are there any google feeders that will accommodate your URI mappings?

18 Oct 2011, 16:36
#164
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 Mike,

How are you?

mikebr:

Are there any google feeders that will accommodate your URI mappings?

Ceon URI Mapping uses the zen_href_link() function so is 100% compatible with any module written for Zen Cart that uses that too.

(This is on the catalog side, not the admin).

If you have one that doesn't, simply fix it to use zen_href_link(), shouldn't be hard.

We don't use any Google or feed stuff so I'm afraid I don't know anything about any specific software. As I say though, integration should be easy - if it's not already present!

All the best..

Conor
ceon

18 Oct 2011, 18:21
#165
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

conor:

Hi,

Ugh.

Unbelievable!

I was helping someone with the software on their site today and found that unknown static URIs where not displaying the 404 page as expected.

It turns out that this has indeed been a bug since version 4.0.0.

I don't understand!

I was so sure I'd tested this aspect and no-one else has mentioned this problem.

So apologies to RebelIT, my memory is wrong and somehow this bug has been sitting there all this time. Stunning! Nice co-incidental timing that we both run into this on the same day though!

4.0.7 will be released very soon but in the meantime, this bug can be fixed by doing the following:

Edit includes/classes/class.CeonURIMappingHandler.php

After line 110, insert a "return;" statement. I.e. Change:

if ($match_uri_result->EOF) {
// URI not found, should the index page be shown or the 404 page?
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
header('HTTP/1.1 404 Not Found');
$_GET['main_page'] = 'page_not_found';
}
}

> 
> ```php
if ($match_uri_result->EOF) {
            // URI not found, should the index page be shown or the 404 page?
            if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
                $_GET['main_page'] = 'index';
            } elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
                header('HTTP/1.1 404 Not Found');
                $_GET['main_page'] = 'page_not_found';
            }
            
            return;
        }
```As I said, I have no idea how a bug like this could have slipped  through the net.
> 
> My comment on the next line even says "// Have matched the URI!".. how much clearer to myself could I have been when coding this!?!
> 
> :frusty:
> 
> Sorry about the trouble.
> 
> Hopefully 4.0.7 will be the final version, with no bugs remaining to be found.
> 
> At least upgrading is incredibly simple.. :)
> 
> All the best..
> 
> Conor
> ceon

Well I'm very disappointed in you :oops:.
Just kidding Conor No more bugs than this module have had is amazing. Fantastic work indeed my friend. :thumbsup:
I hope you are doing well.
18 Oct 2011, 18:57
#166
mikebr avatar

mikebr

Zen Follower

Join Date:
May 2007
Posts:
124
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Ceon

With changes to the URIs both manually and autogenerated there remans a plethora of redundant database records.

Is there anyway of purging these records?

18 Oct 2011, 19:13
#167
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,

mikebr:

With changes to the URIs both manually and autogenerated there remans a plethora of redundant database records.

No, there remains a plethora of historical records, the software was designed very specifically to work in this way. :)

mikebr:

Is there anyway of purging these records?

You can do what you like with your database.. delete anything you want, whatever way you want. :)

All URIs entered/generated have a date and time and only the current URIs have a value for current_uri of 1.

Just don't forget that when you delete a record you break the link for good.

Personally I'd never bother deleting any.

As I said, what you want to do is up to you!

All the best...

Conor
ceon

22 Oct 2011, 08:19
#168
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor,

Just trying to install on zc 1.5 - admin page does not come up. I get a blank screen. I have the rewrite mod on the testing server and have copied all files as it is a brand new clean install. Any pointers as I am sure it is something obvious but cannot see what. Should I change the .htaccess before trying to login. Although instruction process would suggest this comes later?

Thanks

22 Oct 2011, 08:31
#169
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 Mike,

How are you?

MikeyG:

Just trying to install on zc 1.5 - admin page does not come up. I get a blank screen.

A blank screen almost certainly means you've missed uploading files or your FTP software isn't very good and has missed uploading files.

Follow the installation process from the start to the finish again and things should sort themselves out.

If that's not it then check your paths in your configure.php files.

If you're still stuck send me FTP and admin details for the site at this address and I'll upload the files for you.

(You are right in that the RewriteRule/.htaccess part of the process is ahead of you and nothing to do with the error described).

All the best...

Conor
ceon

22 Oct 2011, 10:40
#170
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Conor, I am very well thank you. I hope you are.

Thank you once again for a prompt reply. It is amazing isn't it. Copied everything across as per the instructions, and I know I have had this before and yet still something does not go across and it flummoxed me completely.

You are right as usual and I know you know you would be and I know that you would be too. Just could not see it. LOL!

24 Oct 2011, 23:10
#171
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,

A critical bug was found which affected versions 4.0.0 to 4.0.6...

[BUGFIX] Serious bug meant that when a static URI could not be matched, Ceon URI Mapping was simply displaying the store's home page, instead of the File Not Found 404 page.

To prevent duplicate content warnings with search engines everyone should upgrade to version 4.0.7 immediately!

It should take just 2 minutes to upgrade.

Download version 4.0.7 now!

The distribution has also been submitted to the Zen Cart downloads area and should be available there soon.

Apologies for the bug.. what a difference a missing "return" statement makes! :|

All the best...

Conor
ceon

24 Oct 2011, 23:56
#172
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

conor:

Hi,

A critical bug was found which affected versions 4.0.0 to 4.0.6...

[BUGFIX] Serious bug meant that when a static URI could not be matched, Ceon URI Mapping was simply displaying the store's home page, instead of the File Not Found 404 page.

To prevent duplicate content warnings with search engines everyone should upgrade to version 4.0.7 immediately!

It should take just 2 minutes to upgrade.

Download version 4.0.7 now!

The distribution has also been submitted to the Zen Cart downloads area and should be available there soon.

Apologies for the bug.. what a difference a missing "return" statement makes! :|

All the best...

Conor
ceon

Hi Conor hope you are getting along pretty good.
I fix the bug already. Has anything else change in the upgrade, if not what file do I replace to show I upgraded in admin instead of uploading all those file again. Hope this makes sense.

25 Oct 2011, 00:04
#173
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 Randy,

Hope you are still doing well! :)

countrycharm:

Hi Conor hope you are getting along pretty good.

I'll be offline from tomorrow for at least a week. This will probably be the last post from me in that timeframe. :)

One wee thing.. when you reply, do you mind not quoting the whole post.. makes other posts harder to find.. thanks! :)

Just quote the relevant bits or use "Reply" instead to start a new post. :)

countrycharm:

I fix the bug already. Has anything else change in the upgrade, if not what file do I replace to show I upgraded in admin instead of uploading all those file again. Hope this makes sense.

Just upload all the files from the "files" folder over yours.. little has changed other than what you've changed and the version number but it's always best to stick with the recommended upgrade procedure! :)

Have a nice week!

All the best..

Conor
ceon

25 Oct 2011, 00:14
#174
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

conor:

Hi Randy,

Hope you are still doing well! :)

I'll be offline from tomorrow for at least a week. This will probably be the last post from me in that timeframe. :)

One wee thing.. when you reply, do you mind not quoting the whole post.. makes other posts harder to find.. thanks! :)

Just quote the relevant bits or use "Reply" instead to start a new post. :)

Just upload all the files from the "files" folder over yours.. little has changed other than what you've changed and the version number but it's always best to stick with the recommended upgrade procedure! :)

Have a nice week!

All the best..

Conor
ceon

One wee thing.. when you reply, do you mind not quoting the whole post.. makes other posts harder to find.. thanks! :)

Just quote the relevant bits or use "Reply" instead to start a new post. :):blush:
No problem, Sorry about that.

I uploaded all the files in the "files" for the module but it still shows.

Module © Copyright 2008-2011 Ceon Files Version: 4.0.7
Installed Version: 4.0.7
Out of Date!
The latest version of the software is 4.0.7
Click here to download the latest version

25 Oct 2011, 00:17
#175
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,

countrycharm:

:blush:
No problem, Sorry about that.

lol.. thanks.. I take it that second post was all on purpose! :)

I'll repost the release announcement soon so people can see it! :)

Good night for now!

All the best..

Conor
ceon

27 Oct 2011, 00:13
#176
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 Randy,

Hope you're well.. think I missed what you were pointing to in that last post, sorry about that!

Probably the last post from me before I go radioactive tomorrow and get locked behind this big lead door to my right! Computers, the net and everything/everyone else will stay outside! :)

countrycharm:

I uploaded all the files in the "files" for the module but it still shows
Out of Date!

That's the update checker caching the initial response it received for the session in which you first checked. I'll sort that behaviour out in a future version, so that the cached check is reset when you've just upgraded (it was supposed to do that but obviously doesn't work as desired).

Have a good week!

All the best...

Conor
ceon

29 Oct 2011, 19:01
#177
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Conor thanks so much for this mod. Cant wait to see what it does for duplicate pages on google for sort order and all that other garbage.

A donation should be heading your way

29 Oct 2011, 19:27
#178
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

To confirm will it keep google from picking up alpha_filter sort= etc? or do I need to locate each duplicate that google is seeing and redirect them?

30 Oct 2011, 10:42
#179
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Ive just ugraded to the latest version and all went well. But, I have a problems with my .htaccess (YAWN)

I am aware it's forbiden to speak of such things ;) but I need some help on this.

My .htaccess has been working fine with basic old CEON instructions and there is a couple of lines from my hosting company for (old) domain redirect.

So, I remove the old ceon info and replace with the new long list but it fails on me.

Contacted my hosting company who state the following:

"There seems to be an error in the code. Our error log shows:

/home/metalpix/public_html/.htaccess: RewriteCond: bad flag delimiters

Please get back in touch with CEON to review the code you wish to insert & fix any bugs. I would normally expect strings of RewriteCond to be linked via [OR] . And for [NC] (no case) to be used in the RewriteRule, not the condition."

CALL ME LOST! - I don't want to post the contents of the .htaccess file unless ask to. Is there something I have obviousley missed?

Thanks

30 Oct 2011, 10:50
#180
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I had the same problem

Spent hours trying to work out why then gave up with this version of the mod.