Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
twelves
Regular
Regular



Joined: Aug 22, 2003
Posts: 84

PostPosted: Thu Jan 01, 2004 6:21 pm Reply with quote

Clean install of version 7

New 3rd party Modules wont show up in Admin or Modules block. [ Only registered users can see links on this board! Get registered or login! ]

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?
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Jan 01, 2004 8:07 pm Reply with quote

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'.
 
View user's profile Send private message Send e-mail
twelves







PostPosted: Thu Jan 01, 2004 9:10 pm Reply with quote

[ Only registered users can see links on this board! Get registered or login! ]

He fixed it!

Try the first fix in the link.

Raven!!

Thanks! Very Happy
 
Guardian2003







PostPosted: Fri Jan 02, 2004 5:26 pm Reply with quote

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

PostPosted: Fri Jan 02, 2004 7:21 pm Reply with quote

Guardian,

That is not in the default released version of nuke v7.0. However, it should work. Try this for fun
Code:
$db->sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')");
 
View user's profile Send private message
Guardian2003







PostPosted: Fri Jan 02, 2004 8:10 pm Reply with quote

Nope, that didn't work. Confused
Was getting a bit exasperated so I commented out my line and added your fix in its place Confused Rolling Eyes
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







PostPosted: Fri Jan 02, 2004 8:21 pm Reply with quote

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







PostPosted: Sat Jan 03, 2004 8:11 am Reply with quote

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.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©