Author |
Message |
jjmusicpro
Involved


Joined: Jul 12, 2005
Posts: 283
|
Posted:
Mon Jan 21, 2008 9:41 pm |
|
So i added a few more modules, however they dont show under my modules list. |
_________________ - JJMUSICPRO
Myspacetoolbelt.com || RankBook.com || GamerBomb.com || MyspaceJar.com |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Mon Jan 21, 2008 9:59 pm |
|
Well you are not giving us much to go on. Version? for instance?
In 2.10 you need to go to the ACP and into modules to see new modules. Older versions constantly "polled" the modules table for new modules even if the user was not an admin but we centralized it in the ACP and specifically under modules administration in 2.10. So give that a try if that's what you are using but you are used to the "old" way. |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Jan 22, 2008 6:03 am |
|
I'm sure it wasn't intentional, so I removed the duplicate post about this.
fkelly is correct - In RN 2.10+, after adding new module files, you must go to the modules administration page, which recognizes the new modules and adds it to the list. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
jjmusicpro

|
Posted:
Tue Jan 22, 2008 6:24 am |
|
for some reason my new modles are not being added to the list. |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Jan 22, 2008 10:28 am |
|
What version are you using? Post the structure of your nuke_modules table |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
jjmusicpro

|
Posted:
Tue Jan 22, 2008 10:48 am |
|
how do i find out what version i have? i just downloaded it from here 2 months ago.
here is my db structure:
CREATE TABLE `nuke_modules` (
`mid` int(10) NOT NULL,
`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',
`groups` text NOT NULL,
`inmenu` tinyint(1) NOT NULL default '1',
`mod_group` int(10) default '0',
`admins` varchar(255) NOT NULL default '',
PRIMARY KEY (`mid`),
KEY `title` (`title`),
KEY `custom_title` (`custom_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
|
|
 |
fkelly

|
Posted:
Tue Jan 22, 2008 12:04 pm |
|
That looks like a 2.10 table to me. You can also look in the nuke_config table and there is a Version_Num field in there. It probably says rn2.10.01? But to resolve this go into administration, modules and see if you can add the modules there. They should be on the list if they are set up right. We can deal with what "set up right" entails if you don't see them on the admin screen. |
|
|
|
 |
jjmusicpro

|
Posted:
Tue Jan 22, 2008 12:13 pm |
|
yes its rn2.10.01
Ok when i go to admin/modules i only see the same ones ive always had, i dont see the new 6 or so i put in there.
yep, dont see them on admin screen  |
|
|
|
 |
fkelly

|
Posted:
Tue Jan 22, 2008 1:45 pm |
|
I was afraid you would say that. The way "this thing" works is that when you go into modules administration the file /admin/modules/modules.php reads your modules directory (that would be /nukeroot/modules) for all directory names that are there. So, if you added module xyz there should be a /nukeroot/modules/xyz directory. Then it takes that list of module names and reads the modules table (mysql) and if there is no record for that module name, it adds it to the table.
So could you check and see if you added a directory to /modules for each of your new modules? If you did, I'm not sure where we go next, we might have to put some diagnostics into your modules.php to see what's going on. Or look at your modules table thru phpmyadmin and see if the new modules are in there. |
|
|
|
 |
jjmusicpro

|
Posted:
Tue Jan 22, 2008 1:52 pm |
|
yep thats how i have it, and done it in the past.
i even did a test, i took the Feedback moduel and copies it and renamed it to FeedbackTesting
nothing still comes up with i go into my admin panel and models |
|
|
|
 |
fkelly

|
Posted:
Tue Jan 22, 2008 2:23 pm |
|
I just did the same thing. Went in thru cpanel and renamed feedback to feedbacktesting on my test system. Went into admin/modules and it was there and could be edited and/or activated.
Perhaps you could reload your /admin/modules/modules.php file from the distribution? I don't know what else to say. If that doesn't work we could put some echoes into the program at the point where it reads the directory names and get a better handle (no pun intended) on what's happening. But I gotta get away from this computer for a while. |
|
|
|
 |
catweazle
Regular


Joined: Oct 14, 2006
Posts: 60
Location: Norway
|
Posted:
Tue Jan 22, 2008 2:42 pm |
|
jjmusicpro wrote: | how do i find out what version i have? i just downloaded it from here 2 months ago.
here is my db structure:
Code:CREATE TABLE `nuke_modules` (
`mid` int(10) NOT NULL,
`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',
`groups` text NOT NULL,
`inmenu` tinyint(1) NOT NULL default '1',
`mod_group` int(10) default '0',
`admins` varchar(255) NOT NULL default '',
PRIMARY KEY (`mid`),
KEY `title` (`title`),
KEY `custom_title` (`custom_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
| |
Use phpMyAdmin and check your SQL database, and I think you will find that your "nuke_modules" table is missing a field (compared to the SQL query in your "root/admin/modules/modules.php" file).
fkelly wrote: | Then it takes that list of module names and reads the modules table (mysql) and if there is no record for that module name, it adds it to the table. |
The problem (I think) will be that the new modules isn't written to the database because there's a difference between the number of fields in the SQL query and the actual number of fields in your SQL database. If there's no update in your SQL database the new modules won't be shown in the list. |
_________________ Regards,
Catweazle. |
|
|
 |
fkelly

|
Posted:
Tue Jan 22, 2008 2:54 pm |
|
Catweazle, I was thinking the same thing, but I just came back to the 'puter to look at the table structure jjmusicpro posted earlier and it is correct for RN2.10. There are nine fields, I just went thru and compared them all and they are correct. The only open issue would be if he has an outdated modules.php file. I suggested he reupload it to be sure.
In RN2.20 there will be a database logging facility that can be turned on to help isolate situations like this. Because you are perfectly right, behind the scenes there can be a SQL error taking place and you'd never know it. |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Tue Jan 22, 2008 3:09 pm |
|
Maybe a permissions problem on the new directories? |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
catweazle

|
Posted:
Tue Jan 22, 2008 3:36 pm |
|
jjmusicpro's "nuke_modules" table and the "mid" field
Code: `mid` int(10) NOT NULL,
|
My "nuke_modules" table and the "mid" field
Code: `mid` int(10) NOT NULL, auto_increment
|
I'm using the same RN v2.10.01 |
|
|
|
 |
kguske

|
Posted:
Tue Jan 22, 2008 4:53 pm |
|
Anything in an error log? |
|
|
|
 |
fkelly

|
Posted:
Tue Jan 22, 2008 6:27 pm |
|
Bingo Cat. The lack of autoincrement is what's causing this. Jim, just go into phpmyadmin and add that attribute in the "extra" field if you can. I tried this on my test system and sure enough the table doesn't update. You get the message:
Quote: | January 22, 2008, 7:22 pm 1048 : Column 'mid' cannot be null
SQL was: INSERT INTO nuke_modules VALUES (NULL, 'Feedback', 'Feedback', 0, 0, '', 0, 1, 0) |
That's from the dblog that will be part of 2.20. With 2.10 you won't see a thing except the problems you've been having. |
|
|
|
 |
catweazle

|
Posted:
Wed Jan 23, 2008 3:10 am |
|
Great!!  |
|
|
|
 |
jjmusicpro

|
Posted:
Wed Jan 23, 2008 9:40 am |
|
perfect thanks guys, so how do i update my table now? |
|
|
|
 |
catweazle

|
Posted:
Wed Jan 23, 2008 11:27 am |
|
Log in to phpMyAdmin.
Klick on your database in the left window.
Klick on the Structure tab in the right window. Then click on the pencil-image (to the right) on the first line - which should be the line for the "mid" field settings.
In the Extras collumn to the right, select "auto_increment" from the dropdown-list, and the klick [Save] to save your new settings.
Log out from phpMyAdmin!
That should be it! |
|
|
|
 |
|