Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

problem with local xampp install

Asked Modified Viewed 9,618 times
V
vision4life
V
Kind Regards, Fred
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
asked
Member

Hello,

We just installed php-fusion 7 successfully on a localhost running xampp. However, when starting admin panel or Search, submit links, etc. we get a whole bunch of errors like:

Deprecated: Function eregi() is deprecated in c: \xampp\xampp\htdocs\maincore.php on line xx.

Does anybody have any clue? Thanks a lot.
0 replies

19 posts

J
Jeepers1993
J
  • Junior Member, joined since
  • Contributed 45 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

PHPFusion v7.00.xx isn't supported by PHP 5. Since PHP 5 the ereg function are deprecated so you'll have to wait untill PHPFusion v7.01 or edit all the ereg function manually or downgrade your PHP to 4.
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

or to use the svn version of PHPFusion 7.01 ;o
0 replies
V
vision4life
V
Kind Regards, Fred
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Two questions:
1. How can I edit the ereg functions? How should the changes look like? If I would know that as newbee/non-programmer, it would be the fastest way.

2. Where can I find svn php-fusion 7.01?
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

1. You find it in all php files.
example:

   if (ereg('<--PAGEBREAK-->', $article)) {

should be:
   if (preg_match('<--PAGEBREAK-->', $article)) {


2.if you are a "newbee/non-programmer", you shouldn't use the svn version because it is not supported till its released.
Edited by Basti on 14-11-2009 15:14,
0 replies
V
vision4life
V
Kind Regards, Fred
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Thanks so much for your super fast response. I will directly forward it to my friend who is working on it. Great !
0 replies
V
VireL
V
VireL 10
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

i use this
if (!function_exists("ereg"))
{
  function ereg($check, $value, $case = FALSE)
  {
    return preg_match("/".$check."/".($case == FALSE ? "i" : ""), $value);
  }
  function eregi($check, $value)
  {
    return ereg($check, $value, TRUE);
  }
}
Edited by VireL on 14-11-2009 17:23,
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

Will version 7.01 work on PHP4 when it is released?
0 replies
V
VireL
V
VireL 10
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

probably yes
0 replies
V
vision4life
V
Kind Regards, Fred
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Hi VireL

How is you ccode used? Do you have that "if (!function_exists("ereg"))"-code on top of every php-files or only in maincore.php?
0 replies
V
VireL
V
VireL 10
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

only in maincore.php
0 replies
J
Jeepers1993
J
  • Junior Member, joined since
  • Contributed 45 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

@VireL Woot made by me :).
Make sure you put it somewhere at the beginning of maincore.php
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Quote

afoster wrote:
Will version 7.01 work on PHP4 when it is released?


yes ofc
0 replies
F
farzit
F
farzit 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

i have the same problem
change eregi() to @eregi() you can use kfilereplace program (linux) to replace all occurance
0 replies
C
crex
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

The VireL script gives me an error "Fatal error: Only variables can be passed by reference" for the line return ereg($check, $value, TRUE);

It doesn't seem to be as easy as just to exchange all occurences of eregi with preg_match!?
Edited by crex on 27-11-2009 21:45,
0 replies
C
crex
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

My sites are down so I'm still looking for a solution to the problem with PHPFusion and PHP 5.3.1. I've probably overlooked something obvious. I don't see that the above solves the problem.
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Quote

Jeepers1993 wrote:
PHPFusion v7.00.xx isn't supported by PHP 5. Since PHP 5 the ereg function are deprecated so you'll have to wait untill PHPFusion v7.01 or edit all the ereg function manually or downgrade your PHP to 4.


PHPFusion is running well on PHP 5.2 - but not on 5.3 (yet)

Our site is running under PHP 5.2
0 replies
C
crex
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

Thanks smokeman. This is bad news.

I don't think I would recommend anyone to start editing/exchanging the ereg/eregi functions unless you really know what you are doing, otherwise I think you can screw your site up pretty badly.
Edited by crex on 26-11-2009 13:38,
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Quote

crex wrote:
Thanks smokeman. This is bad news.

I don't think I would recommend anyone to start editing/exchanging the ereg/eregi functions unless you really know what you are doing, otherwise I think you can screw your site up pretty badly.


If don't want to do it there are still 2 other possibilities to use PHPFusion with PHP 5.3

- Use the SVN version of PHPFusion 7.01
- or use the function by VireL which you can also see in this thread.
0 replies
C
crex
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

Quote

slaughter wrote:
If don't want to do it there are still 2 other possibilities to use PHPFusion with PHP 5.3
- Use the SVN version of PHPFusion 7.01
- or use the function by VireL which you can also see in this thread.


The VireL code gave me an error, as I mentioned above.
0 replies

Category Forum

Installation Issues - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 19 posts
  • Votes 0 votes
  • Topic users 8 members

8 participants

C
C
crex 10
Ånimskog - en socken i Dalsland!
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 5 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
J
J
  • Junior Member, joined since
  • Contributed 45 posts on the community forums.
  • Started 2 threads in the forums
B
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
V
V
Kind Regards, Fred
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
F
F
farzit 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
V
V
VireL 10
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet