Problem After Install
alpinejag - September 18, 2007 - 01:37
| Project: | PHPIDS |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When I turn the module on most page views generate these two error messages:
Argument 1 passed to IDS_Filter_Storage::__construct() must be an instance of IDS_Init, none given, called in .../modules/phpids/phpids.module on line 147 and defined in .../modules/phpids/IDS/Filter/Storage.php on line 74.
and
Missing argument 1 for IDS_Filter_Storage::__construct(), called in .../modules/phpids/phpids.module on line 147 and defined in .../modules/phpids/IDS/Filter/Storage.php on line 74.
Nothing else looks out of the ordinary and I can see the PHPIDS log and configure pages.
I'm running PHP 5.2.1 with the Zend Optimizer
Any ideas?

#1
after installing 0.4 IDS the the site will give me this message
(((( Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /usr/share/drupal-5.1/modules/phpids/IDS/Filter/Storage.php:201 Stack trace: #0 /usr/share/drupal-5.1/modules/phpids/phpids.module(148): IDS_Filter_Storage->getFilterFromXML('/usr/share/drup...') #1 [internal function]: phpids_init() #2 /usr/share/drupal-5.1/includes/module.inc(406): call_user_func_array('phpids_init', Array) #3 /usr/share/drupal-5.1/includes/common.inc(1848): module_invoke_all('init') #4 /usr/share/drupal-5.1/includes/bootstrap.inc(834): _drupal_bootstrap_full() #5 /usr/share/drupal-5.1/includes/bootstrap.inc(771): _drupal_bootstrap(7) #6 /usr/share/drupal-5.1/index.php(13): drupal_bootstrap(7) #7 {main} thrown in /usr/share/drupal-5.1/modules/phpids/IDS/Filter/Storage.php on line 201 ))))
but when i am try 0.3.2 its seems to work good
#2
Confirmed. This is because there were some API changes in the 0.4 release of PHPIDS. I'm not going to upgrade the 5 module to this as I'm allready busy porting it to 6 which will work with PHPIDS starting from 0.4 (I really hope they don't change anything after this release)
So for now, use the 0.3.2 release for the 5.1 release.
#3
Thanks, 0.3.2 works fine. Great to hear the Drupal 6 release is already in work.
#4
The same problem happened for me in a clean drupal 6.1 installation
#5
Version 5.x-2 & 6.x-2 will be out soon (in a few hours) which is a huge cleanup and should support the latest phpids packages.
If errors stil occur please open up a seperate issue.