Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2019
    Location
    UK
    Posts
    70
    Plugin Contributions
    0

    Default Problematic error log

    Can anyone tell me what this error log message is please:

    [08-Dec-2018 11:36:02 Europe/London] PHP Warning: constant(): Couldn't find constant in /home/sites/digi-books.org.uk/public_html/db_library/DB_Console/includes/functions/admin_access.php on line 38

    We have had over 151,000 of these swamping our servers which I am really struggling to delete.

    Thanks

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Problematic error log

    Quote Originally Posted by OwenB View Post
    Can anyone tell me what this error log message is please:

    [08-Dec-2018 11:36:02 Europe/London] PHP Warning: constant(): Couldn't find constant in /home/sites/digi-books.org.uk/public_html/db_library/DB_Console/includes/functions/admin_access.php on line 38

    We have had over 151,000 of these swamping our servers which I am really struggling to delete.

    Thanks
    Usually you can delete the logs in one or two clicks using the host cPanel File Manager.


    Second, what version of php is your server running?
    Check Admin > Tools > Server/Version Info


    Third,
    this is 1.51:
    while (!$result->EOF) {
    if (constant($result->fields['main_page']) == $page && $result->fields['page_params'] == $page_params) {
    $retVal = TRUE;
    }

    and this is 1.56c:
    while (!$result->EOF) {
    if ($result->fields['main_page'] != '' && defined($result->fields['main_page']) && (constant($result->fields['main_page']) == $page || constant($result->fields['main_page']) . '.php' == $page) && $result->fields['page_params'] == $page_params) {
    $retVal = TRUE;
    }

    There's been a few changes to that file... now is always a good time to upgrade the site :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  3. #3
    Join Date
    Oct 2019
    Location
    UK
    Posts
    70
    Plugin Contributions
    0

    Default Re: Problematic error log

    Currently using PHP version 5.6

  4. #4
    Join Date
    Oct 2019
    Location
    UK
    Posts
    70
    Plugin Contributions
    0

    Default Re: Problematic error log

    And sorry where do I find error log deletion in the admin console please?

  5. #5
    Join Date
    Oct 2019
    Location
    UK
    Posts
    70
    Plugin Contributions
    0

    Default Re: Problematic error log

    OK found how to purge the logs. Just looking now to stop it repeating

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Problematic error log

    Be sure that in your log "purging" that you have left behind the applicable files to maintain security (which basically are the files that are provided in that folder when a new install is applied.)

    As to eliminating the log generation, upgrading the Zen Cart version should help eliminate that issue, though it is somewhat curious why input is being provided that is causing the conflict/issue...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Oct 2019
    Location
    UK
    Posts
    70
    Plugin Contributions
    0

    Default Re: Problematic error log

    Quote Originally Posted by mc12345678 View Post
    Be sure that in your log "purging" that you have left behind the applicable files to maintain security (which basically are the files that are provided in that folder when a new install is applied.)

    As to eliminating the log generation, upgrading the Zen Cart version should help eliminate that issue, though it is somewhat curious why input is being provided that is causing the conflict/issue...
    Yes I am trying to figure out which process calls the routine to record an error. I have a cut-down version of the software in a team folder so that as they add books they can view the library without being constantly logged out. This system does not provide access to the admin part of the software therefore I can only assume that it is the end-user viewing of the data that is triggering the errors.

    In the team folder I found a further 18,000 error logs a lot of which were generated yesterday

 

 

Similar Threads

  1. Problematic Header menu
    By perfumbg in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jan 2011, 10:08 AM
  2. Problematic Paypal
    By Aphexangel in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Aug 2010, 09:39 AM
  3. shipping cost problematic
    By jekkil in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 27 Apr 2008, 06:51 PM
  4. Header display problematic in IE
    By Xaria in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Nov 2007, 04:57 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