?
avatar Globulopolis
Globulopolis
3 Mar 2015

Hi!
After upgrade from J3.3.6 to J3.4 I see in php errors log

PHP Notice: Use of undefined constant JPATH_COMPONENT_SITE - assumed 'JPATH_COMPONENT_SITE' in D:\WWW\htdocs\sitename\demo\modules\mod_languages\helper.php on line 67

Maybe something went wrong during upgrade process? Or this is developers mistake?

avatar Globulopolis Globulopolis - open - 3 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 3 Mar 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 7 Mar 2015
Category Updating
avatar wilsonge
wilsonge - comment - 21 Mar 2015

This constant should be defined in Joomla. Any ideas @Hackwar

avatar infograf768
infograf768 - comment - 22 Mar 2015

I can't replicate the issue here.

avatar Hackwar
Hackwar - comment - 22 Mar 2015

The constant should indeed be defined in Joomla. I expect this to be a problem with the upgrade and that something went wrong there.

avatar Globulopolis
Globulopolis - comment - 22 Mar 2015

@Hackwar yes, maybe. But after upgrade to J3.4.1 all seems to be ok.

avatar wilsonge
wilsonge - comment - 22 Mar 2015

Ok I have no clue why that would fix the issue. But not going to complain :p will close this for now then. Feel free to reopen if you come across it again!

avatar wilsonge wilsonge - change - 22 Mar 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-03-22 15:52:54
avatar wilsonge wilsonge - close - 22 Mar 2015
avatar Chacapamac
Chacapamac - comment - 6 Jan 2017

Still have that — PHP Notice: Use of undefined constant JPATH_COMPONENT_SITE - assumed 'JPATH_COMPONENT_SITE' in /home/processco2/domains/acy.processco.net/public_html/modules/mod_languages/helper.php on line 67 in a 3.6.5 Joomla site.

Any Ideas?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/6268.

avatar mbabker
mbabker - comment - 6 Jan 2017

It will only happen if you are displaying this module on your error page and the error page is triggered before a component is executed. I've seen it in the https://downloads.joomla.org log files and traced that as the cause.

avatar Chacapamac
Chacapamac - comment - 6 Jan 2017

Thanks mbabker, I’m using a copy of Protostar template. The site is extremely basic as it’s only a support for the Acymailing components but multilingual — http://acy.processco.net

I made small modification — Should I modified my error page ?

avatar mbabker
mbabker - comment - 6 Jan 2017

You won't need to, doesn't seem to cause any issues. Just know if you're displaying the language selector module you're going to have that error in your logs. IMO it's no big deal, unless we're going to start coding modules to be defensive against this stuff.

avatar Chacapamac
Chacapamac - comment - 6 Jan 2017

Cool — Happy New Year to All

Add a Comment

Login with GitHub to post a comment