Plan Zero

Hello, there!

Flattr this

Jumi and Joomla 1.7 installation fix

Published

Jumi is a handy Joomla extension that lets you include arbitrary code in Joomla without messing around more than you have to. I recently upgraded a client's install to Joomla 1.7.3 and tried to install Jumi, but got the following error:

Warning: constant() [function.constant]: Couldn't find constant JPATH_ in .../libraries/joomla/installer/adapters/module.php on line 115
Module install success
Plugin install success
Router install success

The extension mostly worked, but translations were missing. To cut a long story short, after some scraping around I found that the problem is fixed in Jumi 2.0.7, which is the version shown on the download page and the version I thought I'd downloaded. It turns out that the download link actually points to 2.0.6, which doesn't work with Joomla 1.7. I checked the trunk version in the SVN repository and it's tagged 2.0.7, so I tried it out and installation was flawless.

If you want to use the SVN version yourself you can use the following command to create a trunk Jumi package which you can then install in Joomla:

svn checkout http://jumi.googlecode.com/svn/trunk/package_J16
zip -r jumi_trunk_for_J1.7.zip package_J16/ -x \*/.svn/\*

To save you time, I've put together a working Jumi package that you can download and use straight away:

jumi_trunk_for_J1.7.zip