Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default METATAGS_DIVIDER - is there a issue on PHP Version: 5.6.15 (Zend: 2.6.0) ?

    This is not working for me at modules/meta_tags.php

    if (!defined('METATAGS_DIVIDER')) define('METATAGS_DIVIDER', ', ');

    No comma is added to the keywords . Only way I can do this is to replace the METATAGS_DIVIDER with ', ' at :

    while (!$keywords_metatags->EOF) {
    $keywords_string_metatags .= zen_clean_html($keywords_metatags->fields['categories_name']) .', ';
    $keywords_metatags->MoveNext();
    }

    Not sure is this is related to the php version... and in fact I can live quite well changing this, but just for curiosity .... I wonder

    Tahnks.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: METATAGS_DIVIDER - is there a issue on PHP Version: 5.6.15 (Zend: 2.6.0) ?

    That's because the constant META_TAGS_DIVIDER has already been defined ... by the previous loading of /includes/languages/english{/YOUR_TEMPLATE}/meta_tags.php.

  3. #3
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: METATAGS_DIVIDER - is there a issue on PHP Version: 5.6.15 (Zend: 2.6.0) ?

    Thanks
    If check both files, the default languages/LANG/meta_tags and the "overwritten" file, and both of them the
    define('METATAGS_DIVIDER', ' ');

    is just a space.

    the define('TERTIARY_SECTION', ', '); is a comma.
    So I guess I have to change the keywords separator to this one.

    Thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  4. #4
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: METATAGS_DIVIDER - is there a issue on PHP Version: 5.6.15 (Zend: 2.6.0) ?

    Quote Originally Posted by mesnitu View Post
    Thanks
    If check both files, the default languages/LANG/meta_tags and the "overwritten" file, and both of them the
    define('METATAGS_DIVIDER', ' ');

    is just a space.

    the define('TERTIARY_SECTION', ', '); is a comma.
    So I guess I have to change the keywords separator to this one.

    Thanks
    mesnitu, I know you like to do some things the hard way, but if you change the divider from META_TAGS_DIVIDER to TERTIARY_SECTION then when you later decide to change the value of TERTIARY_SECTION because it is not what you want, you will find (if you look) that now your original problem (using a space instead of a comma) is now a new problem and using whatever TERTIARY_SECTION was changed to...

    META_TAGS_DIVIDER as just pointed out is first defined in the language files and then made sure to be defined in the current module file so that at least everything doesn't get squished together.

    It would be advisable instead to just define METATAGS_DIVIDER in the applicable language(s) and template override(s) to fit your needs..
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: METATAGS_DIVIDER - is there a issue on PHP Version: 5.6.15 (Zend: 2.6.0) ?

    Quote Originally Posted by mc12345678 View Post
    mesnitu, I know you like to do some things the hard way
    Yeap, the story of my life !

    ok, thanks for the advice. I've never even notice that the META_TAGS_DIVIDER was define to be a empty space. Makes no sense to me to be use for a keyword divider.
    Got to check all this. All I need it's commas in the keywords.
    But now it's very hot, and my brain hurts as monthy python said.

    Thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

 

 

Similar Threads

  1. v151 smtpauth and PHP Version: 5.2.17 (Zend: 2.2.0) issues
    By mydanilo in forum General Questions
    Replies: 6
    Last Post: 30 Jul 2014, 05:20 PM
  2. v139h Zend Optimizer and a PHP 5.2 upgrade to 5.3 = White screen.
    By Fez-o Joe in forum Installing on a Windows Server
    Replies: 2
    Last Post: 30 Aug 2012, 08:50 PM
  3. v139d PHP Fatal error: Internal Zend error - Missing class information
    By badarac in forum General Questions
    Replies: 3
    Last Post: 1 May 2012, 01:33 PM
  4. Please clarify 1.39h php version issue
    By edadk in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 31 Oct 2010, 02:58 PM
  5. Admin Login Issue - 1.3.7.1 and old version of PHP: 4.3.2
    By thehighlandsgroup in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 2 Apr 2008, 01:35 AM

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