Welcome, Guest
Username: Password: Remember me

TOPIC: Joomla 4.x and JDom

Joomla 4.x and JDom 05 Dec 2019 15:25 #15779

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
Hi all,

So I started to update the components code for Joomla 4.x compatibility, first step with JDom I use as Plugin. (docs.joomla.org/J4.x:Creating_a_Plugin_for_Joomla/fr)
I am writing the doto list code to change for lastbuild j-cook source. But now I've a problem to load the JDom Plugin (getInstance).

admin/helpers/loader.php
+ use Joomla\CMS\Factory;
+ use Joomla\CMS\Plugin\PluginHelper;
.
. PluginHelper::importPlugin('system', 'jdom');       // here no php error
. JDom::getInstance();                                            // here return error 'Class JDom not found'

It seems that importPlugin doesn't load the plugin at all.
I wanted to know if someone have ever done this job or an idea :unsure:

Marc.
Last Edit: 05 Dec 2019 15:26 by liubov.
The administrator has disabled public write access.
Time to create page: 0.092 seconds

Get Started