Error in Glossary module

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Mobius
Posts: 39
Joined: Sun 15. Aug 2004, 13:07
Location: Hungary
Contact:

Error in Glossary module

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Mobius
Posts: 39
Joined: Sun 15. Aug 2004, 13:07
Location: Hungary
Contact:

Post 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.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post 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.....
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Post 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
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

did you create this glossary table as in setup.php ?
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Post 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
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
User avatar
Uwe367
Posts: 1207
Joined: Sat 15. Sep 2007, 07:19
Location: Koblenz

Re: Error in Glossary module

Post 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
Post Reply