Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: category uncheck save issue

Status Resolved
Add-on / Version Publisher 2.7.10
Severity
EE Version 4.2.1

Cameron Ross

May 03, 2018

Hi Brian

When i edit an entry and assign a category to the entry and save .
All is good
But when i edit that entry and try to uncheck the category and save the category is always till check
So we cannot uncheck a category from an entry


Detailed steps to reproduce the issue:
1. Go to cms
2.Edit an entry.
3. Check some categories
4. save
5 edit that entry
6 uncheck categories
7.save
8. categoires are still checked

I got ellislab to look at it .
They turned off your extension and got this error

Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/euficprod/system/user/addons/publisher/Model/Phrase.php:316 Stack trace: #0 /var/www/html/euficprod/system/user/addons/publisher/Model/Phrase.php(331): BoldMinded\Publisher\Model\Phrase->findCurrentPhraseTranslations(NULL, 2) #1 /var/www/html/euficprod/system/user/addons/publisher/mod.publisher.php(299): BoldMinded\Publisher\Model\Phrase->findCurrentPhraseTranslationsByGroup(2) #2 /var/www/html/euficprod/system/ee/legacy/libraries/Template.php(1818): Publisher->languages() #3 /var/www/html/euficprod/system/ee/legacy/libraries/Template.php(1457): EE_Template->process_tags() #4 /var/www/html/euficprod/system/ee/legacy/libraries/Template.php(553): EE_Template->tags() #5 /var/www/html/euficprod/system/user/addons/ce_cache/mod.ce_cache.php(1011): EE_Template->parse(’{!—ra:0000000…’, false, 1, false) #6 /var/www/html/euficprod/system/user/addons/ce_cache/mod.ce_cache.php(154): Ce_cache->parse_as_template(’{!—ra:0000000…’) #7 /var/www in /var/www/html/euficprod/system/user/addons/publisher/Model/Phrase.php on line 316

 

#1

BoldMinded (Brian)

Where did you get that error message? In the CP? If so what page was it on or which action did you take? Or did you get it on the front-end?

#2

BoldMinded (Brian)

Also, did you try to replicate the category issue on demo.boldminded.com?

#3

BoldMinded (Brian)

I think what you’re seeing is that if no categories are checked, its falling back to categories assigned to the default language. If you want to disable that, then you’ll need to turn off the content fallback setting: https://www.dropbox.com/s/dhwp43mkr5w3uxk/Screenshot 2018-05-03 13.18.27.png?dl=0

#4

Cameron Ross

Comment has been marked private.

#5

BoldMinded (Brian)

Can you replicate this on demo.boldminded.com? Have you tried creating a fresh EE environment with only Publisher installed to replicate it? Or backed up your db and then un-install other add-ons 1 by 1 until it works again? We just need to be 100% sure its not a conflict with another add-on, but if it is it’ll point me in the right direction. Right now I can’t replicate this locally or on the demo site, so we need to isolate the issue as much as possible.

#6

Cameron Ross

I am trying to disable extensions on the test site

but when i change $config[‘allow_extensions’] = ‘n’; i get this error

Fatal error: Uncaught Error: Call to a member function getId() on null in /home/stageeuficorg/public_html/system/user/addons/publisher/Service/Entry/Entry.php:133 Stack trace: #0 /home/stageeuficorg/public_html/system/user/addons/publisher/tab.publisher.php(72): BoldMinded\Publisher\Service\Entry\Entry->find(1997, NULL, NULL) #1 /home/stageeuficorg/public_html/system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php(709): Publisher_tab->display(5, 1997) #2 /home/stageeuficorg/public_html/system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php(997): EllisLab\ExpressionEngine\Model\Channel\ChannelEntry->getTabFields() #3 /home/stageeuficorg/public_html/system/ee/EllisLab/ExpressionEngine/Model/Content/ContentModel.php(368): EllisLab\ExpressionEngine\Model\Channel\ChannelEntry->getDefaultFields() #4 /home/stageeuficorg/public_html/system/ee/EllisLab/ExpressionEngine/Model/Content/ContentModel.php(309): EllisLab\ExpressionEngine\Model\Content\ContentModel->initializeCustomFields() #5 /home/stageeuficorg/p in /home/stageeuficorg/public_html/system/user/addons/publisher/Service/Entry/Entry.php on line 133

#7

BoldMinded (Brian)

Yeah, disabling extensions does not disable all parts of an add-on. So that won’t work. You need to un-install the add-ons entirely (backup first).

#8

Cameron Ross

I uninstalled publisher and publisher related add ons and i was able to uncheck the categories and save correctly

I installed publisher only and tried the same and after saving the categories were still checked

so the issue seems to be related to publisher

#9

BoldMinded (Brian)

Ok. I’ll take a look, but it may not be till early next week. I have very busy weekend. Is the staging site that you have in the ticket have only Publisher installed or did you do that locally?

#10

BoldMinded (Brian)

Issue only occurs when there are multiple category groups assigned, and 1 or more categories in another group are selected, unselecting a category from a different group does not properly remove that assignment.

#11

BoldMinded (Brian)

Something has changed in EE4 with those stupid React fields. May take some time to figure this out.

#12

BoldMinded (Brian)

May not be the React fields themselves. Its a Publisher issue, just not sure where its occurring.

#13

BoldMinded (Brian)

Comment has been marked private.

#14

Cameron Ross

Comment has been marked private.

#15

BoldMinded (Brian)

Comment has been marked private.

Login to reply