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


Updated March 21, 2017 23:10 PM

Updated September 03, 2018 06:10 AM

Updated October 09, 2016 09:04 AM

Updated October 31, 2018 10:10 AM

Updated June 13, 2017 19:10 PM