Pligg 9.9 Beta / php5
After i installed the script (worked fine) i wanted to log into admin. But i got an error Massage "Cannot redeclare class HTTPRequest" in lib/link.php.
My webmaster figured out the class name collides with the standard php5 http extension. We could work around the problem by deactivating the php5 extension.
My webmaster said that it would better to take more individual names for the classes like "PliggHTTPRequest" and "PliggLink".
There are some threads with users who seem to have the same problem:
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Cannot redeclare class HTTPRequest Last edited by nealtz; 02-16-2008 at 04:35 AM.. |
| |||
|
I renamed all calls to HTTPRequest to Pligg_HTTPRequest including the constructor. About 3 or 4 renames required and all in link.php (hope I got them all). I have a few Pligg sites and the all went down at the same time for the same reason. My hosting service must have installed an upgrade. |
| |||
| Quote:
My webhost solved my problem by doing the followings, They have updated PHP verstion from 5.1 to 5.2. In order to resolve the problem they have added the following line in my .htaccess file, which will make my account use the previous version of PHP, i.e 5.1 instead of the new one (5.2): AddHandler application/x-httpd-php51 .php .php3 .php4 .php5 .phtml Thanks |
| The Following User Says Thank You to ruptan For This Useful Post: | ||
| |||
|
it worked thanks ruptan
|
| |||
| Quote:
|
| |||
|
No need for these things. The error is because HTTPRequest is a standard function so u need to rename it in your links.php file Search and replace "HTTPRequest" with "HTTPRequest1" in file links.php. Worked for me! |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fatal error: Cannot redeclare class User | raviraja | General Help | 0 | 04-26-2008 05:25 AM |
| Installation error "Cannot redeclare httpRequest in /lib link.php" | jaklyne | Bug Report | 0 | 03-20-2008 02:32 PM |
| differents class for sidebar module | lacasuela | "yget" | 5 | 01-21-2008 02:32 PM |
| New module error(cannot redeclare) | jdleung | Modification Tutorials | 0 | 10-23-2007 09:34 PM |
| Fatal error: Cannot redeclare class db in /homepages/16/d122491275/htdocs/libs/db.php | amb | Installation and Upgrade Help | 3 | 05-26-2006 08:13 PM |





Linear Mode

