HitCounter - Function ereg() is deprecated

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
michaywood
Power Poster
Power Poster
Posts: 280
Joined: Thu Apr 15, 2010 12:27 am

HitCounter - Function ereg() is deprecated

Post by michaywood »

Just installed HitCounter on my CMS2.x / PHP 5.4 installation and get the errors for hit counter:

Deprecated: Function ereg() is deprecated in /home/www/mysite.com/modules/HitCounter/HitCounter.module.php on line 121

I see this has also been listed as on the HitCounter bug tracker but with no resolution.

Any ideas?

Thanks
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: HitCounter - Function ereg() is deprecated

Post by Rolf »

I saw calguy1000 fixed it in the SVN
Until new release you can hide the warning by adding to the config.php file:

Code: Select all

error_reporting(E_ERROR & ~E_DEPRECATED & ~E_NOTICE);
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
michaywood
Power Poster
Power Poster
Posts: 280
Joined: Thu Apr 15, 2010 12:27 am

[solved] Re: HitCounter - Function ereg() is deprecated

Post by michaywood »

thanks! turned off the errors for now
Locked

Return to “Modules/Add-Ons”