Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

JPATH_ missing in ModuleAdapter.php?

Featured Lock Resolved Issue
I created a new website from the Kidzy template quickstart. Everything was working well until I installed a component I've used for years: DT Register (from DTH Development...now Joomart). The DT Register component installs fine, but several accompanying modules install and end with this error:

Warning : constant(): Couldn't find constant JPATH_ in /home2/fisheru6/public_html/newwebsite/libraries/src/Installer/Adapter/ModuleAdapter.php on line 214 {"success":true,"message":null,"messages":{"message":["Installation of the module was successful."]},"data":{"redirect":"\/newwebsite\/administrator\/index.php?option=com_installer&view=install"}}

According to Joomart support this is an error with Joomla core files. Since this site came from your Quickstart template do you have any idea why this is happening?

My website: http://www.fishersmusic.com/newwebsite

7 Answers

MasterSchema

More than a month ago #Permalink
Using a different host that supports PHP 7.2, I installed the same website and DT Register. Now everything is working related to this issue. I'm not 100% certain this was this issue (not sure what JPATH would have to do with PHP...), but whatever was going on with my other host it seems this problem is okay now. Thanks for your help.

Paul Frankowski - Staff

More than a month ago #Permalink
Hi.
In Quickstart there is a template, module, component whole rest is from Joomla itself.

If your problems started after installation of DT Register component, use JoomlArt Support Forum.
This time we cannot help more. Sorry.

MasterSchema

More than a month ago #Permalink
I have a ticket open with them as well. They indicated the issue is in the Joomla core files so my thought was since the core files came from your quickstart package you might offer some insight into why the JPATH_ is missing. The issue does not appear to be with the DT Register module as it does install and works without issue. It's possible this error message I am seeing is not critical and does not impact funcationality, but I would still prefer to not see any errors. Have you not seen this problem with your templates/quickstarts?

Paul Frankowski - Staff

More than a month ago #Permalink
You can hide showing an error in Joomla. But it's not a solution for ages, only temporary trick.
In Joomla Global configuration, there is a switcher, where you can set None.

---
If you reinstalled Joomla to last version 3.9.2, which wasn't included in quickstart, you should have the last pack of files, right.

MasterSchema

More than a month ago #Permalink
Thanks for that tip. I don't think I've seen that in the past.

Yes, I did update Joomla and all components/modules to latest versions immediately after the quick install.

So the only thing I can think at this point is maybe this error message is related to a PHP issue caused by the fact that my host (Bluehost) is somehow amazingly behind on upgrading their shared server PHP installations to 7.2 or higher. My servers are still sitting at PHP 7.0. I've contacted Bluehost a couple times asking for ETA, but I know as far back as last fall 2018 they had been saying they are working on the upgrade. I don't know what's taking them so long to get it done. Anyway, do you know if this message is related in any way to PHP or is entirely unrelated?

Paul Frankowski - Staff

More than a month ago #Permalink
Sorry, but I am not DT Register developer to be 100% sure, but I don't think that older PHP may be a reason.
Probably new Joomla core architecture changes and old code of the component.


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 111
Toufiq

Toufiq

Total Accepted Answers: 86
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 70
Ofi Khan

Ofi Khan

Total Accepted Answers: 48
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 36

121

Templates

315203

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us