We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi guys,

    My host upgrading my server from 5.2 to 5.3 PHP last night and now I am getting errors on my site. When you first visit any page I get the errors as below:

    [2013-03-07 10:39:30] (ERROR @ /index.php) [OnWebPagePrerender][2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 143) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 143
    [2013-03-07 10:39:30] (ERROR @ /core/cache/elements/modplugin/3.include.cache.php : 153) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 153
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 153) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 153
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 160) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 160
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 167) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 167
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 174) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 174
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 143) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 143
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 153) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 153
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 153) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 153
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 160) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 160
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 167) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 167
    [2013-03-07 10:39:30] (ERROR @ core/cache/elements/modplugin/3.include.cache.php : 174) Un-recoverable error 8192: Function eregi() is deprecated 
    Deprecated: Function eregi() is deprecated in core/cache/elements/modplugin/3.include.cache.php on line 174
    


    Then if you refresh the errors are removed and all works OK... very odd! Any idea what is creating these errors and how I can remove them?

    I have tried adding

    magic_quotes_gpc = Off
    error_reporting = E_ALL &  ~E_DEPRECATED
    


    To my php.ini file but that then gives me an

    Fatal error: Class 'PDO' not found in /home/jwdmeuk/public_html/core/model/modx/modx.class.php on line 361
    


    That won't go away...???

    I am running MODx Revolution 2.0.4-pl2 on PHP 5.3.22

    Any ideas??? Cheers,
      • 8168
      • 1,118 Posts
      I now also have full php.ini file installed and ~E_DEPRECATED for error reporting - yet these errors still appear???
        • 8168
        • 1,118 Posts
        UPDATE - fixed this... It was an old plugin called MobileTemplateSwitcher trying to use "eregi" to perform loads of tasks... was not being used in the site so I disabled it and all works now... ;]