Page 198 of 245 FirstFirst ... 98148188196197198199200208 ... LastLast
Results 1,971 to 1,980 of 2445
  1. #1971
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    I think you're overthinking things. :)

    Main_page is the content that follows the url parameter main_page=

    So, for /index.php?main_page=page_2, main_page field is page_2. For the associated_db_id, there is no "unique" value that is associated so it should remain blank. This value is used to target a specific type of "item" for which the URI rewriter is to apply "conversion" a products_id, a category, an ez-page, or a manufacturer. These "items" all have a unique id and that is the associated_db_id.

    So depending on your condition/desire, the above example could be entered as:
    Uri=/page-2, language=1, current_uri=1, and main_page=page_2
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #1972
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Thank you so much. That worked a treat! The only problem I have now, is when I switch between the languages (Welsh and English in my case) as there isn't an associated_db_id it just goes back to the homepage. This isn't a problem with the product pages etc. Is there a way of rectifying this? Thanks so much for your help.

    Name:  db2.jpg
Views: 169
Size:  10.6 KB

  3. #1973
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    See that field for language? Need to look at either of two things (or more) in your admin where you can add/modify languages (localities I think it is?) the language id associated with your other language (more than likely 2) is to be used for the matching url for that language.

    The other "source" would be to inspect the ceon_uri_mappings table for the number(s) related to working alternate language product.

    Keep in mind in all of this that only one of the potential many uri's with a matching language and other matching fields can be the current_uri... All the others are well... not current. :)

    You may also need to add parameters to the definition (force the entered uri to change the site to the other language.)
    Last edited by mc12345678; 28 Apr 2016 at 04:59 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #1974
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    Change required for ZC155.

    In ZC155 this section was added in /common/html_header.php.
    <?php
    // BOF hreflang for multilingual sites
    if (!isset($lng) || (isset($lng) && !is_object($lng))) {
    $lng = new language;
    }
    reset($lng->catalog_languages);
    while (list($key, $value) = each($lng->catalog_languages)) {
    if ($value['id'] == $_SESSION['languages_id']) continue;
    echo '<link rel="alternate" href="' . ($this_is_home_page ? zen_href_link(FILENAME_DEFAULT, 'language=' . $key, $request_type) : $canonicalLink . '&amp;language=' . $key) . '" hreflang="' . $key . '" />' . "\n";
    }
    // EOF hreflang for multilingual sites
    ?>
    Ceon URI Mapping produces canonical links with no ?parameters:
    <link rel="canonical" href="http://blah-blah.....aballetes/rg-padd-front-bk-caballete-delantero" />
    so the additional &language needs to be ?language (or it becomes an invalid link that gives page not found).

    I did this:
    PHP Code:
    <?php //steve bof CEON uri mapping
    //CEON uri mapping produces a CANONICAL link with no ?parameters so '&amp;language=' gets a page not found: need to change separator
    $alternateSeparator = ( !isset($ceon_uri_mapping_canonical_uri) ? '&amp;' '?' );
    ?>
    <?php
      
    // BOF hreflang for multilingual sites
      
    if (!isset($lng) || (isset($lng) && !is_object($lng))) {
        
    $lng = new language;
      }
      
    reset($lng->catalog_languages);
      while (list(
    $key$value) = each($lng->catalog_languages)) {
        if (
    $value['id'] == $_SESSION['languages_id']) continue;
        echo 
    '<link rel="alternate" href="' . ($this_is_home_page zen_href_link(FILENAME_DEFAULT'language=' $key$request_type) : $canonicalLink $alternateSeparator 'language=' $key) . '" hreflang="' $key '" />' "\n";//steve changed &amp; for a variable separator
      
    }
      
    // EOF hreflang for multilingual sites
     //steve eof CEON uri mapping
     
    ?>
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  5. #1975
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    For people having problems with logins not working and going straight to "Your Shopping cart is Empty" page, especially on a LOCAL server, this thread should be looked at:
    https://www.zen-cart.com/showthread....46#post1310146
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #1976
    Join Date
    Nov 2011
    Posts
    32
    Plugin Contributions
    3

    Default Re: Ceon URI Mapping v4.x

    Website www.onlinesurgicals.com/store/ stopped working after upgrade to VPS with Bluehost. I just get a blank page.

    The debugging file in cache folder showed the following.

    [10-May-2016 22:13:30 America/Denver] PHP Strict Standards: Declaration of CeonURIMappingHandler::_handleHistoricalURIWithNoCurrentMapping() should be compatible with CeonURIMappingHandlerBase::_handleHistoricalURIWithNoCurrentMapping() in /home/hlcindia/public_html/onlinesurgicals/store/includes/classes/class.CeonURIMappingHandler.php on line 41
    [10-May-2016 22:13:30 America/Denver] PHP Strict Standards: Declaration of CeonURIMappingHandler::_handleUnmappedURI() should be compatible with CeonURIMappingHandlerBase::_handleUnmappedURI() in /home/hlcindia/public_html/onlinesurgicals/store/includes/classes/class.CeonURIMappingHandler.php on line 41

    However the mobile version of site is working fine in mobiles.

    .htaccess file has the rewrite rules as per the codes shown in Ceon URI mapping installation check page within Zencart admin.

    I am using zencart version 1.3.9h and fortunately, ZC admin interface is working well in both desktop and mobile.

    Please help and treat this very urgent as desktop site is getting significant traffic.
    Gopinath Goswami
    OnlineSurgicals.com

  7. #1977
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by gopinathgoswami View Post
    Website stopped working after upgrade to VPS with Bluehost. I just get a blank page.

    The debugging file in cache folder showed the following.

    [10-May-2016 22:13:30 America/Denver] PHP Strict Standards: Declaration of CeonURIMappingHandler::_handleHistoricalURIWithNoCurrentMapping() should be compatible with CeonURIMappingHandlerBase::_handleHistoricalURIWithNoCurrentMapping() in /home/hlcindia/public_html/onlinesurgicals/store/includes/classes/class.CeonURIMappingHandler.php on line 41
    [10-May-2016 22:13:30 America/Denver] PHP Strict Standards: Declaration of CeonURIMappingHandler::_handleUnmappedURI() should be compatible with CeonURIMappingHandlerBase::_handleUnmappedURI() in /home/hlcindia/public_html/onlinesurgicals/store/includes/classes/class.CeonURIMappingHandler.php on line 41
    Evidently you PHP is complaining about violation of Strict Standards. That's likely a result of using old PHP code on a newer version of PHP (newer PHP versions are increasingly more strict about clean code).

    Your v1.3.9 site is using PHP code written and released in 2010. That's 6 years ago. And lots of PHP versions ago.

    So, I guess you have two options:
    a) downgrade PHP to an older version compatible with your old site
    b) upgrade your site and plugins to be compatible with your newer PHP version

    Or if you can find the new maintainers of the Ceon code online you might purchase a support contract from them to have them adjust the code to work for your site.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #1978
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    So, I guess you have two options:
    a) downgrade PHP to an older version compatible with your old site
    b) upgrade your site and plugins to be compatible with your newer PHP version
    I've just forced this issue and yes, with E_STRICT reporting, when CEON URI has to generate a new uri automatically when someone visits a product with no URI defined, a pile of errors are reported while it generates one (it still works ok).

    Fortunately (for you) I am currently fixing stuff like this on my site for PHP7 so I'll look into it.

    Your immediate stop-gap solution would be to remove E_STRICT error reporting or downgrade php.
    I would guess this has just started since your host upgraded to php 5.4:
    http://php.net/manual/en/function.error-reporting.php
    5.4.0 E_STRICT became part of E_ALL.
    followed immediately by a site upgrade or you are just hiding the problems and putting off the inevitable.

    It's "funny" that no-one ever has time to upgrade their site but somehow they find that time when it breaks. Be prepared.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  9. #1979
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    I don't find the same error as you. I have fixed all my E_STRICT error messages related to this mod.

    Look in the two files referenced in the first error message for the function declaration.

    function _handleHistoricalURIWithNoCurrentMapping($main_page, $associated_db_id, $query_string_parameters)
    they should be using the same number of parameters. The error message implies they don't. Mine do.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  10. #1980
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    This is no longer valid advice. README has no information.

 

 

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