PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
twelves
Regular
Regular


Joined: Aug 22, 2003
Posts: 84

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

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 to the forums!


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: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
twelves
Regular
Regular


Joined: Aug 22, 2003
Posts: 84

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

Only registered users can see links on this board!
Get registered or login to the forums!


He fixed it!

Try the first fix in the link.

Raven!!

Thanks! Very Happy
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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.
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum