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

Ceon URI Mapping v4.x

Views: 451,826

Results 2,241 to 2,260 of 2,454
11 May 2018, 7:40 AM
#2241
torvista avatar

torvista

Totally Zenned

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

Ceon URI Mapping v4.x

Exactly which php7?
TEXT_PRODUCTS_MERKMALE is not a CEON constant. If the page is dying when it can't find that, that is a pointer to the location of the problem or at least where it first goes pear-shaped.

11 May 2018, 3:32 PM
#2242
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Ceon URI Mapping v4.x

Check your log files to see what's going on.

11 May 2018, 9:11 PM
#2243
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

MERKMALE as Torvista states is definitely not Ceon URI related, I just searched the module fileset, nada.

15 May 2018, 8:33 PM
#2244
erica62 avatar

erica62

New Zenner

Join Date:
Feb 2014
Posts:
42
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Thanks guys. This is driving me nuts. Everything else works, with the exception of the product page under admin. It gets down to "Products Name:", displays it in the field to the right, and after that it's a dead page.

When my older mac would attempt to load the product, it would pause at this point of the page render to think about the balance of the page.

Do we know what pages get injected into products.php? BTW TEXT_PRODUCTS_MERKMALE is a value in /includes/languages/english/product.php.

15 May 2018, 9:06 PM
#2245
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

A screenshot may help, and surely there are debug logs to go with this?

15 May 2018, 9:49 PM
#2246
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Ceon URI Mapping v4.x

Also, list your other modules, TEXT_PRODUCTS_MERKMALE is not part of the default code. And the logs will tell you what is throwing an error. I do not believe the issue is related to this module and once you have looked at the log file you might be able to identify what add-on code has created the break.

24 May 2018, 6:32 AM
#2247
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I too am having a problem with this. When editing an existing product or entering a new product the page doesn't load fully and reads "TEXT_PRODUCTS_MERKMALE"

"MERKMALE" is located in ADMIN/includes/modules/product/collect_info.php

If I replace the supplied ceon uri mapping collect_info.php with the original collect_info.php the page loads fine again.

This is what is recorded in the error log: > PHP Fatal error: Uncaught Error: Call to undefined function zen_get_products_merkmale() in C:\xampp\htdocs\zencart155f\ADMIN\includes\modules\product\collect_info.php:329

Stack trace:
#0 C:\xampp\htdocs\zencart155f\ADMIN\product.php(137): require()
#1 {main} thrown in C:\xampp\htdocs\zencart155f\ADMIN\includes\modules\product\collect_info.php on line 329

24 May 2018, 11:20 AM
#2248
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Mystery??:

I too am having a problem with this. When editing an existing product or entering a new product the page doesn't load fully and reads "TEXT_PRODUCTS_MERKMALE"

"MERKMALE" is located in ADMIN/includes/modules/product/collect_info.php

If I replace the supplied ceon uri mapping collect_info.php with the original collect_info.php the page loads fine again.

This is what is recorded in the error log:

That is an indication that a function is missing from the load sequence in the admin and as previously stated is not directly a Ceon URI Mapping issue. It is something that presents itself while trying to access the admin product page.

24 May 2018, 4:41 PM
#2249
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: Ceon URI Mapping v4.x

There is a leftover of unsuitable code in YOURADMIN/includes/modules/product/collect_info.php
This version was previously written for the German Zen Cart version and I forgot to remove this:

around line 324

<?php
    for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
          <tr>
            <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_MERKMALE; ?></td>
            <td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_merkmale[' . $languages[$i]['id'] . ']', (isset($products_merkmale[$languages[$i]['id']]) ? htmlspecialchars(stripslashes($products_merkmale[$languages[$i]['id']]), ENT_COMPAT, CHARSET, TRUE) : htmlspecialchars(zen_get_products_merkmale($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_merkmale')); ?></td>
          </tr>
<?php
    }
?>

Remove this code and everything will be fine. Sorry for the inconvenience, just submitted a new version with this change to the download section.
The corrected file is attached as well.

24 May 2018, 5:07 PM
#2250
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Yes! That fixes it. Thanks very much webchills! I thought Merkmale was German. I even changed all the instances of 'merkmale' to 'categories' but it obviously didn't work.

31 May 2018, 11:01 AM
#2251
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
37
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I have installed Ceon URI Mapping ver 4.5.3 in ZC ver 1.5.5f over PHP 7.0
In admin EZpages, entering a new or updating a page there are defined variables TEXT_ALT_PAGE_KEY and TEXT_ALT_PAGE_KEY_EXPLAIN. However I cannot find the define statements for these (I have checked earlier versions of URI Mapping and also ZC and they do not show in ezpages.php). The code is in MODIFIED CORE FILES/admin/ezpages.php from line 480:

            <td class="main" valign="top"><?php echo TEXT_ALT_PAGE_KEY; ?></td>
            <td class="main" valign="top"><?php echo zen_draw_input_field('page_key', $ezInfo->page_key, 'size="100"');
             			   echo '<br />' . TEXT_ALT_PAGE_KEY_EXPLAIN;
            		?></td>
          </tr>
