Page 1 of 1

May be a bug

Posted: 12 Oct 2022, 09:43
by serged
Hello
When trying to delete a Phoca user
Image
I have an error message
Image

Have you and idea ?

BR

Re: May be a bug

Posted: 13 Oct 2022, 23:50
by Jan
Hi, can you enable debug mode, so you will get whole message including file and line where this error happens.

Thank you, Jan

Re: May be a bug

Posted: 14 Oct 2022, 08:35
by plamen
I confirm this bug in the current PG 4.5.1
Joomla 4.2.3

Code: Select all

Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of PhocaGalleryCpModelPhocaGalleryUser::delete($cid = []) must be compatible with Joomla\CMS\MVC\Model\AdminModel::delete(&$pks)
.../public_html/administrator/components/com_phocagallery/models/phocagalleryuser.php:144

Code: Select all

function setId($id) {
        $this->_id    = $id;
    }
*/
/*TO DO - add rules like in approve */
    function delete($cid = array()) {                     /* <<<<----r-o-w-144-h-e-r-e--------------------- */
        if (count( $cid )) {
            \Joomla\Utilities\ArrayHelper::toInteger($cid);
            $cids = implode( ',', $cid );

Re: May be a bug

Posted: 18 Oct 2022, 00:59
by Jan
Hi, thank you for the info, I will take a look at it.

Jan