The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
$var = $var unexpected result
I run a vBulletin plugin that has always worked fine until recently i upgraded Apache and PHP from 5.4 to 5.5 and suddonly a calculation isnt working the way it should do:
PHP Code:
FULL SCRIPT PHP Code:
|
#2
|
|||
|
|||
Try
PHP Code:
|
#3
|
||||
|
||||
Same result, changes the value to -1
|
#4
|
||||
|
||||
Try putting the statement:
PHP Code:
|
#5
|
||||
|
||||
Database Error
]]> Database error in vBulletin 4.2.3 Invalid SQL: UPDATE user SET reputation= WHERE userid=2; MySQL Error : 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 userid=2' at line 1 Error Number : 1064 Request Date : Saturday, March 18th 2017 @ 03:37:01 PM Error Date : Saturday, March 18th 2017 @ 03:37:01 PM Script : http://literecords.com/sandbox/post_thanks.php Referrer : http://literecords.com/sandbox/showt...php?2-rep-test Classname : vB_Database_MySQLi MySQL Version : 5.5.54-cll ]]> |
#6
|
||||
|
||||
Rather than use a db query to get the browsing user's reputation, I would simply use:
PHP Code:
PHP Code:
|
#7
|
||||
|
||||
Im not sure if that work as i use 2 queries in the full plugin script is:
PHP Code:
AHHHH it f*cking works!! You absolute legend! Do you make music? I'll give you a privileged account haha! --------------- Added [DATE]1489852778[/DATE] at [TIME]1489852778[/TIME] --------------- When i did it for the -1 part it worked great but when i adapted to the +1 part it give me the same database error as earlier ^^ PHP Code:
PHP Code:
--------------- Added [DATE]1489853318[/DATE] at [TIME]1489853318[/TIME] --------------- It's deducting -1 from thread starter's reputation instead of +1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|