Deprecated? What does this mean?

A place for general not CMSimple related discussions
Post Reply
swisstim
Posts: 2
Joined: Fri Aug 31, 2012 3:39 pm

Deprecated? What does this mean?

Post by swisstim » Fri Aug 31, 2012 4:16 pm

A couple of years ago my son-in-law helped me set up a cmsimple website for my private teaching mandate: http://www.teachertim.ch
Without any former knowledge I got this site up and running, so I am proud of that AND thankful too.

But now suddenly two lines appeared above the site:

Deprecated: Function eregi() is deprecated in /var/kunden/webs/tal/ch.teachertim/cmsimple/cms.php on line 41

The same goes for my cmsimple website for infrared heaters:

Deprecated: Function eregi() is deprecated in /var/kunden/webs/tal/com.sunshine-heaters/cmsimple/cms.php on line 41

What does this mean? My son-in-law couldn't help me either.
Thanks to anyone who can help me delete these lines.

Tim Allen, Switzerland

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Deprecated? What does this mean?

Post by cmb » Fri Aug 31, 2012 4:27 pm

Hi Tim,

"deprecated" is used in computer jargon as a word to tell typically programmers that something should not be used anymore, as it will removed sometime in the future. That's exactly the case with the mentioned function eregi(). This function is deprecated since PHP 5.3. So either your hoster has updated to this version, or a setting has changed, which displays these error (normally they shouldn't show up).

The simplest and cleanest way to solve the issue is to upgrade to CMSimple 3.4, which doesn't use any eregi() anymore (and fixes some securtiy holes as well!). But I see that your contact form is build with ASForm, probably an older version, which uses eregi() after the mail was sent. So you should update ASForm too, which was recently released as version 2.9, with the eregi() calls removed.

If you need more info about how to update, feel free to ask.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

swisstim
Posts: 2
Joined: Fri Aug 31, 2012 3:39 pm

Re: Deprecated? What does this mean?

Post by swisstim » Sun Sep 02, 2012 4:36 am

Thank you Christoph
Though I don't understand your answer I will pass this info on to someone who might be able to fix this problem.
Kind regards
Tim

Post Reply