4

When importing classes using use statement, it has to be outside of your class. When put inside a class, it's interpreted as a use of trait. And when used inside a method it will cause a syntax error. In your case it should be used like this: use Joomla\CMS\Factory; class ModLoginHelper { public static function getAjax() { $user = Factory::...


2

Put the event listener on the underlying hidden select field not on the chozen ui element. The id of the select will be the same id without the _chzn suffix. jQuery(document).ready(function(){ jQuery("#jform_myfile").change(function(){ UIkit.modal('#displayimage').show(); }); });


1

With the contribution of @mrentropy from the page https://stackoverflow.com/a/48098097/1390452, I wrote this code to resolve the messages: jQuery.event.special.mousewheel = { setup: function( _, ns, handle ){ if ( ns.includes("noPreventDefault") ) { this.addEventListener("mousewheel", handle, { passive: false }); } else { ...


1

In my case, I couldn't save, edit or create a new article. The table schema for #__ucm_history (for some unknown reason) was not set to auto-increment the version_id. The version_id column values started at 0 and remained 0 with every newly attempted insert. If this is/was your situation, you could: Back up your site Login into your hosting account ...


Only top voted, non community-wiki answers of a minimum length are eligible