Skip to main content

#133 Field List error

Posted in ‘NorrCompetition’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
ea-php82

Latest post by b2z on Monday, 30 September 2024 16:39 EEST

bizguy

When I attempt to delete or Unpublish a Field I get the following error and the item remain in a published state.

Unknown column 'published' in 'field list'

Please advise.

b2z

Hi Ed!

I can confirm the bug. Interesting that it was hidden for so long time. Anyway here is the easy fix:

1. Open file /administrator/components/com_competition/tables/field.php

2. Find this peace of code (line 55-60):

public function __construct(&$db)
{
    parent::__construct('#__competition_fields', 'id', $db);
}

3. Change it to:

public function __construct(&$db)
{
    $this->setColumnAlias('published', 'state');

    parent::__construct('#__competition_fields', 'id', $db);
}
Please let me know did it help or not.
 
Kind regards,
Dmitrijs

bizguy

Hi Dmitrijs,

Yes, the fix provided allowed me to Unpublish and Trash a Field.

Thanks for the quick reply and fix!

Ed

b2z

Great! We will include this fix in the next release.

Kind regards,
Dmitrijs
Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is 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.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.