Skip to main content

#208 Error when competition with "end date" ends.

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
8.2.29

Latest post by SFB on Monday, 15 December 2025 14:14 EET

SFB

Hi there,

I'm getting an error when a competition ends and has set an end date which has passed.

CompetitionHelperFields::getCustomFieldValue(): Argument #1 ($type) must be of type string, null given, called in /home/demodesign/public_html/components/com_competition/models/competition.php on line 965

I can re-save the article without an end date so it's not possible to set it to "completed" without an error page.

Any ideas on how to solve this?

b2z

Hi Sven!

1) Are you saving competition on the front-end? I see that front-end model is being called. Please enable Debug in Joomla settings to get the full stack trace and paste it here.

2) What Contest Fields are used for this competition?

P.S.

For fast fix you can set the end date and status directly in the database. Find the table `competition_competitions` and modify columns `end_time` and `status` (should be set to 0).

Kind regards,

Dmitrijs

SFB

Hi Dmitrijs,

I'm trying to save the competition in the backend.

I'm using text and textarea fields.

You'll find the screenshot here:

https://i.postimg.cc/hvdxSZvQ/Screenshot-2025-12-15-at-10-57-40-PM.png

 

b2z

Ok, it seems I misunderstood you.

So you set end date and status to completed and then cannot open competition on the front-end?

SFB

Yes, that's correct. And it's past the end date. If it's before the end date, it works fine.

b2z

OK, found the bug.

For workaround please disable "Entry Field" parameter in competition settings under Layout Options in Listing Options section.

SFB

It works now.

Thanks!

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.