Extension

Archived
Forum
(read-only)

Unique Channel Fields

ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Simon Andersohn

     

Error with Channel Form

Feature Request

jphansen
jphansen

Hi Simon,

Thanks for the free software. Works great within the CP. I’m trying to use it in a Channel Form form, and getting the error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE::$api_channel_entries

Filename: unique_channel_fields/ext.unique_channel_fields.php

Line Number: 321

Fatal error: Call to a member function _set_error() on a non-object in /www/facs/system/expressionengine/third_party/unique_channel_fields/ext.unique_channel_fields.php on line 321

Any chance to make this Channel Form compatible?

Best Wishes,

Jimmy

Sy
# 1
Developer
Sy

Hi Jimmy,

I have just updated this. Could you download a fresh copy and let me know if this works for you:
https://github.com/ignetic/ee-unique-channel-fields/archive/master.zip

Many thanks
Simon

jphansen
# 2
jphansen

Hi Simon,

Thanks for updating. I tried this and now it’s allowing duplicate values for a field I specified should be unique, not throwing any error at all.

Best Wishes,

Jimmy

Sy
# 3
Developer
Sy

I have had another look at this and added the required hook for channel forms. All tested now but please download another copy and let me know if this works for you.

Thanks
Simon

jphansen
# 4
jphansen

Wonderful, works!

Thanks, Simon.