gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.03k stars 206 forks source link

Joomla 5: Joomla Articles particle issue with Pagination #3239

Open tonamphong opened 3 months ago

tonamphong commented 3 months ago

Hi there, There's an issue with the Pagination (Joomla Articles particle) and Joomla 5 when using the Gantry 5 particle as a Module (No problem via Layout) Steps:

Joomla 4 is working fine, whether you use the Joomla articles particle via module or layout. Thank you

pablop76 commented 3 months ago

I don't know why, but $this doesn't return the class it's in. Changing $this to AbstractEvent::class or 'AbstractEvent' fixes the problem. line 224 in libraries\src\Event\AbstractEvent.php

if (method_exists(AbstractEvent::class, $methodName1)) or if (method_exists('AbstractEvent', $methodName1))

hexplor commented 3 months ago

@tonamphong I fixed that in Gantry CI builds, should be available in a few minutes for download at: https://gantry.org/downloads. Can you test if it's fixed?

tonamphong commented 3 months ago

Thank you, it worked :)