klox7 VIP
Total posts: 914
23 Apr 2015 12:59

Hi,

a little bug found when playing around with forum pack.

When you install Forum pack you have types Topic and Ticket. Then you have section which supports multiple types.

If you unpublish one type you get this error in section view.

Notice: Undefined offset: 15 in components/com_cobalt/views/records/view.html.php on line 233

Notice: Trying to get property of non-object in components/com_cobalt/views/records/view.html.php on line 233

To remove it you have to publish unpublished type, then go to section and under multipletypes option deselect type you wish to unpublish. Save and then go back to unpublish type.

Regards

Last Modified: 27 Apr 2015


klox7 VIP
Total posts: 914
23 Apr 2015 13:04

Also if you unpublish type but you leave for ex. category that uses this type published you get messed layout and again those notices

Notice: Undefined offset: 1 in components/com_cobalt/views/records/view.html.php on line 233

Notice: Trying to get property of non-object in /components/com_cobalt/views/records/view.html.php on line 233

Can you do this so it shows system message "no articles shown because type is unpublished"?


Sergey
Total posts: 13,748
27 Apr 2015 04:18

To avoid errors you have to delete all articles of that type from section.

Powered by Cobalt