Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35
  1. #31
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: 1.5.6 > 1.5.7 define constants going crazy?

    After turning off sanitation and doing what Carl suggested, I logged into admin and was greeted by the DisplayLogs notice...same errors.

    Code:
    [29-Sep-2021 10:19:49 America/New_York] Request URI: /index.php?main_page=index, IP address: 192.168.1.14
    #1 require_once(/includes/languages/english/index.php) called at [/includes/modules/require_languages.php:29]
    #2 require(/includes/modules/require_languages.php) called at [/includes/modules/pages/index/header_php.php:123]
    #3 require(/includes/modules/pages/index/header_php.php) called at [/index.php:35]
    --> PHP Notice: Constant TEXT_MAIN already defined in /includes/languages/english/index.php on line 9.
    
    [29-Sep-2021 10:19:49 America/New_York] Request URI: /index.php?main_page=index, IP address: 192.168.1.14
    #1 require_once(/includes/languages/english/index.php) called at [/includes/modules/require_languages.php:29]
    #2 require(/includes/modules/require_languages.php) called at [/includes/modules/pages/index/header_php.php:123]
    #3 require(/includes/modules/pages/index/header_php.php) called at [/index.php:35]
    --> PHP Notice: Constant TEXT_GREETING_GUEST already defined in /includes/languages/english/index.php on line 13.
    
    [29-Sep-2021 10:19:49 America/New_York] Request URI: /index.php?main_page=index, IP address: 192.168.1.14
    #1 require_once(/includes/languages/english/index.php) called at [/includes/modules/require_languages.php:29]
    #2 require(/includes/modules/require_languages.php) called at [/includes/modules/pages/index/header_php.php:123]
    #3 require(/includes/modules/pages/index/header_php.php) called at [/index.php:35]
    --> PHP Notice: Constant TEXT_GREETING_PERSONAL already defined in /includes/languages/english/index.php on line 18.
    
    [29-Sep-2021 10:19:49 America/New_York] Request URI: /index.php?main_page=index, IP address: 192.168.1.14
    #1 require_once(/includes/languages/english/index.php) called at [/includes/modules/require_languages.php:29]
    #2 require(/includes/modules/require_languages.php) called at [/includes/modules/pages/index/header_php.php:123]
    #3 require(/includes/modules/pages/index/header_php.php) called at [/index.php:35]
    --> PHP Notice: Constant TEXT_INFORMATION already defined in /includes/languages/english/index.php on line 20.
    
    [29-Sep-2021 10:19:49 America/New_York] Request URI: /index.php?main_page=index, IP address: 192.168.1.14
    #1 require_once(/includes/languages/english/index.php) called at [/includes/modules/require_languages.php:29]
    #2 require(/includes/modules/require_languages.php) called at [/includes/modules/pages/index/header_php.php:123]
    #3 require(/includes/modules/pages/index/header_php.php) called at [/index.php:35]
    --> PHP Notice: Constant HEADING_TITLE already defined in /includes/languages/english/index.php on line 49.
    Admin opened to Layout settings, instead of home page with counters and graphs, and I never entered my plugin.

    Any ideas?

  2. #32
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: 1.5.6 > 1.5.7 define constants going crazy?

    I was resizing images this time when I got the error.

    Carl...Hey!!! did show up this time. Thanks for the tip.

    Code:
    [29-Sep-2021 15:38:46 America/New_York] Request URI: /index.php?main_page=index, IP address: 192.xxx.x.xx
    #1 trigger_error() called at [/includes/languages/english/index.php:9]
    #2 require_once(/includes/languages/english/index.php) called at [/includes/modules/require_languages.php:29]
    #3 require(/includes/modules/require_languages.php) called at [/includes/modules/pages/index/header_php.php:123]
    #4 require(/includes/modules/pages/index/header_php.php) called at [/index.php:35]
    --> PHP Notice: hey!!! in /includes/languages/english/index.php on line 9.
    If I am interpreting this correctly, index.php is indeed being called twice by zc files and not my plugin files.

    Is it a bug or do I need to keep troubleshooting my files?

    Thanks again.

  3. #33
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: 1.5.6 > 1.5.7 define constants going crazy?

    the real question is if hey!! showed up twice...

    if it only showed up once, that is not your problem.

    my hypothesis was that the file was getting loaded twice; if so, hey should be in the file twice. if it is not, then we can assume that the file is not getting loaded twice.

    we can then ascertain as to where the hey!! is in the file. if it is at the beginning of the file, that script gets loaded properly. and something after that load point will be defining those same vars. if it is in the middle of the file, then something before is loading it.

    debuggin the autoLoader is always a pain.

    there is a var in:

    includes/autoload_func.php

    called $debugAutoload; you can set that to true on your development machine and you will see the loader function output.... it may help...

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #34
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: 1.5.6 > 1.5.7 define constants going crazy?

    It did only show up once at the beginning.

    I will enable $debugAutoload in includes/autoload_func.php.

    Not sure what to look for...this popped up when I logged out after enabling debug.

    Code:
    Array ( [0] => Array ( [type] => require [filePath] => /var/www/jestcountry.com/includes/version.php [forceLoad] => ) [1] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/class.notifier.php [forceLoad] => ) [2] => Array ( [type] => class [object] => zco_notifier [class] => notifier ) [3] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/sniffer.php [forceLoad] => ) [4] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/shopping_cart.php [forceLoad] => ) [5] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/products.php [forceLoad] => ) [6] => Array ( [type] => include [filePath] => includes/classes/table_block.php [forceLoad] => ) [7] => Array ( [type] => include [filePath] => includes/classes/box.php [forceLoad] => ) [8] => Array ( [type] => include [filePath] => includes/classes/message_stack.php [forceLoad] => ) [9] => Array ( [type] => include [filePath] => includes/classes/split_page_results.php [forceLoad] => ) [10] => Array ( [type] => include [filePath] => includes/classes/object_info.php [forceLoad] => ) [11] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/class.phpmailer.php [forceLoad] => ) [12] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/upload.php [forceLoad] => ) [13] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/classes/class.zcPassword.php [forceLoad] => ) [14] => Array ( [type] => class [object] => zcPassword [class] => zcPassword ) [15] => Array ( [type] => include [filePath] => includes/classes/VersionServer.php [forceLoad] => ) [16] => Array ( [type] => include [filePath] => includes/classes/configurationValidation.php [forceLoad] => ) [17] => Array ( [type] => include [filePath] => includes/classes/WhosOnline.php [forceLoad] => ) [18] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/cHill-HRK-daRts/includes/classes/AdminNotifications.php [forceLoad] => ) [19] => Array ( [type] => include [filePath] => includes/classes/class.admin.zcObserverLogWriterDatabase.php [forceLoad] => ) [20] => Array ( [type] => include [filePath] => includes/classes/class.admin.zcObserverLogEventListener.php [forceLoad] => ) [21] => Array ( [type] => require [filePath] => includes/init_includes/init_db_config_read.php [forceLoad] => ) [22] => Array ( [type] => require [filePath] => includes/init_includes/init_report_all_errors_admin.php [forceLoad] => ) [23] => Array ( [type] => require [filePath] => includes/init_includes/init_gzip.php [forceLoad] => ) [24] => Array ( [type] => class [object] => sniffer [class] => sniffer ) [25] => Array ( [type] => class [object] => messageStack [class] => messageStack ) [26] => Array ( [type] => require [filePath] => includes/functions/admin_access.php [forceLoad] => ) [27] => Array ( [type] => require [filePath] => includes/functions/functions_help.php [forceLoad] => ) [28] => Array ( [type] => require [filePath] => /var/www/jestcountry.com/includes/functions/functions_osh_update.php [forceLoad] => ) [29] => Array ( [type] => require [filePath] => includes/init_includes/init_general_funcs.php [forceLoad] => ) [30] => Array ( [type] => require [filePath] => includes/init_includes/init_tlds.php [forceLoad] => ) [31] => Array ( [type] => require [filePath] => includes/init_includes/init_cache_key_check.php [forceLoad] => ) [32] => Array ( [type] => require [filePath] => includes/init_includes/init_sessions.php [forceLoad] => ) [33] => Array ( [type] => require [filePath] => includes/init_includes/init_languages.php [forceLoad] => ) [34] => Array ( [type] => class [object] => zcObserverLogWriterDatabase [class] => zcObserverLogWriterDatabase ) [35] => Array ( [type] => class [object] => zcObserverLogEventListener [class] => zcObserverLogEventListener ) [36] => Array ( [type] => require [filePath] => includes/init_includes/init_sanitize.php [forceLoad] => ) [37] => Array ( [type] => require [filePath] => includes/init_includes/init_templates.php [forceLoad] => ) [38] => Array ( [type] => class [object] => zc_products [class] => products ) [39] => Array ( [type] => require [filePath] => includes/functions/localization.php [forceLoad] => ) [40] => Array ( [type] => objectMethod [object] => messageStack [method] => add_from_session ) [41] => Array ( [type] => require [filePath] => includes/init_includes/init_special_funcs.php [forceLoad] => ) [42] => Array ( [type] => require [filePath] => includes/init_includes/init_category_path.php [forceLoad] => ) [43] => Array ( [type] => require [filePath] => includes/init_includes/init_admin_auth.php [forceLoad] => ) [44] => Array ( [type] => require [filePath] => /var/www/jestcountry.com/includes/functions/audience.php [forceLoad] => ) [45] => Array ( [type] => require [filePath] => includes/init_includes/init_admin_history.php [forceLoad] => ) [46] => Array ( [type] => class [object] => configurationValidation [class] => configurationValidation ) [47] => Array ( [type] => include [filePath] => /var/www/jestcountry.com/includes/init_includes/init_observers.php [forceLoad] => ) [48] => Array ( [type] => require [filePath] => includes/init_includes/init_html_editor.php [forceLoad] => ) [49] => Array ( [type] => require [filePath] => includes/init_includes/init_errors.php [forceLoad] => ) ) case "require_once": /var/www/jestcountry.com/includes/version.php
    case "include_once": /var/www/jestcountry.com/includes/classes/class.notifier.php
    case "class": notifier
    case "include_once": /var/www/jestcountry.com/includes/classes/sniffer.php
    case "include_once": /var/www/jestcountry.com/includes/classes/shopping_cart.php
    case "include_once": /var/www/jestcountry.com/includes/classes/products.php
    case "include_once": includes/classes/table_block.php
    case "include_once": includes/classes/box.php
    case "include_once": includes/classes/message_stack.php
    case "include_once": includes/classes/split_page_results.php
    case "include_once": includes/classes/object_info.php
    case "include_once": /var/www/jestcountry.com/includes/classes/class.phpmailer.php
    case "include_once": /var/www/jestcountry.com/includes/classes/upload.php
    case "include_once": /var/www/jestcountry.com/includes/classes/class.zcPassword.php
    case "class": zcPassword
    case "include_once": includes/classes/VersionServer.php
    case "include_once": includes/classes/configurationValidation.php
    case "include_once": includes/classes/WhosOnline.php
    case "include_once": /var/www/jestcountry.com/cHill-HRK-daRts/includes/classes/AdminNotifications.php
    case "include_once": includes/classes/class.admin.zcObserverLogWriterDatabase.php
    case "include_once": includes/classes/class.admin.zcObserverLogEventListener.php
    case "require_once": includes/init_includes/init_db_config_read.php
    case "require_once": includes/init_includes/init_report_all_errors_admin.php
    case "require_once": includes/init_includes/init_gzip.php
    case "class": sniffer
    case "class": messageStack
    case "require_once": includes/functions/admin_access.php
    case "require_once": includes/functions/functions_help.php
    case "require_once": /var/www/jestcountry.com/includes/functions/functions_osh_update.php
    case "require_once": includes/init_includes/init_general_funcs.php
    case "require_once": includes/init_includes/init_tlds.php
    case "require_once": includes/init_includes/init_cache_key_check.php
    case "require_once": includes/init_includes/init_sessions.php
    case "require_once": includes/init_includes/init_languages.php
    case "class": zcObserverLogWriterDatabase
    case "class": zcObserverLogEventListener
    case "require_once": includes/init_includes/init_sanitize.php
    case "require_once": includes/init_includes/init_templates.php
    case "class": products
    case "require_once": includes/functions/localization.php
    case "objectMethod": $entry['method']=add_from_session, $entry['object']=messageStack
    case "require_once": includes/init_includes/init_special_funcs.php
    case "require_once": includes/init_includes/init_category_path.php
    case "require_once": includes/init_includes/init_admin_auth.php
    Thanks.
    Last edited by mikeel100; 30 Sep 2021 at 12:02 AM. Reason: update

  5. #35
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: 1.5.6 > 1.5.7 define constants going crazy?

    I uninstalled DisplayLogs from admin/modules/plugin_manager and ran through download, clean, update, resize images, move products and switched to several other admin tools and settings WITHOUT any log errors.

    I will leave it uninstalled for a few days and see if the problem returns. If it does, I will report here...otherwise, consider it resolved.

    I had issues with the DisplayLogs plugin once before....it may need a second look.

    Thanks again.

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v153 Please Help Im Going Crazy!!
    By NinerFaithful in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 8 Nov 2015, 03:23 AM
  2. Dang site is going crazy
    By r1formetoo in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 4 May 2009, 10:49 PM
  3. Going Crazy - Please Help!
    By mkmcgrath23 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 9 Dec 2007, 12:38 AM
  4. Okay im going crazy
    By spjutulf in forum General Questions
    Replies: 10
    Last Post: 21 Jan 2007, 11:25 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