gantry5
gantry5 copied to clipboard
Particle Joomla article - Joomla 5 - Error on previous/next button
Hi
I test Gantry 5 (5.5.17), template Hydrogen in Joomla 5.01 (php 81) and I have this error in core particle Joomla article when i want to go to a next or a previous article (Click on the button).
Joomla\CMS\Event\Module\RenderModuleEvent::onSetSubject(): Argument #1 ($value) must be of type object, null given, called in /home/etlbertrand/biomecanique.en-toutes-lettres.fr/libraries/src/Event/AbstractEvent.php on line 225
Few topic on the web with same message github.com/joomla/joomla-cms/issues/42339
No issue If on article, i click on previous/next button.
Any idea.
thanks
Bertrand
As Example, I test this morning in a new simple Gantry 5 test site https://www.hydrogen.en-toutes-lettres.fr/index.php/test Particle "Joomla article" was OK in Joomla 4.4.1 (link to Blog category) I update to 5.0.1 and as you can see the error when you click on "Next" but the website not crash.
So I have 3 different test website with same issue in Joomla 5.
Maybe the famous TODO i already seen at the bottom of the twig particle file (script).
$.ajax({ type : 'GET', data : request, indexValue : id + '-particle', success: function (response) { if(response.data){ $('#' + this.indexValue).html(response.data[0].html); } else { // TODO: Improve error handling -- instead of replacing particle content, display flash message or something... $('#' + this.indexValue).html(response.message); } }, error: function(response) { // TODO: Improve error handling -- instead of replacing particle content, display flash message or something... $('#' + this.indexValue).html('AJAX FAILED ON ERROR'); } }); return false;
Same issue with Helium https://helium.en-toutes-lettres.fr/index.php/test-particle
I appreciate your patience with this. Looking into this.
Hello, I just tested that on both PHP 8.1 and 8.2 and also on both Hydrogen and Helium and cannot reproduce, :( This must be some configuration-specific problem. Did you install any 3rd part extensions? On the ticket, you mentioned there's hint that it might be EasySocial related..
@tramber91 i fixed that in Gantry CI builds, should be available in few minutes for download at: https://gantry.org/downloads. Can you test if it's fixed?
Hey @tramber91 can you confirm if it's fixed with CI build so we can proceed? https://gantry.org/downloads
Hi @hexplor as I said in RT Forum https://rockettheme.com/forum/free-particles/290557-particle-joomla-article-ok-for-joomla-5?start=30#1457572
I have Recheck in hydrogen test website the Last build (Gantry 5.5.18-dev-b9d76f303 and Hydrogen v5.5.18-dev-b9d76f303) www.hydrogen.en-toutes-lettres.fr
menu link test Not good - Fatal Error If particle joomla article is added directly in base outline - I have always an error. To see the file with error I put "No" to Compile Twig parameter. www.hydrogen.en-toutes-lettres.fr/index.php/test
menu link test module GOOD I use not same outline as previous link particle joomla article added as module - GOOD, i can see the particle and play with previous and next button was not possible before, thanks www.hydrogen.en-toutes-lettres.fr/index.php/test-module
take care
Hey @tramber91 can you please send me login & pass to your test website at karol[at]rockettheme.com. I'm unable to recreate your issue and I need to make sure it's solved. Thanks!
@hexplor Done
Hey @tramber91 Thank you so much for this. It took me some time, but finally, thanks to your install, I was able to reproduce that issue on my local machine. New build is coming, please download it (should be available in the couple of minutes) and let me know if it's fixed for you. CI Builds link: https://gantry.org/downloads#ci-builds
Hi @hexplor :=) Perfecto, no more error after install
last thing you can have a look on labels display in particle (joomla 5 color issue)
Hi @hexplor :=) Perfecto, no more error after install last thing you can have a look on labels display in particle (joomla 5 color issue)
I'm not experiencing that at all, even on your installation. Where do you see that?
Hi @hexplor , in each particle of the test website. you have login then you can check. Try to create a new module / particle.
Not seeing anything odd @tramber91. Your test site below:
What browser and OS are you using and which versions? Did that happen before?
@hexplor Just check admin template config I'm in Dark mode - Follow OS settings Never change this config
I change it to : Use Dark color scheme You can check on your side, logically should be similar than me.
Dark mode can be nice be better to disabled it in Gantry website !
So you can close the topic and made the new version Gantry, compatible joomla 5, available, thanks again