Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
jeking
There's only one entry in that table:
http://prntscr.com/o76ypz
I checked another site and it's got only one entry in this table as well. Slightly different, but about the same.
Yeah, there would be one entry (row) of data, the question was related to what fields are in that table.
Now that I've looked at the correct version of the code (I was looking at some 4.x version), might I suggest executing the following in tools->Install SQL Patches and then a little navigation?
Code:
ALTER TABLE ceon_uri_mapping_configs DROP language_code_add;
Then, navigate to the Ceon URI Mapping (SEO) Config (likely will fault again), add ?check-config=1 to the end of the browser path and move forward with that address. Looks like should get a success install/upgrade. If not, then perhaps there is more to the error log? Have the files been removed that are directed in the instructions? Code seems to direct insertion of the field that is considered missing and to do so in a step-by-step sequence.
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
mc12345678
Yeah, there would be one entry (row) of data, the question was related to what fields are in that table.
Now that I've looked at the correct version of the code (I was looking at some 4.x version), might I suggest executing the following in tools->Install SQL Patches and then a little navigation?
Code:
ALTER TABLE ceon_uri_mapping_configs DROP language_code_add;
Then, navigate to the Ceon URI Mapping (SEO) Config (likely will fault again), add ?check-config=1 to the end of the browser path and move forward with that address. Looks like should get a success install/upgrade. If not, then perhaps there is more to the error log? Have the files been removed that are directed in the instructions? Code seems to direct insertion of the field that is considered missing and to do so in a step-by-step sequence.
Ding, ding, ding....we have a winner. I did get the success message and looks like it's all set now. Thank you for helping out. :D
Re: Ceon URI Mapping V5.0
Custom Product Types
Hi Guys,
Just want to put this in here in case it helps anyone in the future as I could not find the answer in the docs.
If you have made any custom product types (e.g product_car) you will need to add that into the file /includes/extra_datafiles/ceon_uri_mapping_product_pages.php or else these will not output on your page correctly.
For Example
PHP Code:
$ceon_uri_mapping_product_pages = array_merge(array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
FILENAME_PRODUCT_CAR_INFO,
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO
), $ceon_uri_mapping_product_pages);
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
DannyVarley
Custom Product Types
Hi Guys,
Just want to put this in here in case it helps anyone in the future as I could not find the answer in the docs.
If you have made any custom product types (e.g product_car) you will need to add that into the file /includes/extra_datafiles/ceon_uri_mapping_product_pages.php or else these will not output on your page correctly.
For Example
Code:
$ceon_uri_mapping_product_pages = array_merge(array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
FILENAME_PRODUCT_CAR_INFO,
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO
), $ceon_uri_mapping_product_pages);
Or you could do something that doesn't require modifying the existing code (which would likely be included on some future update) like adding another file: includes/extra_datafiles/ceon_uri_mapping_added_product_pages.php or:
includes/extra_datafiles/ceon_uri_mapping_car_product_pages.php
Code:
<?php
/**
* These are pages in addition to those assigned to support Ceon URI Mapping.
**/
// ensure the variable is declared with expectation of it being an array already.
if (empty($ceon_uri_mapping_product_pages)) $ceon_uri_mapping_product_pages = array();
$ceon_uri_mapping_product_pages[] = FILENAME_PRODUCT_CAR_INFO;
Regardless which order the files are loaded, the information would be added together and when/if the Ceon software is updated again in the future, no file merge specifically necessary. For a Zen Cart rebuild, would be an additional file to review for necessity in transferring based on what is installed to the new site. But guess everyone has their preferred method and style.
I like to look for changes and then the impact those changes have on other things, in this area of code if there are no changes that seem to affect the loading of product type pages, then I would not expect to have to search for things that I may have modified/added to support additional product types.
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
mc12345678
Or you could do something that doesn't require modifying the existing code (which would likely be included on some future update) like adding another file: includes/extra_datafiles/ceon_uri_mapping_added_product_pages.php or:
includes/extra_datafiles/ceon_uri_mapping_car_product_pages.php
Yep good idea, Im no good with code so I didn't have a clue to do it like this. Only reason I did it my way was it said so in the file
"If the store has any custom product page types, add their info page definitions to the list."
Thanks for the better understanding.
Re: Ceon URI Mapping V5.0
Testing an install of Ceon URI Mapping v5.0 on a fresh install of Zen Cart v1.5.6c
When enabled, the catalog crashes with the following error code: ERR_TOO_MANY_REDIRECTS
The part of the module that seems to be generating those redirects is located at:
includes/classes/class.CeonURIMappingHandlerBase.php
... between lines 403 and 406.
Any idea on how to fix that?
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
wvasconcelos
Testing an install of Ceon URI Mapping v5.0 on a fresh install of Zen Cart v1.5.6c
When enabled, the catalog crashes with the following error code: ERR_TOO_MANY_REDIRECTS
The part of the module that seems to be generating those redirects is located at:
includes/classes/class.CeonURIMappingHandlerBase.php
... between lines 403 and 406.
Any idea on how to fix that?
What is in the .htaccess at the root of the store and/or above?
Re: Ceon URI Mapping V5.0
Is there a GitHub repository for this?
Re: Ceon URI Mapping V5.0
Noting that the override to /admin/includes/javascript_loader.php is using the zc156 version (with jQuery 3.3.1). That file was updated in zc156b to use jQuery 3.4.0.
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
mc12345678
What is in the .htaccess at the root of the store and/or above?
Following is the content of my .htaccess file:
Code:
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264|woff2)$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/manager [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite logs directory
RewriteCond %{REQUEST_URI} !^/logs/ [NC]
# Don't rewrite readme directory
RewriteCond %{REQUEST_URI} !^/readme/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE