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

Ceon URI Mapping v4.x

Views: 451,795

Results 2,301 to 2,320 of 2,454
22 Sep 2018, 1:43 AM
#2301
patclay avatar

patclay

New Zenner

Join Date:
Dec 2008
Location:
New Zealand
Posts:
88
Plugin Contributions:
1

Ceon URI Mapping v4.x

I have just installed 4.5.5 this on my test site running 1.5.5f & if I make any changes using admin/ceon_uri_mapping_config.php I get the following error:

PHP Fatal error: 1366:Incorrect integer value: '' for column 'automatic_version_checking' at row 1 :: update ceon_uri_mapping_configs set autogen_new = '1', whitespace_replacement = '1', capitalisation = '3', remove_words = '-', char_str_replacements = '€=>EUR', mapping_clash_action = 'auto-append', manage_product_reviews_mappings = '0', manage_product_reviews_info_mappings = '0', manage_product_reviews_write_mappings = '0', automatic_version_checking = '' where id = '1'

I have checked the database & ceon_uri_mapping_configs.automatic_version_checking has a value of 1

Both of the installation checks are happy & report no errors.

Does anyone have any idea of what could be causing this or where I should look to find the issue?

Thanks for your help

Pat

22 Sep 2018, 1:25 PM
#2302
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

PatClay:

I have just installed 4.5.5 this on my test site running 1.5.5f & if I make any changes using admin/ceon_uri_mapping_config.php I get the following error:

PHP Fatal error: 1366:Incorrect integer value: '' for column 'automatic_version_checking' at row 1 :: update ceon_uri_mapping_configs set autogen_new = '1', whitespace_replacement = '1', capitalisation = '3', remove_words = '-', char_str_replacements = '€=>EUR', mapping_clash_action = 'auto-append', manage_product_reviews_mappings = '0', manage_product_reviews_info_mappings = '0', manage_product_reviews_write_mappings = '0', automatic_version_checking = '' where id = '1'

I have checked the database & ceon_uri_mapping_configs.automatic_version_checking has a value of 1

Both of the installation checks are happy & report no errors.

Does anyone have any idea of what could be causing this or where I should look to find the issue?

Thanks for your help

Pat
It appears that there is/was an attempt to modify the automatic-version-checking option to off or not to be performed; however, it was not handled properly either in the attempt to remove the version checking option or if it was present, but the appropriate posted information did not contain an expected value.

A solution that appears acceptable is at/around line 507 of admin/includes/classes/class.CeonURIMappingConfigUtility.php to change:

$this->_automatic_version_checking = $_POSTt'automatic-version-checking'];

To:

$this->_automatic_version_checking = (int)$_POSTt'automatic-version-checking'];

By adding the casting of integer.

I would recommend this regardless of whether version checking returns or remains unavailable to ensure that only an integer value be considered for storage into the database.

22 Sep 2018, 8:04 PM
#2303
patclay avatar

patclay

New Zenner

Join Date:
Dec 2008
Location:
New Zealand
Posts:
88
Plugin Contributions:
1

Re: Ceon URI Mapping v4.x

Thanks for your speedy response. I found the code at line 477 & made the alteration & the error has gone away.

Just an FYI for anyone following later:

$_POSTt'automatic-version-checking']

Is a typo & should be

$_POST['automatic-version-checking']
18 Oct 2018, 9:07 PM
#2304
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Well heck. I thought all was good and then not. I am running 1.5.5f. I am not using an "unused" domain, but the store is live. myfurnituretx.com

I am having a problem when updating or adding products to the store. After clicking "preview" upon updating or adding a product, I receive a blank screen (should be insert or update). When I toggle the "Offer Auto-generation of URIs for Categories, Products, Manufacturers and EZ-Pages:" to No, all is good. But when on yes, it does not work. My urls are also not changing when in selecting yes or no. I did an installation check and all checks out good. I copied and pasted the rewrite .htaccess file and loaded to the root.

htaccess file is:

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)$ [NC]

Don't rewrite any URIs for some specific file format extensions,

