Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    application error PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    #1 require(/public_html/test/includes/modules/meta_tags.php) called at [/public_html/test/includes/templates/responsive_classic/common/html_header.php:25]
    #2 require(/public_html/test/includes/templates/responsive_classic/common/html_header.php) called at [/public_html/test/index.php:42]
    --> PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH - assumed 'MAX_META_TAG_DESCRIPTION_LENGTH' (this will throw an Error in a future version of PHP) in /public_html/test/includes/modules/meta_tags.php on line 278.

    Recently our server provider forced to upgrade PHP version to 7.2, so we have to upgrade our zc to newer version.

    I upgraded my database from 139 to 157. No plug-in is installed. When I clicked any links on my site, it will generate a new log file with the warning above. I searched this issue in forum but I found none...

    Please help. Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    What do you have in this setting?

    https://docs.zen-cart.com/user/admin...maximum_length

  3. #3
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    Default Re: PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    Name:  Capture.jpg
Views: 136
Size:  37.6 KB

    That is strange. I don't have that option under Product Info.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    Should be between the last two in your image.

  5. #5
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    Default Re: PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    Do you know how to correct it? I checked my 139 server, it doesn't have that option neither...

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    Looks like you might have gotten bitten by the date settings in your upgrade. Problems have arisen when the old date format is brought into the newer database.

    You might want to check out https://www.zen-cart.com/showthread....atetime-values

    Get the funky dates corrected then run the DB upgrade again.

  7. #7
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    Default Re: PHP Warning: Use of undefined constant MAX_META_TAG_DESCRIPTION_LENGTH

    Yes, I'm aware of your mentioned database clean code. I have run it once before I upgraded my database during the installation...

    It looks like this missing key is also in my 139 server, so it could be very very old issue...

    Thanks for your help.

 

 

Similar Threads

  1. Replies: 32
    Last Post: 6 Sep 2020, 09:03 PM
  2. PHP Warning: Use of undefined constant
    By keneso in forum General Questions
    Replies: 5
    Last Post: 24 Aug 2020, 03:48 PM
  3. Replies: 14
    Last Post: 7 Jan 2020, 08:21 PM
  4. v156 PHP Warning Use of undefined constant
    By ianhg in forum General Questions
    Replies: 6
    Last Post: 10 Oct 2019, 12:19 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