<?php // BEGIN CEON URI MAPPING 4 of 4
    echo $ceon_uri_mapping_admin->buildEZPageURIMappingFields();
// END CEON URI MAPPING 4 of 4 ?>

Any ideas what this is please?

31 May 2018, 11:16 AM
#2252
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Ceon URI Mapping v4.x

cheddars:

I have installed Ceon URI Mapping ver 4.5.3 in ZC ver 1.5.5f over PHP 7.0
In admin EZpages, entering a new or updating a page there are defined variables TEXT_ALT_PAGE_KEY and TEXT_ALT_PAGE_KEY_EXPLAIN. However I cannot find the define statements for these (I have checked earlier versions of URI Mapping and also ZC and they do not show in ezpages.php). The code is in MODIFIED CORE FILES/admin/ezpages.php from line 480:

        <td class="main" valign="top"><?php echo TEXT_ALT_PAGE_KEY; ?></td>
        <td class="main" valign="top"><?php echo zen_draw_input_field('page_key', $ezInfo->page_key, 'size="100"');
         			   echo '<br />' . TEXT_ALT_PAGE_KEY_EXPLAIN;
        		?></td>
      </tr>
<?php // BEGIN CEON URI MAPPING 4 of 4 echo $ceon_uri_mapping_admin->buildEZPageURIMappingFields(); // END CEON URI MAPPING 4 of 4 ?>
> 
> Any ideas what this is please?
Based on that review, it would appear that the other "code" is additional left-over code from some other installation that has been merged into the fileset provided to the Zen Cart site. Note that the files historically only include the additional content needed to implement the plugin as seen in the start/end comments. Anything outside of those comments that is different is generally not related to the plugin(s) originally issued by the late Conor Kerr of Ceon. Also note that there appears to be two sets of the 4.5.3 version which is different between the two. Torvista has/had been maintaining files that are now different than what webchills has uploaded.
31 May 2018, 11:47 AM
#2253
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
37
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Yes this was in the latest update from webchills. The last update from Torvista is on Github and does not include any changes to ezpages.php.
I shall comment out the spurious lines for the time-being.
Many thanks for your help mc12345678

31 May 2018, 12:06 PM
#2254
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: Ceon URI Mapping v4.x

Just delete the following as it is not needed:

	            <tr>
            <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
          </tr>
          <tr>
            <td class="main" valign="top"><?php echo TEXT_ALT_PAGE_KEY; ?></td>
            <td class="main" valign="top"><?php echo zen_draw_input_field('page_key', $ezInfo->page_key, 'size="100"');
             			   echo '<br />' . TEXT_ALT_PAGE_KEY_EXPLAIN;
            		?></td>
          </tr>

It is coming from the German Zen Cart version which is in many ways different from the american version and I forgot to remove this section when porting the original German version over. This should be the last leftover code, the other one is in collect_info.php as described few posts above. All sections which are added or modified for CEON URI Mapping are always clearly commented.

31 May 2018, 12:13 PM
#2255
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Ceon URI Mapping v4.x

cheddars:

Yes this was in the latest update from webchills. The last update from Torvista is on Github and does not include any changes to ezpages.php.
I shall comment out the spurious lines for the time-being.
Many thanks for your help mc12345678
It does include changes, but the latest fileset needing changes in it appears to only have been ZC 1.5.5b (it appears that other changes to ZC since then have not affected the files applicable to operation of this plugin.) the associated modified admin files as at one time updated by Torvista to apply to at least ZC 1.5.5b can be seen here: https://github.com/torvista/CEON-URI-Mapping/tree/master/modified_core_files/1.5.5b/ADMIN_YOURS

16 Jun 2018, 3:31 PM
#2256
kavlito avatar

kavlito

New Zenner

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

Re: Ceon URI Mapping v4.x

I installed CEON URI Mapping 4.5.4 for Zen Cart 1.5.5 in a fresh test installation of 1.5.5f.

I ran the sql update successfully and verified the tables have been created.

I renamed my admin folders to zcadmin in both MODIFIED CORE FILES and NEW FILES and allowed overwrites where prompted.

I followed Step 4:

Log in to Zen Cart Administration and click on any menu item.
You should now have the new menu item CEON URI Mapping (SEO) Configuration under Modules.
Click on it, you should see success messages that the module has been successfully installed

However, when I click on the new menu item, I get a 'Page Isn't Working' error.

I even uploaded the files again just to be sure nothing happened while transferring the first time.

Any thoughts?

See attached screenshots.

Thanks.

[Attachment no longer available][Attachment no longer available][Attachment no longer available]

16 Jun 2018, 8:17 PM
#2257
kavlito avatar

