Developer
Supported
Unique Channel Fields
ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From Simon Andersohn
Expressionengine 3 compatibility
Feature Request
webmvp
|
Posted: 12 December 2017 06:14 AM |
|
|
|
Hello!
Would it be possible to have this extension comptatible with EE3?
Thanks!
|
|
|
Sy
|
Posted: 12 December 2017 05:00 PM |
# 1
|
|
Developer
|
Hi,
I’ve just been looking into a solution for this. I should have it available for you soon, maybe in the next day or two.
|
|
|
webmvp
|
Posted: 15 December 2017 12:40 PM |
# 2
|
|
|
Hello!
Any progress on this? :)
Thanks!
|
|
|
Sy
|
Posted: 18 December 2017 07:09 AM |
# 3
|
|
Developer
|
Hi. This took a little longer than expected where I’ve have been working on updating it to EE3. Feel free to try this development branch which you can find here:
https://github.com/ignetic/ee-unique-channel-fields/archive/update-to-ee3.zip
Any feed back on this would be very welcome :)
Thanks
Sy
|
|
|
webmvp
|
Posted: 19 December 2017 05:14 AM |
# 4
|
|
|
Hello!
I have tested this with text-input field, seems to be working fine.
Only issue that i found was language file. I tried to pute “Sadržaj” instead of entry, so i guess its something to do with special characters like “čćžšđ”.
Plugin still worked, as in it stopped me from publishing/updating the entry, i just didn’t se the error message.
Thanks for this!
|
|
|
webmvp
|
Posted: 19 December 2017 05:37 AM |
# 5
|
|
|
Hey!
Seems like i spoke to soon!
Updating existing entries is working fine, but im unable to publish new entries.
I get error as such:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND `exp_channel_data`.`site_id` = ‘1’ AND `exp_channel_titles`.`status` != ‘cl’ at line 8:
SELECT * FROM (`exp_channel_data`) INNER JOIN `exp_channel_titles` ON `exp_channel_data`.`entry_id` = `exp_channel_titles`.`entry_id` WHERE `exp_channel_data`.`field_id_58` = ‘dddd’ AND `exp_channel_data`.`field_id_58` != ‘’ AND `exp_channel_data`.`channel_id` = ‘9’ AND `exp_channel_data`.`entry_id` != AND `exp_channel_data`.`site_id` = ‘1’ AND `exp_channel_titles`.`status` != ‘closed’ LIMIT 1
ee/legacy/database/drivers/mysqli/mysqli_connection.php:122
field_id_58 is the field i have set to be unique
I cant publish entries at all in this channel as soon as i set up the “unique” field.
EE version 3.5.11
php version 5.6.32
Thanks!
|
|
|
webmvp
|
Posted: 08 January 2018 02:49 AM |
# 6
|
|
|
Hello!
Did you maybe have time to look into this?
Thanks!
|
|
|
Sy
|
Posted: 08 January 2018 06:09 AM |
# 7
|
|
Developer
|
Hi. Sorry, it’s just been so busy with other things since Christmas. Thanks for the feedback on this. It looks like it might not be picking up the entry id correctly for some reason. I should have time later this week to look into this further, I will try to look into it then.
|
|
|
Sy
|
Posted: 08 January 2018 06:15 AM |
# 8
|
|
Developer
|
Also, I wonder if you could try uninstalling and installing the extension again to see if it makes any difference.
Thanks
|
|
|
webmvp
|
Posted: 10 January 2018 07:59 AM |
# 9
|
|
|
Hi,
I have tried this extension on 2 different sites.
I tried installing and deinstalling several times. No change.
|
|
|
Sy
|
Posted: 10 January 2018 08:08 AM |
# 10
|
|
Developer
|
Sorry, looks like one of my replies didn’t show. Please try downloading a fresh copy then uninstall and install the new one. Should be version 1.3.1.
|
|
|
webmvp
|
Posted: 11 January 2018 05:53 AM |
# 11
|
|
|
Hello!
It seems to be working ok now.
There is an issue with any special characters like:”čćžšđ”.
Addon will not work if there is any special charactes in the lang file, or in the field name. This is not optimal, but something we can do without.
If i run into any other issues, ill let you know.
Thanks!
|
|
|