It is currently Fri Mar 29, 2024 6:20 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: PhpWiki and PHP4.4.0 :-(
PostPosted: Wed May 03, 2006 10:21 pm 
Newbie
Newbie

Joined: Wed May 03, 2006 9:45 pm
Posts: 4
Hi,
looks like PhpWiki does not play well with PHP 4.4.0.
At the bottom of each page, lots of errors of this kind are shown:
lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference
does anyone have an idea what could be done about it?

Cheers,
Hans-Martin


Top
 Profile  
 
 Post subject: Seems to work after 3 small patches
PostPosted: Thu May 04, 2006 5:35 am 
Newbie
Newbie

Joined: Wed May 03, 2006 9:45 pm
Posts: 4
Looks like it is working without error messages after patching the source at 4 places.
I'm trying to use the Wiki for some time before I can say conclusively that the patches are safe.
The patches are in
lib/pear/DB/common.php:741
lib/DB_Session.php:148
lib/Template.php:120
lib/Template.php:122

At the first place, I've assigned the "new DB_result()" to a temporary.
At the other places, I've removed the & operator (hope that's ok).

Cheers,
Hans-Martin


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 9:02 pm 
Support Tech
Support Tech

Joined: Thu Mar 23, 2006 1:07 pm
Posts: 238
Notices are displayed usually when you turn php debugging on, I think there must be away to disable this from the wiki's admin panel. I use xoops for my sites and there is an option there to enable/disable php debugging, when enabled it will display php Notices, which are not errors and do not indicate that something is not working right, they are used for programmers to make their code better but basically the rule is that if it is not an error, then it is working.

_________________
Cheers,
Steve
Support Team Supervisor

Before asking a question, please read the F.A.Q.


Top
 Profile  
 
 Post subject: I found a way to work around
PostPosted: Thu May 04, 2006 9:22 pm 
Newbie
Newbie

Joined: Wed May 03, 2006 9:45 pm
Posts: 4
Steve, thanks for the response!

PhpWiki does have its own error and notice handling mechanism, and it looks like the easiest way is to switch off reporting of notices by changing the line 935 of file lib/main.php from
error_reporting(E_ALL);
to
error_reporting(E_ALL & ~E_NOTICE);

Cheers,
Hans-Martin

did I mention that Freehostia rocks? :-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 6:16 am 
Site Admin

Joined: Thu Mar 30, 2006 7:51 am
Posts: 208
Please open a trouble ticket from your acount's Help Center and we will take a detailed look on your problem.


Top
 Profile  
 
 Post subject: thanks, but no need anymore :-)
PostPosted: Fri May 05, 2006 6:22 am 
Newbie
Newbie

Joined: Wed May 03, 2006 9:45 pm
Posts: 4
Thanks for the offer, but the problem is already resolved as far as I'm concerned.
I just wanted to post it here to make the workaround known to others who might want to use PhpWiki with PHP 4.4.0 and experience similar problems.

Cheers,
Hans-Martin


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 4:14 pm 
Support Tech
Support Tech

Joined: Thu Mar 23, 2006 1:07 pm
Posts: 238
I am happy to hear that you got this resolved, Hans-Martin and thanks for the info, if anyone else asks now we know the right solution :)

_________________
Cheers,
Steve
Support Team Supervisor

Before asking a question, please read the F.A.Q.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 03, 2007 6:29 am 
Newbie
Newbie

Joined: Mon Apr 02, 2007 8:16 am
Posts: 15
Is PHP4 available on the server ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 6:16 pm 
Moderator
Moderator

Joined: Fri Feb 02, 2007 5:29 pm
Posts: 41
Location: Portugal
Yes, FreeHostia Services have PHP 4.4.0.

Thanks, Miguel

_________________
FreeHostia.com Forum Moderator
http://www.local-spot.net on FreeHostia Servers, join us!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011