Hi Folks....
I´m sorry for my bad English, but i hope, my post can help you.
I had the same Problem with mod glossary on my localhost.
Warning: Invalid argument supplied for foreach() in /home/konde/web/include/inc_module/mod_glossary/backend.listing.php on line 205
I´m using phpwcms snapshot 2007-12-05.
It seems that PHPWCMS Setup routine doesen't create the relevant tables for the Mod, what causes the Mod not to function properly or leading to a failure message. After looking into the DB, there were no such tables.
Afterwards I had a look into the Setup.php from the glossary mod and found the tables, which have to be created within the DB. I compared those to the DB's tables and added them manually to the DB.
Now the Mod works fine for me.
I wonder, because i have this problem only on my localhost, not on my webserver.
Here´s the code i added to DB:
CREATE TABLE `phpwcms_glossary` (
`glossary_id` int(11) NOT NULL auto_increment,
`glossary_created` datetime NOT NULL default '0000-00-00 00:00:00',
`glossary_changed` datetime NOT NULL default '0000-00-00 00:00:00',
`glossary_title` text NOT NULL,
`glossary_tag` varchar(255) NOT NULL default '',
`glossary_keyword` varchar(255) NOT NULL default '',
`glossary_text` mediumtext NOT NULL,
`glossary_highlight` int(1) NOT NULL default '0',
`glossary_object` mediumtext NOT NULL,
`glossary_status` int(1) NOT NULL default '0',
PRIMARY KEY (`glossary_id`),
KEY `glossary_status` (`glossary_status`),
KEY `glossary_tag` (`glossary_tag`),
KEY `glossary_keyword` (`glossary_keyword`),
KEY `glossary_highlight` (`glossary_highlight`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
Please change the last line to the settings wich uses the DB.
You can see it in other tables of the DB.
Make sure, that you make a DB Backup before update.
Greets
Uwe