Page 1 of 1

Error in Glossary module

Posted: Sat 28. Apr 2007, 14:36
by Mobius
If I create a glossary entry i heve this error message:

Warning: Invalid argument supplied for foreach() in /home/konde/web/include/inc_module/mod_glossary/backend.listing.php on line 205

Posted: Sat 28. Apr 2007, 14:47
by flip-flop
Hi Mobius,

what version you have in use? :roll:

Was the setup running well at the first call of this module?

Knut

Posted: Sun 29. Apr 2007, 22:24
by Mobius
flip-flop wrote:Hi Mobius,

what version you have in use? :roll:

Was the setup running well at the first call of this module?

Knut
Version 1.3.2.1

Setup? There was no setup for this moduls....as I remember.

Posted: Sun 29. Apr 2007, 23:41
by jsw_nz
Need to delete or rename the setup folder.
Having said that, it still seems that this
module is not yet fully implemented.
Guessing it is still on OliG's todo list
:)

(will be wonderful once completed)


The same might be said for the keyword table,
which looks quite inetersting as well.
Lookiing forward to this being completed as well.....

Posted: Sat 13. Oct 2007, 12:55
by oeconom
Hi,

I'm just using the snapshot 2007-10-09 and getting exactly the same error message. Setup Folder was deleted.
Any recommendations what could be the reason and how to ersolve it?

Thanks,
Felix

Posted: Sat 13. Oct 2007, 13:54
by juergen
did you create this glossary table as in setup.php ?

Posted: Sat 13. Oct 2007, 19:27
by oeconom
I didn' create anything manualle.
As I understood, the mos are automatically installed/initiated.
You only need to delete the setup folder.

Am I wrong? What do I need to do?

Thanks,
Felix

Re: Error in Glossary module

Posted: Thu 27. Dec 2007, 14:29
by Uwe367
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. :wink:

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