Page 127 of 245 FirstFirst ... 2777117125126127128129137177227 ... LastLast
Results 1,261 to 1,270 of 2445
  1. #1261
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by Redspan View Post
    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..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #1262
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default 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:

    Code:
    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

  3. #1263
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default 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

  4. #1264
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by 4jDesigns View Post
    ... 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.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  5. #1265
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default 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
    Code:
    // 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.

  6. #1266
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by 4jDesigns View Post
    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
    Code:
    // 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.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #1267
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  8. #1268
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by 4jDesigns View Post
    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.

    Quote Originally Posted by 4jDesigns View Post
    I have had a look everywhere, but only found this:

    classes/class.CeonURIMappingAdmin.php
    Code:
    // 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.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  9. #1269
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default 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

  10. #1270
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by 4jDesigns View Post
    ... 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.
    Last edited by lhungil; 7 Aug 2013 at 08:53 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  3. Ceon URI Mapping (SEO)
    By conor in forum All Other Contributions/Addons
    Replies: 2906
    Last Post: 9 Sep 2011, 08:31 AM
  4. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR