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
porcupinepc
Involved
Involved



Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Tue Dec 16, 2003 7:57 pm Reply with quote

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



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Dec 16, 2003 9:14 pm Reply with quote

Try this. Open your admin/modules/modules.php
Find
Code:
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')", $dbi);
Change it to
Code:
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0')", $dbi);
Did that help?
 
View user's profile Send private message
porcupinepc







PostPosted: Tue Dec 16, 2003 9:40 pm Reply with quote

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







PostPosted: Tue Dec 16, 2003 9:49 pm Reply with quote

Okay, how about this one? Open modules.php in a text editor (a1, a2, & b1) and find the following line
Code:
if ($view == 1 AND is_user($user) AND is_group($user, $name) OR is_admin($admin)) {
Change it to
Code:
if ($view == 1 AND (is_user($user) || is_group($user, $name) || is_admin($admin))) {
 
porcupinepc







PostPosted: Tue Dec 16, 2003 10:04 pm Reply with quote

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
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Tue Dec 16, 2003 10:09 pm Reply with quote

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
 
View user's profile Send private message
porcupinepc







PostPosted: Tue Dec 16, 2003 10:10 pm Reply with quote

My PHP- Nuke site is www.porcupinepc.com/forums forums being where nuke is. I had the upgrade file in the forums directory

Joe
 
Raven







PostPosted: Tue Dec 16, 2003 11:06 pm Reply with quote

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

PostPosted: Wed Dec 17, 2003 5:52 pm Reply with quote

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. Very Happy

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?
 
View user's profile Send private message
twelves
Regular
Regular



Joined: Aug 22, 2003
Posts: 84

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

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







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

O yes. thats it!
I opened the same file twice.

OOPS>

My bad.

Thanks raven!
Fixed again!

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