1
bennie
php5 compatability
  • 2005/8/3 14:16

  • bennie

  • Just popping in

  • Posts: 40

  • Since: 2003/7/3 1


Xoops builders and users,

i just migrated from php4 to php5 and the core system works like a charm (Xoops 2.0.9.2) but a lot of modules were not working. so here is what i did to get it working:

basicly the problem is a change in the global variables. these are the 4 variable stings i changed to get it to work.

$HTTP_GET_VARS ==> $_GET
$HTTP_POST_VARS ==> $_POST
$HTTP_COOKIE_VARS ==> $_COOKIE
$HTTP_SERVER_VARS ==> $_SERVER

i hope this helps in getting you're site up and running with php5. if there is more that needs change please post it here so we can make it work.

Thanks Ben
......

2
Herko
Re: php5 compatability
  • 2005/8/3 14:20

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


this has been done for all the core modules, as far as I know. There's more that may go wrong with PHP5, but most modules don't have much to worry about in that regard.

Herko

3
bennie
Re: php5 compatability
  • 2005/8/4 7:36

  • bennie

  • Just popping in

  • Posts: 40

  • Since: 2003/7/3 1


can you give some information about what else could go wrong with php5.
it's not the core and core modules that i am woried about, it's some of the other modules people are depending on that will fail when using php5.
......

4
massacre
Re: php5 compatability
  • 2005/10/18 2:44

  • massacre

  • Just popping in

  • Posts: 48

  • Since: 2005/8/10


Quote:

bennie wrote:
Xoops builders and users,

i just migrated from php4 to php5 and the core system works like a charm (Xoops 2.0.9.2) but a lot of modules were not working. so here is what i did to get it working:

basicly the problem is a change in the global variables. these are the 4 variable stings i changed to get it to work.

$HTTP_GET_VARS ==> $_GET
$HTTP_POST_VARS ==> $_POST
$HTTP_COOKIE_VARS ==> $_COOKIE
$HTTP_SERVER_VARS ==> $_SERVER

i hope this helps in getting you're site up and running with php5. if there is more that needs change please post it here so we can make it work.

Thanks Ben


I've seen $HTTP_POST_FILES as well..

$HTTP_POST_FILES ==> $_FILES

5
kidtroopa
Re: php5 compatability
  • 2005/10/29 6:13

  • kidtroopa

  • Just popping in

  • Posts: 31

  • Since: 2005/10/15


I am receiving the following error when running the WF-Section module on PHP5:

PHP Fatal error: Cannot re-assign $this in C:\\***\\modules\\wfsection\\admin\\index.php on line 33

Would those variable changes mentioned correct this issue? And if so...what file(s) will I find them in? I'm a newbie to XOOPS and PHP programming

6
bennie
Re: php5 compatability
  • 2005/10/29 9:08

  • bennie

  • Just popping in

  • Posts: 40

  • Since: 2003/7/3 1


hey kidtroopa,

i don't think so, but have no id what could be the problem. check out the WF-section homepage, they have the ansers i hope.

good luck,

Ben
......

7
kidtroopa
Re: php5 compatability
  • 2005/10/29 12:08

  • kidtroopa

  • Just popping in

  • Posts: 31

  • Since: 2005/10/15


Thanks for the link bennie. If I find anything...I'll make sure to share the info.

Login

Who's Online

183 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits