PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Blank page since PHP 5 upgrade !

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
alfred



Joined: 20 Jul 2007
Posts: 2

PostPosted: Fri Jul 20, 2007 8:47 am    Post subject: Blank page since PHP 5 upgrade ! Reply with quote

Hi all,

Since I've upgraded from PHP 5.1.6-r11-gentoo to PHP 5.2.2-r1-gentoo, my scripts using MDB2 class return blank page without any error messages.

Do you know some compatibilty problems between PEAR and this PHP 5 version for Gentoo 32bits OS ?

Thanks a lot for your help. I'm trying to resolve this probleme since yesterday... Any help would be really apprecied Wink

Best regards.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1002

PostPosted: Fri Jul 20, 2007 11:51 am    Post subject: Re: Blank page since PHP 5 upgrade ! Reply with quote

alfred wrote:
Since I've upgraded from PHP 5.1.6-r11-gentoo to PHP 5.2.2-r1-gentoo, my scripts using MDB2 class return blank page without any error messages.


There are many possible reasons, but the most likely one is that you forgot to configure your include_path with the new PHP version. Depending on how you handle your MDB2 (or PEAR in general) errors, you should get an error that tells you that. If not, you should reconsider your error handling.
Back to top
View user's profile Send private message
alfred



Joined: 20 Jul 2007
Posts: 2

PostPosted: Fri Jul 20, 2007 12:17 pm    Post subject: Reply with quote

Thank you very much for you fast reply Mark

include_path to pear is correct on my php.ini

I will try to reconsider my error handling but I think it is also correct so I'm pessimist...
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1002

PostPosted: Fri Jul 20, 2007 12:25 pm    Post subject: Reply with quote

alfred wrote:
I will try to reconsider my error handling but I think it is also correct so I'm pessimist...


Okay, some hints:
Have you tried to output something before you instantiate MDB2? Have to tried to output something after the instantiation? Do you check whether the connect() (or factory() or ...) call was successful?
Back to top
View user's profile Send private message
faust



Joined: 17 Jul 2008
Posts: 7

PostPosted: Fri Jul 18, 2008 12:25 pm    Post subject: Reply with quote

I think I have similar problem. Whe I compiled PHP5 on my gentoo, I saw i phpinfo() page '--without-pear'. I don't know how enable it. Please help
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1002

PostPosted: Fri Jul 18, 2008 3:15 pm    Post subject: Reply with quote

faust wrote:
I think I have similar problem. Whe I compiled PHP5 on my gentoo, I saw i phpinfo() page '--without-pear'. I don't know how enable it. Please help


Simply remove '--without-pear' from the configure string and run configure again. Or: Follow the instructions in the installation chapter of the manual on pear.php.net to install the PEAR installer yourself.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software