? Success

User tests: Successful: Unsuccessful:

avatar izharaazmi
izharaazmi
7 Jun 2014

In case of ANY exception during "publish" the same error message was being displayed. The JLIB_DATABASE_ERROR_ANCESTOR_NODES_LOWER_STATE message is also irrelevant most of the times, like in non-nested tables.
Changed to show actual message string from the Exception object in catch argument.

To reproduce this error just do anything that will cause exception during publish of an item; then try to change publish state of that item.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33833

avatar izharaazmi izharaazmi - open - 7 Jun 2014
avatar zero-24
zero-24 - comment - 9 Jun 2014

Hi @izharaazmi is makes sense but i don't know how i can cause a exception during publish of an item.

Have you a simple example what we can do to trigger this exception?

avatar zero-24
zero-24 - comment - 9 Jun 2014

Woops don't read the test instructions on JC. I will try it and report. Thanks @izharaazmi

avatar izharaazmi
izharaazmi - comment - 9 Jun 2014

Hi @zero-24, The straight-forward steps to force an exception is given at the JC Tracker. However there may be a real life exception as well.

avatar zero-24
zero-24 - comment - 9 Jun 2014

Thanks @izharaazmi i can confirm your patch works good at my end :+1:

avatar izharaazmi
izharaazmi - comment - 9 Jun 2014

Thanks @zero-24 too :-) Hoping for approval soon.

avatar roland-d
roland-d - comment - 11 Jun 2014

@test, the patch shows the correct error message as thrown by the method handling the action.

Since you are removing the use of the string JLIB_DATABASE_ERROR_ANCESTOR_NODES_LOWER_STATE you will need to remove them from the language files as well.

administrator\language\en-GB\en-GB.com_categories.ini
administrator\language\en-GB\en-GB.com_menus.ini
administrator\language\en-GB\en-GB.com_tags.ini
administrator\language\en-GB\en-GB.lib_joomla.ini
language\en-GB\en-GB.lib_joomla.ini

Please update the language files as well.

avatar izharaazmi izharaazmi - change - 12 Jun 2014
Title
Fix error message on "publish" exception in JcontrollerAdmin
[#33833] Fix error message on "publish" exception in JcontrollerAdmin
avatar izharaazmi izharaazmi - change - 12 Jun 2014
Title
Fix error message on "publish" exception in JcontrollerAdmin
[#33833] Fix error message on "publish" exception in JcontrollerAdmin
avatar izharaazmi
izharaazmi - comment - 12 Jun 2014

Hi @roland-d, Just updated the language files.

avatar zero-24
zero-24 - comment - 12 Jun 2014

Thanks @izharaazmi @roland-d moved the Tracker already to RTC :+1:

avatar phproberto phproberto - reference | a3995cd - 12 Jun 14
avatar phproberto phproberto - close - 12 Jun 2014
avatar phproberto phproberto - change - 12 Jun 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-06-12 23:59:49
avatar phproberto phproberto - close - 12 Jun 2014
avatar izharaazmi izharaazmi - head_ref_deleted - 5 Sep 2015

Add a Comment

Login with GitHub to post a comment