When running any update i get the following error:

Notice: Undefined variable: requirements in phpids_requirements() (Zeile 77 von /var/www/SOMEPATH/httpdocs/7.x_modules/all/phpids/phpids.install).
CommentFileSizeAuthor
#4 added_variable_definition_1016160-3.patch486 byteswolmi

Comments

bryancasler’s picture

subscribe

aldim’s picture

subscribe too

wolmi’s picture

Hi,

Simply add this:

$requirements = array();

at the begining of the function phpids_requirements. This is the patch

--- a/phpids.install
+++ b/phpids.install
@@ -14,7 +14,7 @@
  */
 function phpids_requirements($phase) {
   $t = get_t();
-  
+  $requirements = array();  
   if ($phase == 'install') {
     $requirements['phpids'] = array(
       'title' => $t('PHPIDS'),  
@@ -128,4 +128,4 @@ switch (substr(VERSION, 0, 1)) {
   case '7':
     require_once('phpids.update7.inc');
     break;
-}
\ No newline at end of file
+}
wolmi’s picture

Status: Active » Needs review
StatusFileSize
new486 bytes

The patch to download.

promes’s picture

For me patch #4 works.

patrickd’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

fixed in 7.x-2.x branch
thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.