Second contest that is open

6 months 2 weeks ago #2225
Topic Author
Richard  Bankert's Avatar
Posts: 6
We are sorry, an error has occured

Everything was working fine, I then set it to go live this morning and now whenever we click on vote it says "We are sorry, an error has occured"
Of course this is supposed to go live 1/2 hour ago, what gives??

Simply create a user here and try to vote.
countryfest.ca/index.php/our-birthday-your-party

Last edit: 6 months 2 weeks ago by Richard Bankert.
The topic has been locked.
6 months 2 weeks ago #2226
Topic Author
Richard  Bankert's Avatar
Posts: 6
Second contest that is open

I forgot I put that contest on a timer you have to use a duplicate contest countryfest.ca/index.php/contest2

The topic has been locked.
6 months 2 weeks ago #2227
Dmitry's Avatar
Posts: 677
Second contest that is open

Hi Richard.

What is in the log - administrator/logs/com_competition.log ?

Best regards,
Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 5-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.
6 months 2 weeks ago #2228
Topic Author
Richard  Bankert's Avatar
Posts: 6
Second contest that is open

Ahhh thank you. It appears the random option was causing issues and not allowing voting. I switched back to rating and it worked.

2019-04-08T14:52:46+00:00 ERROR 205.200.190.29 com_competition Unknown column 'random' in 'order clause'


> #0 /home/countryfest/public_html/libraries/joomla/database/driver.php(1695): JDatabaseDriverMysqli->execute()
#1 /home/countryfest/public_html/components/com_competition/models/participant.php(765): JDatabaseDriver->loadObjectList('id')
#2 /home/countryfest/public_html/components/com_competition/models/participant.php(160): CompetitionModelParticipant->setPreviousNextItem(Object(stdClass))
#3 /home/countryfest/public_html/components/com_competition/controller.php(323): CompetitionModelParticipant->getItem(1)
#4 /home/countryfest/public_html/components/com_competition/controller.php(196): CompetitionController->processParticipant(Object(CompetitionModelParticipant))
#5 /home/countryfest/public_html/libraries/src/MVC/Controller/BaseController.php(710): CompetitionController->display()
#6 /home/countryfest/public_html/components/com_competition/competition.php(48): Joomla\CMS\MVC\Controller\BaseController->execute('')
#7 /home/countryfest/public_html/libraries/src/Component/ComponentHelper.php(402): require_once('/home/countryfe...')
#8 /home/countryfest/public_html/libraries/src/Component/ComponentHelper.php(377): Joomla\CMS\Component\ComponentHelper::executeComponent('/home/countryfe...')
#9 /home/countryfest/public_html/libraries/src/Application/SiteApplication.php(194): Joomla\CMS\Component\ComponentHelper::renderComponent('com_competition')
#10 /home/countryfest/public_html/libraries/src/Application/SiteApplication.php(233): Joomla\CMS\Application\SiteApplication->dispatch()
#11 /home/countryfest/public_html/libraries/src/Application/CMSApplication.php(196): Joomla\CMS\Application\SiteApplication->doExecute()
#12 /home/countryfest/public_html/index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#13 {main}

The topic has been locked.
6 months 2 weeks ago #2229
Dmitry's Avatar
Posts: 677
Second contest that is open

Well it is a bug :pinch: We will fix it in the next version :side:

Meanwhile here is the quick fix for random order. Open /components/com_competition/models/participant.php and on line 737 change this:

$this->setState(
	'list.ordering',
	$app->getUserState(
		$this->option . '.competition.' . $item->competition_id . '.filter.ordering',
		$item->params->get('participants_default_order', 'votes')
	)
);
to
$ordering = $app->getUserState(
	$this->option . '.competition.' . $item->competition_id . '.filter.ordering',
	$item->params->get('participants_default_order', 'votes')
);

if ($ordering == 'random')
{
	$ordering = $item->params->get('participants_default_order', 'votes');
}

$this->setState('list.ordering', $ordering);

Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 5-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.
6 months 2 weeks ago #2230
Topic Author
Richard  Bankert's Avatar
Posts: 6
Second contest that is open

Thanks

The topic has been locked.

You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.

Product Latest Update