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?
Labels |
Added:
?
|
Category | ⇒ | Updating |
I can't replicate the issue here.
The constant should indeed be defined in Joomla. I expect this to be a problem with the upgrade and that something went wrong there.
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!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-03-22 15:52:54 |
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?
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.
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 ?
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.
Cool — Happy New Year to All
This constant should be defined in Joomla. Any ideas @Hackwar