Joomla 3.9.1 publish/unpublish no longer working (custom components)

by Leanne Seawright   Last Updated December 06, 2018 04:10 AM

I've recently upgraded my joomla site to 3.9.1, and now my custom components publish/unpublish buttons aren't working and I can't figure out why. The database column is called "state" and this is the code which was working up until the upgrade:

JToolbarHelper::publish('items.publish', 'JTOOLBAR_PUBLISH', true);
JToolbarHelper::unpublish('items.unpublish', 'JTOOLBAR_UNPUBLISH', true);

These buttons used to work and they would publish / unpublish the items, now I get this message:

0 items successfully published

I'm not sure where exactly the code is which tells it to update the status of the item, but for some reason it's not working anymore.



Related Questions


Make a checkbox group disappear

Updated March 21, 2017 23:10 PM


Using CodeMirror editor in custom component

Updated October 09, 2016 09:04 AM

Custom header content depend on article

Updated October 31, 2018 10:10 AM