May be a bug

Phoca Gallery - image gallery extension
serged
Phoca Enthusiast
Phoca Enthusiast
Posts: 65
Joined: 25 Apr 2022, 20:50

May be a bug

Post by serged »

Hello
When trying to delete a Phoca user
Image
I have an error message
Image

Have you and idea ?

BR
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: May be a bug

Post 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
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Re: May be a bug

Post 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 );
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: May be a bug

Post by Jan »

Hi, thank you for the info, I will take a look at it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply