I receive the following error at /admin/build/block:

warning: Invalid argument supplied for foreach() in /home/.ruland/wyndouglas/sandbox.canishoopus.com/drupal-6.x-dev/sites/all/modules/taxonews/taxonews.module on line 406.

MySQL database 5.0.24a
PHP 5.2.2

CommentFileSizeAuthor
#4 taxonews51.module.patch2.2 KBfgm
#3 taxonews60.module.patch2.15 KBfgm

Comments

RyanH’s picture

Title: Taxonews error on Block Admin » Taxonews error on Block Admin - Same error - Prod Version
Version: 6.x-1.x-dev » 5.x-1.0

Get error on block admin

warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/Drupal/modules/taxonews5/taxonews.module on line 426.

Drupal 5.1
Taxonews 5.x-1.0
php 5.2.2 (just installed to get another taxonews error to go away)
Apache 1.3.33
MySql 5.0.24a

fgm’s picture

Version: 5.x-1.0 » 6.x-1.x-dev
Component: User interface » Code

This appears to be the same problem in both cases: block generation does not have a valid vocabulary from which to build. The only way I could reproduce it was by not following the INSTALL.txt and going to admin/build/block BEFORE choosing a vocabulary from which the blocks would be built.

Do you still get the problem when following the INSTALL.txt ?

fgm’s picture

Category: bug » feature
Status: Active » Needs review
StatusFileSize
new2.15 KB

The attached patch for taxonews.module v1.10.8.2 provides a safety net for users trying to use the module without reading the INSTALL.txt file.

Please review.

fgm’s picture

StatusFileSize
new2.2 KB

And this other patch is for users of taxonews.module v1.10.6.3 (5.1 branch).

RyanH’s picture

That did fix it, thanks and sorry.

Additionally however, taxonews was not showing up in site admin even though it was a selected module.

The rough path to this state was ... install drupal, install taxonews, select it, fatal error (set would not come up, delete taxonews dir to fix) because PHP was 4.3, Upgrade php to 5.2.2, taxonews was already selected (from prior install), did not show up in admin to make the changes per install.txt ...

fix is to uncheck save, check save

Just FYI

fgm’s picture

Assigned: Unassigned » fgm
Status: Needs review » Fixed

Feature added in taxonews.module v1.10.8.3

fgm’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev

And backported to 5.1 taxonews.module 1.10.6.4

unitec’s picture

I run MySQL database 4.1.22
PHP 4.4.6

I've to ask my host to upgrade.

Thanks,

Juergen

Anonymous’s picture

Status: Fixed » Closed (fixed)