which are not covered by main file extension condition above

Uncomment the following line to apply this condition! (Remove the # at the start of the next line)

#RewriteCond %{REQUEST_URI} !.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/cr_admin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite .well-known directory

RewriteCond %{REQUEST_URI} !^/.well-known/ [NC]

Don't rewrite logs directory

RewriteCond %{REQUEST_URI} !^/logs/ [NC]

Don't rewrite cgi-bin directory

RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

I did see a couple of the typos mentioned on the class.CeonURIMappingConfigUtility.php file and updated, but still no luck. I have a feeling there is something simple I am missing. Sorry, I couldn't find it in this thread.

Any help would be great!

19 Oct 2018, 7:21 PM
#2305
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

creyesx6:

Well heck. I thought all was good and then not. I am running 1.5.5f. I am not using an "unused" domain, but the store is live. myfurnituretx.com

I am having a problem when updating or adding products to the store. After clicking "preview" upon updating or adding a product, I receive a blank screen (should be insert or update). When I toggle the "Offer Auto-generation of URIs for Categories, Products, Manufacturers and EZ-Pages:" to No, all is good. But when on yes, it does not work. My urls are also not changing when in selecting yes or no. I did an installation check and all checks out good. I copied and pasted the rewrite .htaccess file and loaded to the root.

htaccess file is:

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)$ [NC]

Don't rewrite any URIs for some specific file format extensions,

which are not covered by main file extension condition above

