Author |
Message |
twelves
Regular


Joined: Aug 22, 2003
Posts: 84
|
Posted:
Thu Jan 01, 2004 6:21 pm |
|
Clean install of version 7
New 3rd party Modules wont show up in Admin or Modules block.
http://www.tecnoprecision.com/modules.php?name=Feedback
The work!
But cant get any to show up.
But they can not be activated.
This is bad.
Im using the first Nuke 7 version final.
TY!
Any advice? |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Thu Jan 01, 2004 8:07 pm |
|
I'm not sure if there is a fix (I'm having the same problem).
If you have phpAdmin or something similar to access your database directly, check your nuke_modules table and manually activate it by editing the field 'active' - change the '0' to a '1'. |
|
|
|
 |
twelves

|
Posted:
Thu Jan 01, 2004 9:10 pm |
|
|
|
 |
Guardian2003

|
Posted:
Fri Jan 02, 2004 5:26 pm |
|
Raven,
Re your bug fix in admin/modules/module.php
ro new modules not adding to the Modules menu - I have this in my modules.php
$db->sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0')");
Do you think this is what is causing the problem (the $db->) at the beginning?
This modification was made as part of a security bug fix so I'm loath to change it without your words of wisdom. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Jan 02, 2004 7:21 pm |
|
Guardian,
That is not in the default released version of nuke v7.0. However, it should work. Try this for funCode:$db->sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')");
|
|
|
|
|
 |
Guardian2003

|
Posted:
Fri Jan 02, 2004 8:10 pm |
|
Nope, that didn't work.
Was getting a bit exasperated so I commented out my line and added your fix in its place
No joy their either - this is doing my head in!
I created a new folder called 'newtest' in root/Modules and just for fun added a few files in the folder (from Avantgo).
After checking the tables I found no matter what I did, the new 'module' was not being listed.
Then I had a brain wave - not sure why though.
I notes the number of fields and I seemed to be one extra!
I have;
mid, title, custom_title, active, view, inmenu, mcid and lastly mod_group
Now I have to figure out how the mod_group field got in their as I'm sure that is not standard issue Nuke and something I added must have done ALTER TABLE command.
I'll re-post when I find the culprit.
Thanks for your help. |
|
|
|
 |
Guardian2003

|
Posted:
Fri Jan 02, 2004 8:21 pm |
|
I just checked the install SQL file for Nuke 7.0 Final and although I'm no expert, it seems it did indeed add the 'extra' field 'mod_group'.
Code:CREATE TABLE nuke_modules (
mid int(10) NOT NULL auto_increment,
title varchar(255) NOT NULL default '',
custom_title varchar(255) NOT NULL default '',
active int(1) NOT NULL default '0',
view int(1) NOT NULL default '0',
inmenu tinyint(1) NOT NULL default '1',
mod_group int(10) default '0',
PRIMARY KEY (mid),
KEY mid (mid),
KEY title (title),
KEY custom_title (custom_title)
) TYPE=MyISAM;
|
However, you know who didn't include any data for this field when populating the DB e.g. Code:INSERT INTO nuke_modules VALUES (1, 'AvantGo', 'AvantGo', 1, 0, 1, 0);
|
Am I right in thinking these insert commands should have been;
Code:INSERT INTO nuke_modules VALUES (1, 'AvantGo', 'AvantGo', 1, 0, 1, 0, 0);
| to allow for the extra field or am I just too tired to think straight (2.30 in the morning over here). |
|
|
|
 |
Guardian2003

|
Posted:
Sat Jan 03, 2004 8:11 am |
|
Now I have had some sleep, I see that mod_group isnt the problem as this ia part of the orignal nuke 7.0+ install sql.
The problem (in my case) seems to be the additional field 'mcid' so now I have to rot round and find out what module added that to my modules table. |
|
|
|
 |
|