Author Topic: Function eregi() is deprecated in /clientraw_data.php - RESOLVED  (Read 561 times)

0 Members and 1 Guest are viewing this topic.

Offline Ian.

  • Forecaster
  • *****
  • Posts: 460
    • Chatteris Weather
Hi,

After changing host (no prizes for why) I have the following error logged:

Function eregi() is deprecated in /home/redpis/public_html/clientraw_data.php on line 79 (and loads of others)

Searching this forum on a similar depreciation problem led me to this site and its conclusions:

eregi('\.([^\.]*$)', $this->file_src_name, $extension);

change to:

preg_match('/\.([^\.]*$)/i', $this->file_src_name, $extension);

the problem is I can't locate where in clientraw_data.php (attached and saved as a txt file) on the lines identified, what change is needed, nothing relates to the fix, (nothing in brackets where I can add characters etc)

Any help or guidance appreciated as always

Ian
« Last Edit: October 26, 2014, 04:03:58 AM by redpis »
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Function eregi() is deprecated in /clientraw_data.php on
« Reply #1 on: October 25, 2014, 10:08:52 AM »
Try the attached version... all the eregi('...' were replaced with preg_match('/.../i' constructs

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Ian.

  • Forecaster
  • *****
  • Posts: 460
    • Chatteris Weather
Re: Function eregi() is deprecated in /clientraw_data.php on
« Reply #2 on: October 25, 2014, 11:19:50 AM »
Many thanks Ken, I thought of doing a 'find and replace', but decided the week had been bad enough without me adding to it :-)

As an aside, 300+ of these were in the web log:

[Sat Oct 25 04:42:23.086820 2014] [authz_core:error] [pid 24620:tid 140555967215360] [client 146.255.33.149:33988] AH01630: client denied by server configuration: /home/redpis/public_html/blog/wp-login.php

is my humble blog under attack?
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Function eregi() is deprecated in /clientraw_data.php on
« Reply #3 on: October 25, 2014, 11:54:57 AM »
Yes, there are a lot of troller-scripts looking for wp-login and wp-admin.  Looks like your server is blocking them (good).

Also good if you're on the current release of WordPress .. if not, I'd recommend updating to the current release.

On WXForum.net, I see the doorknob-rattlers looking for wp-admin/wp-login all the time.  We don't run WordPress, so it gets them a 404-Not Found, and the persistent ones get added to .htaccess to receive a 403-Forbidden for their troubles.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything