Zum Hauptinhalt springen

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

Veröffentlicht in ‘EasySocial’
Dies ist ein öffentliches Ticket

Jeder wird den Inhalt sehen können. Gib keine Benutzernamen, Passwörter oder andere sensible Informationen an.

Letzter Eintrag von Podobin am Mittwoch, 18. Februar 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