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, 51 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - the array sign in downloads [ ]
 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
Almaster
Nuke Cadet
Nuke Cadet


Joined: Oct 23, 2003
Posts: 1


PostPosted: Fri Oct 31, 2003 7:49 am Reply with quoteBack to top

it was working great but some days ago my number downloads came as array i upgradet to Enhanced Downloads Module 1.6

and something else Fatal error: Unsupported operand types in /home/altini/public_html/modules/Downloads/index.php on line 958


would any boddy help me ?
Find all posts by AlmasterView user's profileSend private message
gr82meetu78
Nuke Soldier
Nuke Soldier


Joined: Nov 09, 2003
Posts: 16


PostPosted: Tue Nov 11, 2003 11:07 pm Reply with quoteBack to top

Ok to start with, this part of the forums really is for fixes only, you should have posted this question in another part of the forums. Otherwise people will tend to ignore it.

The error you are recieving is due to the fact that something on line 958 is not evaluating like it should.

Line 958 in my copy of the program is a division problem. Where it is basically determining how many pages of downloads there are.

I modified this line because I changed a line in the sql abstraction layer, so that it would suppress the warning message is was getting upon running this program. By placing @ in front of the mysql_fetch_row statement.

(NOTE: In PHP the at @ symbol means to suppress errors and warnings, unlike in PERL where it means ARRAY i.e. @mysql_fetch_row(result); means fetch the row, but suppress any errors, not make an array out the the fetched row)

This caused the query to return NULL results (for a reason I am still trying to determine)

So to combat this problem I added this statement on line 958 and pushed all the other lines down by one line number.

if($ns_dl_num_per_page < 1){$ns_dl_num_per_page =1;}

This will prevent a divide by zero error that can occur if you suppress warnings, in the sql abstraction layer.

Well thats the best fix I can think of for your problem. I am having to make ALOT of assumptions here, due to the broken english in your post.

But this is how I did deal with a similar error.

If you could give more details, like what YOUR lines
950 through 960 contain, I might be able to give you more relevant help.
Find all posts by gr82meetu78View user's profileSend private messageVisit poster's website
gr82meetu78
Nuke Soldier
Nuke Soldier


Joined: Nov 09, 2003
Posts: 16


PostPosted: Wed Nov 12, 2003 12:04 am Reply with quoteBack to top

Ummm just realized I had forgotten to do something when I installed this program. Make sure to go to http://www.yoursite.com/nukestyles_new_install.php

That fixes the whole NULL results issue I was having earlier and basically negates then entire fix above Smile
Find all posts by gr82meetu78View user's profileSend private messageVisit poster's website
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
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.178 Seconds - 270 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::