Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 19, 2013, 07:56:46 am

Login with username, password and session length
Members
Total Members: 10758
Latest: murdocklawless
Stats
Total Posts: 32349
Total Topics: 5474
Online Today: 60
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 51
Total: 52
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Error in 1.1  (Read 2688 times)
rjmiz
Jr. Member
**
Offline Offline

Posts: 97



View Profile
« on: November 02, 2006, 08:44:53 am »

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID_MEMBER = 48 LIMIT 1' at line 1
File: /home/content/r/j/m/rjmiz/html/smf/Sources/Gallery.php
Line: 3198

Message I get when I go to
File Space Manager>Recount Space Used

Hmmmm my problem? or is it yours?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #1 on: November 02, 2006, 10:24:33 am »

I have a hotfix for it.

Open Sources/Gallery.php
Around line 3196 in function RecountFileQuotaTotals
Find
Code:
mysql_free_result($dbresult2);
//Update the quota
db_query("UPDATE {$db_prefix}gallery_userquota SET totalfilesize = $total WHERE ID_MEMBER = " . $row['ID_MEMBER'] . " LIMIT 1", __FILE__, __LINE__);
Change to
Code:
if($total == '')
$total = 0;

mysql_free_result($dbresult2);
//Update the quota
db_query("UPDATE {$db_prefix}gallery_userquota SET totalfilesize = $total WHERE ID_MEMBER = " . $row['ID_MEMBER'] . " LIMIT 1", __FILE__, __LINE__);
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 15, 2013, 11:31:24 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]

[May 07, 2013, 02:37:14 pm]

[May 06, 2013, 10:29:56 pm]

[May 04, 2013, 03:22:01 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.184 seconds with 18 queries.