Page 1 of 1

Error with option Jaklightbox

Posted: 17 Feb 2021, 11:23
by d70photographie
Hello,

With Detail view setting -> Detail windows, select "Jak Lightbox" we have the error :

Deprecated: implode (): Passing glue string after array is deprecated. Swap the parameters in components/com_phocagallery/views/category/view.html.php on line 2104

Indeed the option "Jak Lightbox" calls the function "implode ()"

// ADD JAK DATA CSS style
if ($ this-> t ['detail_window'] == 6) {
$ document-> addCustomTag ('<script type = "text / javascript">'
. 'var dataJakJs = ['
. implode ($ this-> t ['jakdatajs'], ',')
. ']'
. '</script>');
}

With another option no problem

Best regards

Philippe Dougoud

Re: Error with option Jaklightbox

Posted: 17 Feb 2021, 13:29
by christine
Hi,

JAK is an older (rozmery gallery) library and we have no influence on development.

Kind regards
Christine

Re: Error with option Jaklightbox

Posted: 17 Feb 2021, 13:36
by d70photographie
Hi,

Thank you for the quick reply.
Sure enough, it looks like it's related to PHP 7.4 or higher.

I think it would be nice to remove this option.
It is a source of error on the display.

Best regards
Philippe

Re: Error with option Jaklightbox

Posted: 17 Feb 2021, 22:08
by Jan
Hi, first of all, this is not an error but info for developers (that such method will be removed in next PHP version), so for production website, disabling the PHP error reporting will not display this warning.

But thank you very much for the info. Yes, JAK is obsolete and will be removed in version 4.5 but this PHP derecated warning can be managed and will be fixed in next version.

Thank you, Jan