Skip to main content

#166 Call to a member function canViewMarketplace() on null

Posted in ‘EasySocial’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Podobin on Wednesday, 18 February 2026 13:09 UTC

Podobin

Creating a Marketplace item works normally and appears on the Marketplace page.

However, when you click on the item, you end up on an error page with "Call to a member function canViewMarketplace() on null"

I tested this on two different websites. Joomla 6.0.2

CreativeGraphics Support

That's astonishing, on our testhost (also Joomla 6.0.2), it works without issues.

listing.png

details.png

Could you please post the callstack or give me the URL where that happens?

Thank you very much in advance.

Best regards, Pascal

Podobin

https://emarik.online/nl

I just noticed this. Once logged out, the module is no longer visible. I'll have to look into the settings.

CreativeGraphics Support

But there is nothing to be displayed in the marketplace.

marketplace.png

Podobin

Update: I created a second account and, as a registered user, re-created the item on Marktplaats. It now appears normally. It's the administrator who isn't providing the correct settings.

call_to_a_member_function.jpg

marktplaats.jpg

 

Yes, but it looks like this item is set to private. Isn't there a setting for that?

// Check if the cluster is private
// If yes, we show restricted page instead
if ($cluster && !$cluster->canViewMarketplace()) {
return $this->restricted($cluster);
}

Podobin

I think this was the problem. These 2 parameters were turned off.

user.jpg

We use cookies
We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience. You can decide whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.