Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Massive error_log File!

    I am getting this php error on every single page load of my website:
    [06-Dec-2012 17:48:47 UTC] PHP Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

    I have searched for the term 'magic' in developers tool kit and the only file that would be called on every page load is:

    includes/application_top.php

    Line #91 : * turn off magic-quotes support, for both runtime and sybase, as both will cause problems if enabled
    Line #93 : if (version_compare(PHP_VERSION, 5.3, '<') && function_exists('set_magic_quotes_runtime')) set_magic_quotes_runtime(0);
    Line #94 : if (@ini_get('magic_quotes_sybase') != 0) @ini_set('magic_quotes_sybase', 0);

    Can anyone help me on this? only just noticed it and got logs that date back to April 2012 with a error file at 4Gig!

    Cheers
    Phil
    Phil Rogers
    A problem shared is a problem solved.

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

  3. #3
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Massive error_log File!

    Quote Originally Posted by haredo View Post
    A similar post to read about the same problem ..

    Yes I saw that but there was no further response.

    I have also noticed in:
    includes/classes/class.phpmailer.php
    this:
    Line #1107 : $magic_quotes = get_magic_quotes_runtime();
    Line #1108 : if (function_exists('set_magic_quotes_runtime')) set_magic_quotes_runtime(0);
    Line #1112 : if (function_exists('set_magic_quotes_runtime')) @set_magic_quotes_runtime($magic_quotes);
    Line #1159 : // Can't use addslashes as we don't know what value has magic_quotes_sybase.

    I cant see any other files that could be loading on every page load. I commented out the code on each of these and the errors are still coming!??

    Please help!
    Phil Rogers
    A problem shared is a problem solved.

  4. #4
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Massive error_log File!

    fixed it, php.ini file was set to have it enabled. set it to Off and errors have stopped.
    Phil Rogers
    A problem shared is a problem solved.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Massive error_log File!

    fixed it, php.ini file was set to have it enabled. set it to Off and errors have stopped
    Logging of errors has stopped....the errors continue uncorrected

  6. #6
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Massive error_log File!

    What do you mean? The error I believe was because the php.ini was saying to use it and the server version doesn't support it..

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Massive error_log File!

    The error I believe was because the php.ini was saying to use it
    What was "it" in this case??
    magic_quotes???
    If so, then you are correct

  8. #8
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Massive error_log File!

    This was set in php.ini
    magic_quotes_gpc = On
    Now set to
    magic_quotes_gpc = Off

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Massive error_log File!

    philip937 is correct. The hosting company's server configuration was outdated.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Massive error_log File!

    Was just a shame it took me about an hour on chat to my hosting company and by which time had worked it out myself and told them what the problem was! Grr

 

 

Similar Threads

  1. Replies: 8
    Last Post: 24 Jun 2016, 06:02 AM
  2. error_log file too big
    By ttfan in forum General Questions
    Replies: 6
    Last Post: 31 May 2011, 05:12 AM
  3. My error_log file is gigantic
    By lizar5- in forum General Questions
    Replies: 4
    Last Post: 5 Sep 2009, 08:18 PM
  4. HELP! Errcode 28 & error_log (logger.php)
    By akripke in forum General Questions
    Replies: 1
    Last Post: 4 Dec 2008, 01:24 AM
  5. Massive problem
    By davensjournal in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 20 Aug 2006, 10:10 PM

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