Jump to content

Recommended Posts

Posted
2 hours ago, gnashxalex said:

Unable to vote for the server. Err no.3

 

Intenta modificando esto en los archivos SQL.

CREATE TABLE IF NOT EXISTS `cp_vfp_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sites_id` int(11) NOT NULL,
  `timestamp_expire` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timestamp_voted` timestamp NULL,
  `ipaddress` varchar(155) NOT NULL,
  `account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE IF NOT EXISTS `cp_vfp_sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `votename` varchar(25) NOT NULL,
  `voteurl` varchar(255) NOT NULL,
  `voteinterval` int(11) NOT NULL,
  `votepoints` int(11) NOT NULL,
  `imgname` varchar(255) DEFAULT NULL,
  `imgurl` varchar(255) DEFAULT NULL,
  `datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

ALTER TABLE `cp_createlog` ADD `votepoints` int(11) NOT NULL DEFAULT '0';
Posted (edited)
5 hours ago, Mael said:

Intenta modificando esto en los archivos SQL.


CREATE TABLE IF NOT EXISTS `cp_vfp_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sites_id` int(11) NOT NULL,
  `timestamp_expire` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timestamp_voted` timestamp NULL,
  `ipaddress` varchar(155) NOT NULL,
  `account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE IF NOT EXISTS `cp_vfp_sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `votename` varchar(25) NOT NULL,
  `voteurl` varchar(255) NOT NULL,
  `voteinterval` int(11) NOT NULL,
  `votepoints` int(11) NOT NULL,
  `imgname` varchar(255) DEFAULT NULL,
  `imgurl` varchar(255) DEFAULT NULL,
  `datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

ALTER TABLE `cp_createlog` ADD `votepoints` int(11) NOT NULL DEFAULT '0';

También tengo este mismo problema, intenté agregar esta tabla sql y me dio lo mismo.

Unable to vote for the server. Err no.3

 

#Edit

¡Encontré el problema!
Debe crear una cuenta a través de fluxcp, para que su cuenta se genere en "cp_createlog". Estaba tratando de usar una cuenta creada manualmente. Entonces dio el error.

Edited by KeyMaster
  • Upvote 1
Posted
5 hours ago, KeyMaster said:

También tengo este mismo problema, intenté agregar esta tabla sql y me dio lo mismo.

Unable to vote for the server. Err no.3

 

#Edit

¡Encontré el problema!
Debe crear una cuenta a través de fluxcp, para que su cuenta se genere en "cp_createlog". Estaba tratando de usar una cuenta creada manualmente. Entonces dio el error.

 

10 hours ago, Mael said:

Intenta modificando esto en los archivos SQL.


CREATE TABLE IF NOT EXISTS `cp_vfp_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sites_id` int(11) NOT NULL,
  `timestamp_expire` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timestamp_voted` timestamp NULL,
  `ipaddress` varchar(155) NOT NULL,
  `account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE IF NOT EXISTS `cp_vfp_sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `votename` varchar(25) NOT NULL,
  `voteurl` varchar(255) NOT NULL,
  `voteinterval` int(11) NOT NULL,
  `votepoints` int(11) NOT NULL,
  `imgname` varchar(255) DEFAULT NULL,
  `imgurl` varchar(255) DEFAULT NULL,
  `datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

ALTER TABLE `cp_createlog` ADD `votepoints` int(11) NOT NULL DEFAULT '0';

Gracias por la ayuda, pero ahora no me tira ningun error, ahora le doy click a votar y no pasa nada y me cuenta como si me ha votado ya, pero no me redirecciona al top para votar

Posted (edited)
11 hours ago, KeyMaster said:

También tengo este mismo problema, intenté agregar esta tabla sql y me dio lo mismo.

Unable to vote for the server. Err no.3

 

#Edit

¡Encontré el problema!
Debe crear una cuenta a través de fluxcp, para que su cuenta se genere en "cp_createlog". Estaba tratando de usar una cuenta creada manualmente. Entonces dio el error.

 

Hola

¿Qué versión de mysql ocupas, y distro linux? En los logs de flux no aparece nada y tampoco en el debug mode.

Me hice una cuenta y ahora obtengo el error:

Unable to vote for the server. Err no. 1

Edited by Dark Lunacy
Posted
On 12/1/2020 at 13:44, Dark Lunacy said:

Hola, gracias por la ayuda. He seguido tus pasos que recomendaste más arriba, más esto último; aún así me sigue tirando el Unable to vote for the server. Err no. 1

Consultaré con Sanasol, ya han pasado muchos meses desde que funcionaba el vote addon.

Por cierto, publicación trasladada a una mejor ubicación.

Posted

Hola de nuevo, gracias!

Bueno, he logrado hacer desaparecer el Error No 1 desactivando el ''EnableVoteIPCheck''  /addons/voteforpoints/config/addon.php

Me parece que está relacionado a estas líneas de código en /addons/voteforpoints/modules/voteforpoints/index.php:

	// voter is using invalid ip
	if (Flux::config('EnableIPVoteCheck') && !empty($_SERVER["HTTP_X_FORWARDED_FOR"]) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_CLIENT_IP']) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_X_FORWARDED']))

Solo que ahora al votar, no da los puntos.

Posted
On 1/12/2020 at 11:29 AM, Dark Lunacy said:

Hola de nuevo, gracias!

Bueno, he logrado hacer desaparecer el Error No 1 desactivando el ''EnableVoteIPCheck''  /addons/voteforpoints/config/addon.php

Me parece que está relacionado a estas líneas de código en /addons/voteforpoints/modules/voteforpoints/index.php:


	// voter is using invalid ip
	if (Flux::config('EnableIPVoteCheck') && !empty($_SERVER["HTTP_X_FORWARDED_FOR"]) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_CLIENT_IP']) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_X_FORWARDED']))

Solo que ahora al votar, no da los puntos.

 

On 1/11/2020 at 11:39 AM, gnashxalex said:

 

Gracias por la ayuda, pero ahora no me tira ningun error, ahora le doy click a votar y no pasa nada y me cuenta como si me ha votado ya, pero no me redirecciona al top para votar

https://github.com/sanasol/FluxCP_Addons-VoteForPoints/commit/68331492cbc96b35c4b5e29ddf24921c606dc11b

  • Upvote 1
  • 1 year later...
  • 1 year later...
Posted (edited)
El 1/17/2020 a las 8:31, Mael dijo:

Me alegra, este complemento apoyará a muchos.

Hola acabo de instalar este sistema de votos pero tengo un problema al momento de agregar alguna pagina para votos este solo se recarga y no agrega la nueva pagina aparece como si no hubiera echo nada no me sale ningun error en pantalla cual sera mi error?

 

 

ademas de que no deja entrar a los usuarios que no son admin al panel de votacion

https://prnt.sc/OYBippYKAbDm

Edited by Notorius

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...