kavlito

New Zenner

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

Re: Ceon URI Mapping v4.x

I checked my error logs and found this:

[16-Jun-2018 11:07:29 America/Chicago] PHP Parse error: syntax error, unexpected '?' in /admin/includes/classes/class.CeonURIMappingInstallOrUpgrade.php on line 463

I have no idea what to do.

461 $fallback_defines = array(
	462		'product_reviews' =>
        463        $default_uri_parts[$default_language_code]['product_reviews'] ?? $default_uri_parts['en']['product_reviews'] ?? 'Reviews',
	464		'product_reviews_info' =>
        465        $default_uri_parts[$default_language_code]['product_reviews_info'] ?? $default_uri_parts['en']['product_reviews_info'] ?? 'Review',
	466		'product_reviews_write' =>
        467        $default_uri_parts[$default_language_code]['product_reviews_write'] ?? $default_uri_parts['en']['product_reviews_write'] ?? 'Write a Review'
16 Jun 2018, 8:28 PM
#2258
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: Ceon URI Mapping v4.x

kavlito:

I checked my error logs and found this:
[16-Jun-2018 11:07:29 America/Chicago] PHP Parse error: syntax error, unexpected '?' in /admin/includes/classes/class.CeonURIMappingInstallOrUpgrade.php on line 463
I have no idea what to do.
Change this section to:

$fallback_defines = array(
			'product_reviews' =>
				isset($default_uri_parts[$default_language_code]['product_reviews']) ?
				$default_uri_parts[$default_language_code]['product_reviews'] :
				isset($default_uri_parts['en']['product_reviews']) ?
				$default_uri_parts['en']['product_reviews'] : 'Reviews',
			'product_reviews_info' =>
				isset($default_uri_parts[$default_language_code]['product_reviews_info']) ?
				$default_uri_parts[$default_language_code]['product_reviews_info'] :
				isset($default_uri_parts['en']['product_reviews_info']) ?
				$default_uri_parts['en']['product_reviews_info'] : 'Review',
			'product_reviews_write' =>
				isset($default_uri_parts[$default_language_code]['product_reviews_write']) ?
				$default_uri_parts[$default_language_code]['product_reviews_write'] :
				isset($default_uri_parts['en']['product_reviews_write']) ?
				$default_uri_parts['en']['product_reviews_write'] : 'Write a Review'
			);
6 Aug 2018, 8:23 AM
#2259
luckystu avatar

luckystu

New Zenner

Join Date:
Oct 2013
Posts:
18
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi there,

We've been using ZC 1.51 with Ceon URI Mapping 4.4.1 for several years, has worked perfectly for us. We wanted to add a new category with new products and decided to "recycle" an existing category on our site that is no longer needed. So we just re-named the old category with the new category name - and then followed suit with product names in that category. We've actually done this before with no issues.

This time however, looks like the old, original URL's (before being recycled) have memory - so even though we update to a new URL for a new product, there are appended characters like "?cpath=100" at the end of the new URL. Since there's no reason for this to be there, looks like the URL is retaining something from its past even after being recycled.

We ended up deleting the new products and the new category created - and just build the new category and products fresh without recycling. But now, it won't give us the new category name we originally wanted - even though that category and products were deleted. An error message states the category already exists and there's a mapping conflict - despite category and products already deleted.

After going through sections of this thread and no clear solution, decided to try finding the category name in the database, to delete, so we can use it and just add the new category and new products, but the category name is nowhere to be found in the Ceon URI section of the db. In fact, the db doesn't show any recent activity of URLs being created.

Would be grateful if anyone has a solution to this problem, many thanks!

6 Aug 2018, 9:34 AM
#2260
luckystu avatar

luckystu

New Zenner

Join Date:
Oct 2013
Posts:
18
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi there,

We've been using ZC 1.51 with Ceon URI Mapping 4.4.1 for several years, has worked perfectly for us. We wanted to add a new category with new products and decided to "recycle" an existing category on our site that is no longer needed. So we just re-named the old category with the new category name - and then followed suit with product names in that category. We've actually done this before and worked fine.

This time however, looks like the old, original URLs (before being recycled) have memory - so even though we update to a new URL for a new product, there are appended characters like "?cpath=100" at the end of the new URL. Since there's no reason for this to be there, looks like the URL is retaining something from its past even after being recycled.

We ended up deleting the new products and the new category created - and just build the new category and products fresh without recycling. But now, it won't give us the new category name we originally wanted - even though that category and products were deleted. An error message states the category already exists and there's a mapping conflict - despite category and products already deleted.

After going through sections of this thread and no clear solution, decided to try finding the category name in the database, to delete, so we can use it and just add the new category and new products, but the category name is nowhere to be found in the Ceon URI section of the db. In fact, the db doesn't show any recent activity of URLs being created.

Would be grateful if anyone has a solution to this problem, many thanks!