Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Location
    France
    Posts
    537
    Plugin Contributions
    7

    Default Constant already defined warnings being logged

    Site is ZC 1.5.7c
    Server is running PHP 8.0.8

    I upgraded from ZC 1.5.1 multi language site and noticed hundreds of 'Constant already defined' warnings.


    I tested a clean install of ZC 1.5.7c with no other modifications and even that throws three warnings.

    PHP Warning: Constant TABLE_HEADING_PRIVACY_CONDITIONS already defined in /Users/steph/Sites/localhost/senapos/includes/languages/english/login.php on line 31.

    PHP Warning: Constant TEXT_PRIVACY_CONDITIONS_DESCRIPTION already defined in /Users/steph/Sites/localhost/senapos/includes/languages/english/login.php on line 32.

    PHP Warning: Constant TEXT_PRIVACY_CONDITIONS_CONFIRM already defined in /Users/steph/Sites/localhost/senapos/includes/languages/english/login.php on line 33.

    Is the only solution to go through every single warning and comment out the duplicated define?

    I thought 1.5.7 was supposed to be compatible with PHP 8.x.x

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,831
    Plugin Contributions
    118

    Default Re: Constant already defined warnings being logged

    Turn off warnings if you need to do this kind of testing.
    For a live site you should be using PHP 7.4.
    1.5.7c runs without errors but not without warnings in PHP 8.0.
    I know the documentation needs to be updated.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Constant already defined warnings being logged

    Can "turn off" these warnings by adjusting the configuration->logging settings to ignore duplicate definitions for both the catalog and the admin.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,831
    Plugin Contributions
    118

    Default Re: Constant already defined warnings being logged

    This is a much better explanation. Thank you.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 27 Dec 2019, 07:48 PM
  2. v152 Constant OFFICE_IP_TO_HOST_ADDRESS already set ...
    By lat9 in forum Bug Reports
    Replies: 1
    Last Post: 12 Dec 2013, 12:10 AM
  3. Replies: 0
    Last Post: 10 May 2013, 04:11 PM
  4. Replies: 2
    Last Post: 31 Aug 2010, 01:32 AM
  5. Constant already defined
    By David Allen in forum General Questions
    Replies: 3
    Last Post: 16 Apr 2008, 03:56 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