Vote.php error Website 

Newbie Spellweaver
Joined
Dec 27, 2013
Messages
10
Reaction score
0
Hi, I got this problem when trying to vote.

Liquicity - Vote.php error - RaGEZONE Forums


---------

My Vote.php:
Liquicity - Vote.php error - RaGEZONE Forums
 
Hi, I got this problem when trying to vote.

Liquicity - Vote.php error - RaGEZONE Forums


---------

My Vote.php:
Liquicity - Vote.php error - RaGEZONE Forums

You're posting this in the wrong section, but I'll help you through this. Check your MySQL Query Browser and check your table and check if you have a table called 'votepoints' or 'votepoint' or 'votingpoint' and if you do check if it says one of those and change your Vote.php 'votingrecords' to the designated name.
 
Upvote 0
Look for all the SQL queries, and test them out in your database.

There will be an error somewhere, put it here.

OR

Find in your code, Error - Could not update vote points!
It should be something like
... or die('Error - Could not update vote points!')

replace the die part with
die(mysqli_error())

If the above doesn't work, mysql_error() should work
Paste the error here
I haven't seen the code yet, so not sure.
 
Upvote 0
Look for all the SQL queries, and test them out in your database.

There will be an error somewhere, put it here.

OR

Find in your code, Error - Could not update vote points!
It should be something like
... or die('Error - Could not update vote points!')

replace the die part with
die(mysqli_error())

If the above doesn't work, mysql_error() should work
Paste the error here
I haven't seen the code yet, so not sure.

I did that and the "Could not update vote points" is fixed, but now it shows me blank page
 
Upvote 0
New: $earnedpoints = true;
if ($earnedpoints == true) {
if ($account != '') {
$result = $mysqli->query("UPDATE accounts SET $colvp = $colvp + $gvp, $colnx = $colnx + $gnx WHERE name='".$account."'") or die (mysqli_error());
}
$funct_msg = '<meta http-equiv="refresh" content="0; url='.$vlink.'">';
$redirect = true;
}
}


picture:
 
Upvote 0
Hi.
There are variables which have not been defined.
Paste the following in your config.php (anywhere above line 23)
PHP:
$colvp = ""; // Vote Point Column Name
$colnx = ""; // NX Column Name
$gvp = 1; // How much VP should be given per vote?
$gnx = 10000; // How much NX should be given per vote?
Revert your vote.php to how it was in the beginning, and it will work.
This has been fixed in the latest MapleSimplicity update.
 
Upvote 0
Back