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

Ceon URI Mapping v4.x

Views: 452,151

Results 1,261 to 1,280 of 2,454
5 Aug 2013, 5:28 AM
#1261
marieaa avatar

marieaa

Zen Follower

Join Date:
Jan 2013
Posts:
113
Plugin Contributions:
0

Ceon URI Mapping v4.x

ok well... third time's the charm they say...

its working now... turned out that there is a bug in my English.php file in my admin folder eventough it was an original... must have badly transfered but it was what made it so that the file Installation Check wouldnt come up which in turn couldnt tell me how to set up my .htaccess for my server which in turn made it so that on the store side of things, it worked but didnt worked at the same time.

thanks for trying to help. truly appreciated.

5 Aug 2013, 5:50 AM
#1262
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

marieAA:

...
but if it says file for version 1.3.x and I'm on version 1.5.1, do I disregard?
...
1.3 = files only for 1.3.x
1.5 = files only for 1.5.x

marieAA:

ok well... third time's the charm they say...

it`s working now... turned out that there is a bug in my English.php file in my admin folder ...
That would cause some fun issues! Usually this sort of error can be difficult to find unless error logging is enabled for PHP (typically a hosting provider can help set this up temporarily) or by configuring PHP to display errors in the browser. Both of these two options should only be enabled on a development system when testing / debugging. These should be disabled on production systems.

Glad you were able to get everything working, now on to configuring all your shiny new URLs :)

5 Aug 2013, 3:46 PM
#1263
marieaa avatar

marieaa

Zen Follower

Join Date:
Jan 2013
Posts:
113
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

lhungil:

Glad you were able to get everything working, now on to configuring all your shiny new URLs :)

well that's one thing I did right in my book.. the store is brand spanking new, only 2 test products in there... same for categories... so everything will be auto generated and I won't have to go in each to activate it... :D

Thanks again

6 Aug 2013, 8:35 AM
#1264
redspan avatar

redspan

New Zenner

Join Date:
Jun 2012
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

ZC 1.5.0 installed and working June 2012
Ceon URI Mapping v4.0.8 (?) installed and supposedly working June 2012

Site is indexed in Google but they appear to be much older pages so I'm not sure that Ceon URI Mapping was working so I took advice and tried to update Ceon URI Mapping to the latest version according to the instructions provided with it.

I now have a server 500 error and can't get back in to the admin area.

The logs show repeats of this entry:

[06-Aug-2013 03:13:51 America/Chicago] PHP Warning:  require(includes/functions/sessions.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /path/to/my/site/www.mydomain.com/web/content/myadmindirectory/includes/init_includes/overrides/init_sessions.php on line 28
[06-Aug-2013 03:13:51 America/Chicago] PHP Warning:  require(includes/functions/sessions.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /path/to/my/site/www.mydomain.com/web/content/myadmindirectory/includes/init_includes/overrides/init_sessions.php on line 28
[06-Aug-2013 03:13:51 America/Chicago] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/functions/sessions.php' (include_path='.:/usr/share/pear:/usr/share/php') in /path/to/my/site/www.mydomain.com/web/content/myadmindirectory/includes/init_includes/overrides/init_sessions.php on line 28

I think I may have made the classic error of uploading /includes in the wrong place but I've backed that out and uploaded stage by stage, carefully, again.

.htaccess file appears to be correct

I've search the FAQs and this thread but as it's now 126 pages long it's difficult to find the right tips. Can anyone suggest:

A) How to fix it
or
B) How to disable the mod so that I can get back in, remove it, and start again.

TIA :)

6 Aug 2013, 12:40 PM
#1265
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping v4.x

Redspan:

ZC 1.5.0 installed and working June 2012
Ceon URI Mapping v4.0.8 (?) installed and supposedly working June 2012

Site is indexed in Google but they appear to be much older pages so I'm not sure that Ceon URI Mapping was working so I took advice and tried to update Ceon URI Mapping to the latest version according to the instructions provided with it.

I now have a server 500 error and can't get back in to the admin area.

The logs show repeats of this entry:

[06-Aug-2013 03:13:51 America/Chicago] PHP Warning: require(includes/functions/sessions.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /path/to/my/site/www.mydomain.com/web/content/myadmindirectory/includes/init_includes/overrides/init_sessions.php on line 28
[06-Aug-2013 03:13:51 America/Chicago] PHP Warning: require(includes/functions/sessions.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /path/to/my/site/www.mydomain.com/web/content/myadmindirectory/includes/init_includes/overrides/init_sessions.php on line 28
[06-Aug-2013 03:13:51 America/Chicago] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/functions/sessions.php' (include_path='.:/usr/share/pear:/usr/share/php') in /path/to/my/site/www.mydomain.com/web/content/myadmindirectory/includes/init_includes/overrides/init_sessions.php on line 28

> 
> I think I may have made the classic error of uploading /includes in the wrong place but I've backed that out and uploaded stage by stage, carefully, again.
> 
> .htaccess file appears to be correct
> 
> I've search the FAQs and this thread but as it's now 126 pages long it's difficult to find the right tips.  Can anyone suggest:
> 
> A) How to fix it
> or
> B) How to disable the mod so that I can get back in, remove it, and start again.
> 
> TIA :)The error message states that files are missing. Example:
> No such file or directory in /path/to/my/site/www.mydomain.com/web/content/**myadmindirectory/includes/init_includes/overrides/init_sessions.php**Have you made sure you uploaded ALL the required files?? Suggest you read the last few pages of this thread.. the posts just above yours.. Sounds like you have not installed things correctly..
6 Aug 2013, 4:48 PM
#1266
redspan avatar

redspan

New Zenner

Join Date:
Jun 2012
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Thanks for reply. Yes, there are four files in that directory including init_sessions.php which is set to 644. Is that correct?

6 Aug 2013, 6:08 PM
#1267
redspan avatar

redspan

New Zenner

Join Date:
Jun 2012
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

My hosting company has had a look at this and they suggested that it's something to do with a missing leading slash (/) in the file structure. They suggested adding

RewriteEngine On
RewriteBase /

to the .htaccess file but it didn't solve it. The missing file still appears to be missing because the process is looking in the wrong place i.e. relative to its directory and not in the correct directory.

6 Aug 2013, 10:31 PM
#1268
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Redspan:

My hosting company has had a look at this and they suggested that it's something to do with a missing leading slash (/) in the file structure. They suggested adding

RewriteEngine On
RewriteBase /

> 
> to the .htaccess file but it didn't solve it.  The missing file still appears to be missing because the process is looking in the wrong place i.e. relative to its directory and not in the correct directory.
There is a RewriteCond which should block your admin folder from being rewritten... So unless you changed the admin folder name and forgot to update the line in the .htaccess... the .htaccess should have nothing to do with this error.

The files are loaded by Zen Cart using the absolute paths listed in your configure.php files... So errors in these could cause issues... Also double check and ensure the installed files were all placed in the right folders (catalog vs admin)...
7 Aug 2013, 4:50 AM
#1269
redspan avatar

redspan

New Zenner

Join Date:
Jun 2012
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

lhungil:

Also double check and ensure the installed files were all placed in the right folders (catalog vs admin)...

Yes, I've double checked this and restored the files from before the change.

Is there a way of simply deleting this mod and starting again?

7 Aug 2013, 5:45 AM
#1270
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping v4.x

Redspan:

Yes, I've double checked this and restored the files from before the change.

Is there a way of simply deleting this mod and starting again?

If you backed up your site before you installed (as you should before installing ANY add-on) you can simply restore your site and start over..

7 Aug 2013, 1:14 PM
#1271
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi All,

I have used this mod a few times now it works like a charm, except with this install... think I'm spending to much time in front of the screen these days... anyways.

I have loaded up a parent category and ticked the box for auto-generated URI and works like it should. When creating a child category or product with a parent cat or child cat I get double // before my parent category, for example:

http://my-store.com/hardware
http://my-store.com//hardware/graphics-cards
http://my-store.com//hardware/graphics-cards/product-one

Is there something I have missed? Anyone know of a similar issue?

Thanks in advance to any help,
Jay

7 Aug 2013, 1:26 PM
#1272
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Apologies, not sure why or how I thought the parent category was fine, but its not.

All auto-generated URI's have a double slash (//) after the root domain i.e. my-store//hardware

jay

7 Aug 2013, 2:54 PM
#1273
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

4jDesigns:

... I get double // before my parent category ...
Check your configure.php files... Make sure there is no slash at the end of HTTP_SERVER or HTTPS_SERVER. Make sure no double slash is present in DIR_WS_CATALOG or DIR_WS_HTTPS_CATALOG.

7 Aug 2013, 3:40 PM
#1274
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Thanks for the reply, but the problem you thinking about causes an issue all round the site i.e. //index.php?main_page..... as well as all other pages, so nope, was not that.

My problem is only happening to auto-generated URI's. It saves the URI as '/myproduct' buy for some the link says 'mystore.com//myproduct' if i disable URI then it only has 'mystore.com/index.php?main_page.....'

I have had a look everywhere, but only found this:

classes/class.CeonURIMappingAdmin.php

// Prepend the URI with a root slash
		while (substr($uri, 0, 1) == '/') {
			$uri = substr($uri, 1, strlen($uri) - 1);
		}
		
		$uri = '/' . $uri;

I had a play around, but my knowledge is not that extensive so not much luck (no better way to learn than to play though).
Is there a way (perhaps in this bit of code) that I could stop auto-generated uri's from putting in the slash, perhaps that may help.

Will push on to figure it out, but if anyone has any other ideas, feel free to throw them my way.

7 Aug 2013, 5:53 PM
#1275
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping v4.x

4jDesigns:

Thanks for the reply, but the problem you thinking about causes an issue all round the site i.e. //index.php?main_page..... as well as all other pages, so nope, was not that.

My problem is only happening to auto-generated URI's. It saves the URI as '/myproduct' buy for some the link says 'mystore.com//myproduct' if i disable URI then it only has 'mystore.com/index.php?main_page.....'

I have had a look everywhere, but only found this:

classes/class.CeonURIMappingAdmin.php

// Prepend the URI with a root slash
while (substr($uri, 0, 1) == '/') {
$uri = substr($uri, 1, strlen($uri) - 1);
}

	$uri = '/' . $uri;
> 
> I had a play around, but my knowledge is not that extensive so not much luck (no better way to learn than to play though).
> Is there a way (perhaps in this bit of code) that I could stop auto-generated uri's from putting in the slash, perhaps that may help.
> 
> Will push on to figure it out, but if anyone has any other ideas, feel free to throw them my way.
Can you humor lhungil and myself and check the configure.php file as suggested anyway. Because as this is not a COMMONLY REPORTED issue, this is the most likely cause.
7 Aug 2013, 6:11 PM
#1276
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Ceon URI Mapping v4.x

It does sound like something related to CEON URI use and not configure.php, but as it is not common, it must be related to some setting you have made rather than a universal mod behavior.

7 Aug 2013, 7:05 PM
#1277
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

4jDesigns:

Thanks for the reply, but the problem you thinking about causes an issue all round the site i.e. //index.php?main_page..... as well as all other pages, so nope, was not that.
Not necessarily. If HTTP_SERVER ends with a / and DIR_WS_CATALOG does not start with a / standard Zen Cart URLs will still generate correctly... However URLs generated by CEON URI Mapping will contain an extra / (because the extra / exists at the end of HTTP_SERVER).

So... If the constants in both configure.php files are correct... In order for an extra / to appear.... Either something is not quite right with the CEON URI Mapping installation... Or some other modification has been made to Zen Cart which is conflicting with this module.

4jDesigns:

I have had a look everywhere, but only found this:

classes/class.CeonURIMappingAdmin.php

// Prepend the URI with a root slash
while (substr($uri, 0, 1) == '/') {
$uri = substr($uri, 1, strlen($uri) - 1);
}

	$uri = '/' . $uri;
This code is called when a URI is inserted or updated from the admin interface. It ensures the URI Mapping stored in the database starts with only a single / when saved. This code is run over both "generated" and "hand entered" URIs. Probably best to not modify this code.

**Here is a high level view of how the auto-generation checkbox works:**
When you ask CEON URI Mapping to auto-generate a URI... The first step in auto-generation is to create an URI based on the category, product, ez-page, manufacturer, etc name. After that is done, DIR_WS_CATALOG(the relative web folder path) is appended to the start of the URI. The above referenced code is then called (to ensure the URI starts with a single /). Finally the auto-generated URI is saved to the database.

**Here is a high level view of how the URL is retrieved (for links on the website):**
When zen_href_link is called by Zen Cart (if enabled) CEON URI Mapping is called to retrieve the URI. This in turn pulls the corresponding saved URI from the database, prepends the result with HTTP_SERVER or HTTPS_SERVER, and finally appends any necessary parameters.
7 Aug 2013, 7:32 PM
#1278
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I have checked again and my config file shows no '/' at the end of both my HTTP_SERVER & HTTPS_SERVER and it does show a '/' for DIR_WS_CATALOG & DIR_WS_HTTPS_CATALOG.

The only other modules installed so far is CKEditor.
I have actually bought a responsive theme for the first time, maybe this is why I am getting this problem for the first time.

The only core file that is edited is the includes/functions/html_output.php and a .htaccess that has been added to to my /includes directory.

I have reverted my theme template back to Classic and still does the same thing, so in the morning I am going to remove CEON Mapping from the html_output file and compare it to a new fresh installed one. Perhaps I can see something there.

P.S. THANKS FOR HELP AND INFO SO FAR

7 Aug 2013, 7:49 PM
#1279
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

4jDesigns:

... I have reverted my theme template back to Classic and still does the same thing, so in the morning I am going to remove CEON Mapping from the html_output file and compare it to a new fresh installed one. Perhaps I can see something there. ...
Hmm, out of curiosity... Do the entries in the database have two slashes at the start? Was an older version ever installed? While I am not seeing a way for this to happen with the cleanup code...

But yeah, probably better to redo the install (remove all CEON files) and re-install.

7 Aug 2013, 9:01 PM
#1280
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

All has a single slash. Will do reinstall as I would usually then test, then if ok will add new theme files. Will post outcome.