php problem
php problem
Hi,
I am using wampserver with php 5.3.0 on my laptop.
And i have these errors:
Deprecated: Function eregi() is deprecated in C:\wamp\www\CMSimple 3.2 SE\cmsimple\cms.php on line 44
Notice: Undefined index: sefile in C:\wamp\www\CMSimple 3.2 SE\cmsimple\cms.php on line 62
Deprecated: Function eregi() is deprecated in C:\wamp\www\CMSimple 3.2 SE\cmsimple\functions.php on line 11
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\CMSimple 3.2 SE\bbclone\lib\io.php on line 151
Can someone help me?
I am using wampserver with php 5.3.0 on my laptop.
And i have these errors:
Deprecated: Function eregi() is deprecated in C:\wamp\www\CMSimple 3.2 SE\cmsimple\cms.php on line 44
Notice: Undefined index: sefile in C:\wamp\www\CMSimple 3.2 SE\cmsimple\cms.php on line 62
Deprecated: Function eregi() is deprecated in C:\wamp\www\CMSimple 3.2 SE\cmsimple\functions.php on line 11
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\CMSimple 3.2 SE\bbclone\lib\io.php on line 151
Can someone help me?
-
- Posts: 342
- Joined: Thu Jun 26, 2008 8:19 pm
- Location: Germany
- Contact:
Re: php problem
I know of this problem and i am working on it! New version will be out soon!
Re: php problem
Since all these are warnings until now, isn't it enough for the moment to to turn off error_reporting with two lines in top of cms.php?
Of course the E_DEPRECATED warnings should be fixed ASAP in the code.
Bit IMO error_reporting should be off anyway on production systems.
Holger
Code: Select all
error_reporting(0);
ini_set('display_errors', 0);
Bit IMO error_reporting should be off anyway on production systems.
Holger
Re: php problem
Or you could try CMSimple_XH. The latest RC should contain a solution for that.tazman69 wrote:Hi,
I am using wampserver with php 5.3.0 on my laptop.
And i have these errors:
Deprecated: Function eregi() is deprecated in C:\wamp\www\CMSimple 3.2 SE\cmsimple\cms.php on line 44
-
- Posts: 1
- Joined: Thu Dec 31, 2009 6:50 pm
Re: php problem
Any new developments on the DEPRECATED issue?
Thanks!
Rob
Thanks!
Rob
Re: php problem
CMSimple_XH 1.0 ...mediatormedia wrote:Any new developments on the DEPRECATED issue?
Re: php problem
In cms.php, line 44
replace:
if (eregi('cms.php',sv('PHP_SELF')))die('Access Denied');
by:
if (preg_match('/cms.php/',sv('PHP_SELF')))die('Access Denied');
replace:
if (eregi('cms.php',sv('PHP_SELF')))die('Access Denied');
by:
if (preg_match('/cms.php/',sv('PHP_SELF')))die('Access Denied');
Re: php problem
Can anyone give some tips.We all are suffering from these problem.
Re: php problem
These messages about 'eregi' probably are being caused by using an newer version of php on your webserver. Php5.3 has a lot of new options in the security area. And because of that often php errors occur.
I think that you have basically 2 options....
1. Replace in your cmsimple cms-files the option eregi by pregmatch (see earlier posting by Reduli). I did this too in early version of cmsimple. Search in every php-file of cmsimple for the word eregi an replace it by the pregmatch variant. You have to do this very precisely to avoid errors.
2. Use a newer version of Cmsimple. For example Cmsimpel XH1.5
I think that you have basically 2 options....
1. Replace in your cmsimple cms-files the option eregi by pregmatch (see earlier posting by Reduli). I did this too in early version of cmsimple. Search in every php-file of cmsimple for the word eregi an replace it by the pregmatch variant. You have to do this very precisely to avoid errors.
2. Use a newer version of Cmsimple. For example Cmsimpel XH1.5