| View previous topic :: View next topic |
| Author |
Message |
alfred
Joined: 20 Jul 2007 Posts: 2
|
Posted: Fri Jul 20, 2007 8:47 am Post subject: Blank page since PHP 5 upgrade ! |
|
|
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
Best regards. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Jul 20, 2007 11:51 am Post subject: Re: Blank page since PHP 5 upgrade ! |
|
|
| 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 |
|
 |
alfred
Joined: 20 Jul 2007 Posts: 2
|
Posted: Fri Jul 20, 2007 12:17 pm Post subject: |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Jul 20, 2007 12:25 pm Post subject: |
|
|
| 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 |
|
 |
faust
Joined: 17 Jul 2008 Posts: 7
|
Posted: Fri Jul 18, 2008 12:25 pm Post subject: |
|
|
| 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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Jul 18, 2008 3:15 pm Post subject: |
|
|
| 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 |
|
 |
|