Jump to content
  • 0

Vote for Points error when deleting.


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Hi.. I'm experiencing this problem using jaypee's vote for points when deleting vote points entry..

 

 

Server error
The website encountered an error while retrieving http://ethereal-ro.com/?module=voteforpoints&action=delete&sid=1. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

 

I have currently this code..

 

 
<?phpinclude ('function.php');/*FluxCP Vote For PointsDeveloped By: JayPee MateoEmail: [email protected]*/
//This will list the sites
$this->loginRequired();
$vp = Flux::config('FluxTables.Sites');
$vp_logs = Flux::config('FluxTables.Logs');
$site_id = $params->get('sid');if(preg_match("/^[0-9]{1,}$/",$site_id)){
    $delete = $params->get('Delete');
    if(!empty($delete))    {
    //Delete site
        $sql = "DELETE FROM {$server->loginDatabase}.{$vp} WHERE site_id=?";
        $sth = $server->connection->getStatement($sql);
        $sth->execute(array($site_id));    //We need to delete database that connected to the site
        $sql = "DELETE FROM {$server->loginDatabase}.{$vp_logs} WHERE f_site_id=?";
        $sth = $server->connection->getStatement($sql);
        $sth->execute(array($site_id));
        $this->redirect("index.php?module=voteforpoints&action=list");
    }
    $sql = "SELECT site_name,address,points,blocking_time,banner,banner_url FROM {$server->loginDatabase}.$vp WHERE site_id=?";
    $sth = $server->connection->getStatement($sql);    $sth->execute(array($params->get('sid')));
    $vp = $sth->fetch();    if(empty($vp))        $error[count($error)] = Flux::message("Invalid Site Id.");
    else    {
        $b_time = strBlockTime($vp->blocking_time);
        $blocking_time = explode(":",$b_time);
        if($blocking_time[0] == "00")
            $hours = 24;
        else
            $hours = $blocking_time[0];
        $minutes = $blocking_time[1];
    }
}
else
    $error[count($error)] = Flux::message("INVALID_VOTING_SITE");
?>
 

 

how can i fix it?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

×
×
  • Create New...