Uncomment the following line to apply this condition! (Remove the # at the start of the next line)

#RewriteCond %{REQUEST_URI} !.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/cr_admin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite .well-known directory

RewriteCond %{REQUEST_URI} !^/.well-known/ [NC]

Don't rewrite logs directory

RewriteCond %{REQUEST_URI} !^/logs/ [NC]

Don't rewrite cgi-bin directory

RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

I did see a couple of the typos mentioned on the class.CeonURIMappingConfigUtility.php file and updated, but still no luck. I have a feeling there is something simple I am missing. Sorry, I couldn't find it in this thread.

Any help would be great!

Ok, so now that perhaps the panic has subsided... Some additional information would help:

  1. has Ceon URI Mapping been installed against the database of this site before? And if so, what was its operational status?
  2. When the blank page was created, a log file should have been generated in the logs directory or if not logged there at least in the server logs (possibly requires help from the host). What did that log identify? (would suggest not posting the admin directory name although that has already been done in posting of the full .htaccess file. (Suggest renaming the admin directory.)
  3. Regarding the lack of provided rewritten uris shown on the store front, has the plugin been enabled in the configuration settings?
22 Oct 2018, 2:20 PM
#2306
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

There is no panic. This is a temporary domain that I use. My hope is to get this working if not, I will simply remove it and move on to something that works for me. However, I would like to get it working. To answer your questions.

  1. There was not a pre-existing database. I added a couple of dummy products to test. No luck of course.
  2. Yes a log was created, but nothing to do with the admin. Specifically: "PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/[login]/public_html/includes/classes/class.StringHelper.php on line 68:
  3. Yes it was enabled.

Hopefully that is enough information to find help. Regards.

22 Oct 2018, 4:30 PM
#2307
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

creyesx6:

There is no panic. This is a temporary domain that I use. My hope is to get this working if not, I will simply remove it and move on to something that works for me. However, I would like to get it working. To answer your questions.

  1. There was not a pre-existing database. I added a couple of dummy products to test. No luck of course.
  2. Yes a log was created, but nothing to do with the admin. Specifically: "PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/[login]/public_html/includes/classes/class.StringHelper.php on line 68:
  3. Yes it was enabled.

Hopefully that is enough information to find help. Regards.
It's a start. Could you please provide the content of line 68 from includes/classes/class.StringHelper.php?

What was the source of the fileset installed and if it exists, what version?

22 Oct 2018, 5:09 PM
#2308
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

line 68
public function setDefaultCharset($charset): void

CEON URI Mapping 4.5.5. downloaded from the plugins. I am using 1.5.5f. I think that is what you are asking for.

Thanks for your time.

22 Oct 2018, 5:29 PM
#2309
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I sincerely appreciate your time and for looking into this for me. However, I have decided to move on to a different option. Thanks for contributing to this free plugin. I was privileged enough to have worked with Conor before his passing and I appreciate all his great work as well.

22 Oct 2018, 5:50 PM
#2310
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

creyesx6:

line 68
public function setDefaultCharset($charset): void

CEON URI Mapping 4.5.5. downloaded from the plugins. I am using 1.5.5f. I think that is what you are asking for.

Thanks for your time.
Unfortunately as stated in recent pages, the code was updated to work in the php 7.x environment with no regard of the design specifications of ZC 1.5.5 which means the site on which this was installed would need to be at php 7.0 or better. Because the site is not at php 7.0 or better, the use of return type declaration as provided in that line of code would cause an error as seen.

31 Oct 2018, 8:21 PM
#2311
boxcar avatar

boxcar

New Zenner

Join Date:
Jun 2007
Posts:
47
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

mc12345678:

the code was updated to work in the php 7.x environment

Can I get clarification? Are you saying that BOTH Ceon URI Mapping Version: 4.5.3 (or better) and TORVISTA version on GitHub require PHP 7.x?

31 Oct 2018, 8:48 PM
#2312
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

boxcar:

Can I get clarification? Are you saying that BOTH Ceon URI Mapping Version: 4.5.3 (or better) and TORVISTA version on GitHub require PHP 7.x?

I have not seen that torvista's version required php 7.x. It supports it. The current downloadable version from this site requires php 7.x because of how some coding styles have been changed which only exist in php 7.x+.

1 Nov 2018, 11:24 AM
#2313
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Ceon URI Mapping v4.x

My version on Github is purely bug fixes/fixes to run on 7.1, since I had to do that for my site and wanted to keep Conor's code going.
Those fixes are detailed in the docs.
The code is not modified to update the installation checks.

The version recently uploaded to the plugins I have never looked at.

12 Nov 2018, 11:06 PM
#2314
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

all of a sudden CEON URI isn't working on my site for most pages. http://www.swordsofhonor.com/##############-medieval-weapons. some pages resolve but most subpages give a page not found. is there a way to regenerate all the URL's at once? or some fix? i updated the htaccess file per Installation Check rewrite rules but still doesn't work. added a / before index.php in these rules and still didn't work. Got this error message when i did an Installation Check:

Error Found!

A problem was found with one of the core files that needs to be modified for Ceon URI Mapping to work optimally.

The error should be fixed as soon as possible. In the meantime though, since the store's configure files have been checked and found to be valid, information about the example rewrite rule for the store was able to built.

Example Rewrite Rule

Modified Core Files Check
A file requires 2 modifications to be made for it, the first of which has been made, but the second modification is missing.

The path to the file is /home/xxxxx/public_html/fakeadmin/includes/modules/product_free_shipping/collect_info.php

Check the file and remove any old pieces of code. Then apply modification number 2, which was missed out, but which is required for this version of the software.
Alternatively, if the file has not been modified for the store yet, back up the file (e.g. copy it to your local computer), and replace it with the pre-modified sample file from the distribution, for the version of Zen Cart being used by the store.

i need to fix this ASAP as most indexed pages are not showing up.

12 Nov 2018, 11:10 PM
#2315
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

What is the entirety of the htaccess file? (hide the admin folder name as 'admin' where necessary.)
What php version?
When installed?
What has changed recently?

12 Nov 2018, 11:21 PM
#2316
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

mc12345678:

What is the entirety of the htaccess file? (hide the admin folder name as 'admin' where necessary.)
What php version?
When installed?
What has changed recently?

What is the entirety of the htaccess file? (hide the admin folder name as 'admin' where necessary.)

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)$ [NC]

Don't rewrite any URIs for some specific file format extensions,

which are not covered by main file extension condition above

Uncomment the following line to apply this condition! (Remove the # at the start of the next line)

#RewriteCond %{REQUEST_URI} !.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/fakeadmin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite highlandrags.com directory

RewriteCond %{REQUEST_URI} !^/highlandrags.com/ [NC]

Don't rewrite tempEP directory

RewriteCond %{REQUEST_URI} !^/tempEP/ [NC]

Don't rewrite trademark directory

RewriteCond %{REQUEST_URI} !^/trademark/ [NC]

Don't rewrite sitemap directory

RewriteCond %{REQUEST_URI} !^/sitemap/ [NC]

Don't rewrite logs directory

RewriteCond %{REQUEST_URI} !^/logs/ [NC]

Don't rewrite banners directory

RewriteCond %{REQUEST_URI} !^/banners/ [NC]

Don't rewrite medievalclothing directory

RewriteCond %{REQUEST_URI} !^/medievalclothing/ [NC]

Don't rewrite tmp directory

RewriteCond %{REQUEST_URI} !^/tmp/ [NC]

Don't rewrite feedplatform directory

RewriteCond %{REQUEST_URI} !^/feedplatform/ [NC]

Don't rewrite .well-known directory

RewriteCond %{REQUEST_URI} !^/.well-known/ [NC]

Don't rewrite highland-blog directory

RewriteCond %{REQUEST_URI} !^/highland-blog/ [NC]

Don't rewrite cgi-bin directory

RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]

Don't rewrite swords-blog directory

RewriteCond %{REQUEST_URI} !^/swords-blog/ [NC]

Don't rewrite contact-files directory

RewriteCond %{REQUEST_URI} !^/contact-files/ [NC]

Don't rewrite feed directory

RewriteCond %{REQUEST_URI} !^/feed/ [NC]

Don't rewrite m directory

RewriteCond %{REQUEST_URI} !^/m/ [NC]

Don't rewrite mailhive directory

RewriteCond %{REQUEST_URI} !^/mailhive/ [NC]

Don't rewrite bmz_cache directory

RewriteCond %{REQUEST_URI} !^/bmz_cache/ [NC]

Don't rewrite google-feed-file directory

RewriteCond %{REQUEST_URI} !^/google-feed-file/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

php -- BEGIN cPanel-generated handler, do not edit

Set the “ea-php54” package as the default “PHP” programming language.

<IfModule mime_module> AddType application/x-httpd-ea-php54 .php .php5 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit

What php version?
now it is 5.4 but last week was upgraded to 7.2 and i thought that might be the problem so i reverted back to 5.4

When installed?
the site has been running for 20 years now and CEON was installed many years ago.

What has changed recently?
PHP updated to 7.2 and then back to 5.4. the admin section was bringing up a blank page yesterday and i commented out the htaccess file and the admin section came up but the URL's now aren't mapping to the custom names from CEON.

12 Nov 2018, 11:30 PM
#2317
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

Looking at site operation, it looks like the rule to govern redirecting for .html is the one in question. The categories work fine.

12 Nov 2018, 11:37 PM
#2318
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

Looks like need to modify the rule from:

RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$

To:

RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR] 
RewriteCond %{REQUEST_URI} \.(html)$ [NC]
12 Nov 2018, 11:52 PM
#2319
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

mc12345678:

Looks like need to modify the rule from:

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,5}$

> 
> To:
> ```
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR] 
RewriteCond %{REQUEST_URI} \.(html)$ [NC]

wow, you are good.. thanks so very much.. wish i knew how to read htaccess code.. how did you know it was the the rule for HTML

12 Nov 2018, 11:53 PM
#2320
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

Looks to be fixed. As to php version, if you do go ahead and bump up to 7.2 again, though you will likely have issue with the ZC software as ZC 1.5.5f isn't 7.2 compatible would suggest either of the two versions of this plugin that have been "issued", though haven't looked at what is done with the database when the "tell-a-friend" portion is addressed in the version downloadable from this site.

If it removes the existing entries from the database, then that would cause page not found responses that may have otherwise been handled by the software.