Author |
Message |
porcupinepc
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA
|
Posted:
Tue Dec 16, 2003 7:57 pm |
|
I just did a upgrade from 6.9-7 and it seems that when i install a module and save it, it doesnt see to save and appear on the main screen. is there a known bug?
Joe |
|
|
 |
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Dec 16, 2003 9:14 pm |
|
Try this. Open your admin/modules/modules.php
FindCode:sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')", $dbi);
| Change it toCode:sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0')", $dbi);
| Did that help? |
|
|
|
 |
porcupinepc

|
Posted:
Tue Dec 16, 2003 9:40 pm |
|
oops sorry raven, i mean the block does not show up. Ive tried several blocks and they wont activate
I got block/module mixed up but its blocks thats giving me problems |
|
|
|
 |
Raven

|
Posted:
Tue Dec 16, 2003 9:49 pm |
|
Okay, how about this one? Open modules.php in a text editor (a1, a2, & b1) and find the following lineCode:if ($view == 1 AND is_user($user) AND is_group($user, $name) OR is_admin($admin)) {
| Change it toCode:if ($view == 1 AND (is_user($user) || is_group($user, $name) || is_admin($admin))) {
|
|
|
|
|
 |
porcupinepc

|
Posted:
Tue Dec 16, 2003 10:04 pm |
|
what is a1,a2 & b1?
I checked admin/modules.php as well as the modules.php in the root. i dont see that code.
Joe |
|
|
|
 |
fury
Worker


Joined: Sep 09, 2003
Posts: 165
|
Posted:
Tue Dec 16, 2003 10:09 pm |
|
did you run the upgrade script, for if you did not this is why your blocks are not showing up. The file must be in your Nuke Root directory then just type the url in your browser and it does it all. The script name path if you got your versions from here is upgrades\6.x\upgrade69_70.php move the upgrade69_70.php to your Nuke Root directory then run it. Let me know
Thanks
Fury |
|
|
|
 |
porcupinepc

|
Posted:
Tue Dec 16, 2003 10:10 pm |
|
|
|
 |
Raven

|
Posted:
Tue Dec 16, 2003 11:06 pm |
|
porcupinepc wrote: | what is a1,a2 & b1?
I checked admin/modules.php as well as the modules.php in the root. i dont see that code.
Joe | Forget that part. Just find that line of code. It's on line 48 in modules.php, not admin/modules.php. |
|
|
|
 |
CodyG
Life Cycles Becoming CPU Cycles

Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island
|
Posted:
Wed Dec 17, 2003 5:52 pm |
|
I've had that admin/modules/modules.php error before, in a 6.8 nuke and it's in my fresh 7.0 site too... or it was until 10 minutes ago.
Raven ... you are brilliant, thank you again for sharing a fix which allows me to cross another bug off my bug list. I wish there was an error log for when an error is caused by sql mismatch. Is there? |
|
|
|
 |
twelves
Regular


Joined: Aug 22, 2003
Posts: 84
|
Posted:
Thu Jan 01, 2004 6:43 pm |
|
Akk.. Not me.
I did the fix for modules not showing in admin.
Fresh install of 7.0 on a spanking new webpage.
Im going to look in nukecops CVS.
I dunno. Rats.
Fix did not work for me.  |
|
|
|
 |
twelves

|
Posted:
Thu Jan 01, 2004 6:52 pm |
|
O yes. thats it!
I opened the same file twice.
OOPS>
My bad.
Thanks raven!
Fixed again!
 |
|
|
|
 |
|