You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 153 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Cannot Add Blocks [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Thu Feb 26, 2004 12:25 pm Reply with quoteBack to top

This seems to affect any 'patched' version of php-nuke.

For some reason any attempt to ADD a block results in nothing happening.

Tested on 6.8 and 6.9 with all patches (including speed patches etc.)

My knowledge on this indicates that the problem is with the following query found on or near line 404 or admin/modules/blocks.php in the function blocksadd():

sql_query("insert into ".$prefix."_blocks values (NULL, '$bkey', '$title', '$content', '$url', '$bposition', '$weight', '$active', '$refresh', '$btime', '$blanguage', '$blockfile', '$view')", $dbi);

I see three (four?) problems with this instruction:

1. the BID is NULL - The database defines this as auto-incrementing and non-null.

2. $btime does not exist in the database instead it exists as $time.

3. (4.) There are two fields expire and action that do not get added in this query

I'm trying to review my archives to see what happened to change this, but I'm assuming it happened some time back.

TIA!

J.
Find all posts by JeruvyView user's profileSend private messageICQ Number
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Thu Feb 26, 2004 1:07 pm Reply with quoteBack to top

I'm a little confused. Tested with all patches including speed patches what do you mean speed patch? What other patches have you applied?

_________________
http://castlecops.com
<b>Microsoft MVP Windows-Security 2005</b> <img src="http://castlecops.com/zx/Paul/mvp.gif">
Find all posts by IACOJView user's profileSend private message
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Thu Feb 26, 2004 3:00 pm Reply with quoteBack to top

Speed patches applied, but I don't beleive these caused anything of this nature, but so everyone knows.

Review the new 'Speed Freaks' forum for details of the changes here at nukecops.

J.

_________________
J.
j e r u v y a t y a h o o d o t c o m
Find all posts by JeruvyView user's profileSend private messageICQ Number
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Fri Feb 27, 2004 10:53 am Reply with quoteBack to top

Nobody read this forum?

J.

_________________
J.
j e r u v y a t y a h o o d o t c o m
Find all posts by JeruvyView user's profileSend private messageICQ Number
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Sat Feb 28, 2004 8:50 am Reply with quoteBack to top

Ok, here the latest.

I cannot see any changes to the files, so I'm assuming the changes were due to a sql file that was executed.

I fixed the $time variable in the database to $btime, since blocksadd() is the only function using it I can see that causing problems.

BUT it did not solve the problem.

At this point my fingers are pointing at two culprits:

MS-Analysis

Coppermine

I will review both and post back again.

J.

_________________
J.
j e r u v y a t y a h o o d o t c o m
Find all posts by JeruvyView user's profileSend private messageICQ Number
scottr
Support Staff
Support Staff


Joined: Apr 28, 2003
Posts: 511

Location: Southern California

PostPosted: Sat Feb 28, 2004 9:15 am Reply with quoteBack to top

the insert statement syntax looks fine.

1.the first value is suppose to be null to let the database assign it a value since it's auto_increment.

2. $btime is a variable name and can be named whatever
the programmer decided, leave that alone.

3. (4.) that's your problem, your nuke_blocks table has those 2 extra columns
since you applied an addon that was based on 7.0
but your insert statement still thinks you're running 6.9 or less because you are.

_________________
http://www.ierealtor.com/modules.php?name=Downloads&d_op=viewdownload&cid=2
IP Tracking (v3.5 latest version) and other nuke addons
Find all posts by scottrView user's profileSend private messageSend e-mailVisit poster's website
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Sat Feb 28, 2004 9:33 am Reply with quoteBack to top

No I'm not actually I've modified 7.0 to not work with the added fields (they don't exist, and I've double checked my patches to make sure they are succinct. It looks like my problem is old, and due to the modules broken bug I've found in the 'BLOCKS' forum.

Now I need to clarify what the fix is. I see LOTS of user's with this problem, and no clear fix.

J.

_________________
J.
j e r u v y a t y a h o o d o t c o m
Find all posts by JeruvyView user's profileSend private messageICQ Number
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Sat Feb 28, 2004 9:33 am Reply with quoteBack to top

Also 6.8 and 6.9 don't have them either...but they are still broken as well.

J.

_________________
J.
j e r u v y a t y a h o o d o t c o m
Find all posts by JeruvyView user's profileSend private messageICQ Number
Jeruvy
Lieutenant
Lieutenant


Joined: Jul 09, 2003
Posts: 293


PostPosted: Sat Feb 28, 2004 10:02 am Reply with quoteBack to top

Yup, it appears my problems stem from a problem with the admin/modules/module.php not blocks.php as I thought.

So I'm not going to review the sql files in the patches =)

Doesn't look like MS-Analysis or Coppermine had any affect to cause this.

J.

_________________
J.
j e r u v y a t y a h o o d o t c o m
Find all posts by JeruvyView user's profileSend private messageICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.611 Seconds - 193 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::