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 ?
gr82meetu78 Nuke Soldier
Joined: Nov 09, 2003
Posts: 16
Posted:
Tue Nov 11, 2003 11:07 pm
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.
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