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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | taxonews51.module.patch | 2.2 KB | fgm |
| #3 | taxonews60.module.patch | 2.15 KB | fgm |
Comments
Comment #1
RyanH commentedGet 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
Comment #2
fgmThis 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 ?
Comment #3
fgmThe 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.
Comment #4
fgmAnd this other patch is for users of taxonews.module v1.10.6.3 (5.1 branch).
Comment #5
RyanH commentedThat 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
Comment #6
fgmFeature added in taxonews.module v1.10.8.3
Comment #7
fgmAnd backported to 5.1 taxonews.module 1.10.6.4
Comment #8
unitec commentedI run MySQL database 4.1.22
PHP 4.4.6
I've to ask my host to upgrade.
Thanks,
Juergen
Comment #9
(not verified) commented