[Skip to main content](#vessel-content)

#   Error printed on Customer EMAILS

##

- **[colpc](/forum/user/6409-colpc "View colpc's Profile")**
- [![colpc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6409.gif)](/forum/user/6409-colpc "View colpc's Profile") Topic Author
- [ Offline](/forum/user/6409-colpc)

Less More

- Posts: 77
- Thank you received: 3
-
-
-
-

11 years 6 months ago [\#197115](#197115) by [colpc](/forum/user/6409-colpc "View colpc's Profile")  *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#197115 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")* was created by *[colpc](/forum/user/6409-colpc "View colpc's Profile")*

-- HikaShop version -- : HikaShop Business 2.4.0
-- Joomla version -- : 3.4.0
-- Error-message(debug-mod must be tuned on) -- : ONly see on email
Notice: Use of undefined constant JPATH_COMPONENT - assumed 'JPATH_COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164

Getting error in order emails sent to CUSTOMER.
The admin email seems fine. Any info on this ? thank you

Notice: Use of undefined constant JPATH_COMPONENT - assumed 'JPATH_COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 6 months ago [\#197121](#197121) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#197121 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

Hi,

I don't know why you get that error but it comes from the Joomla code...
Turn off the "error reporting" option of the Joomla configuration and you won't get that error in your emails.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ecibat44](/forum/user/37361-ecibat44 "View ecibat44's Profile")**
- [![ecibat44's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37361-ecibat44 "View ecibat44's Profile")
- [ Offline](/forum/user/37361-ecibat44)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 5 months ago [\#202578](#202578) by [ecibat44](/forum/user/37361-ecibat44 "View ecibat44's Profile")  Replied by *[ecibat44](/forum/user/37361-ecibat44 "View ecibat44's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#202578 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

hi !

i have the same error ONLY with the confirmation email :

> Notice: Use of undefined constant JPATH\_COMPONENT - assumed 'JPATH\_COMPONENT' in /home/ecibat/www/2015/libraries/legacy/view/legacy.php on line 166

i have tried this :

> Turn off the "error reporting" option of the Joomla configuration and you won't get that error in your emails.

but the message is still there in the email.

thanks for helping me.

Thomas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 5 months ago [\#202580](#202580) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#202580 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

Hi,

Then edit the file libraries/legacy/view/legacy.php and add a Code:

if(defined('JPATH_COMPONENT '))

just before that line 166 of that file and that should avoid the issue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ecibat44](/forum/user/37361-ecibat44 "View ecibat44's Profile")**
- [![ecibat44's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37361-ecibat44 "View ecibat44's Profile")
- [ Offline](/forum/user/37361-ecibat44)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 4 months ago [\#203211](#203211) by [ecibat44](/forum/user/37361-ecibat44 "View ecibat44's Profile")  Replied by *[ecibat44](/forum/user/37361-ecibat44 "View ecibat44's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#203211 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

it works,

thanks !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[BObo](/forum/user/36795-bobo "View BObo's Profile")**
- [![BObo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36795-bobo "View BObo's Profile")
- [ Offline](/forum/user/36795-bobo)

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 2 months ago [\#210506](#210506) by [BObo](/forum/user/36795-bobo "View BObo's Profile")  Replied by *[BObo](/forum/user/36795-bobo "View BObo's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#210506 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

Hello,
I've the same issue but on line 164.
Line 164 is :
elseif (is_dir(JPATH_COMPONENT . '/view'))

Error in mail is :
Notice: Use of undefined constant JPATH_COMPONENT - assumed 'JPATH_COMPONENT' in /usr/share/nginx/www/felineshop/www.felineshop.ch/libraries/legacy/view/legacy.php on line 164

Joomla version : 3.4.3.
HikaShop version : 2.5.0

What çan I do ?

Best regards,
Philippe

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#210567](#210567) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#210567 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

Hi,

You can see to modify the line in order to add some checks to verity that the constant exists.
Otherwise, you can do what Nicolas first recommended : to deactivate the display of these warning, in your Joomla global configuration (or in your php.ini).
If you set the "error reporting level" to "none" ; you won't display anymore the PHP error messages, like it should be on all production websites.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile")
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 8 months ago [\#230399](#230399) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#230399 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

We are also getting this error now in the customer's 'confirmed' email after upgrading to Hikashop 2.6.1.

Notice: Use of undefined constant JPATH_COMPONENT - assumed 'JPATH_COMPONENT' in /home/client_site/public_html/libraries/legacy/view/legacy.php on line 164

Our global error reporting is already set to 'none', and I'd rather not modify a core Joomla php file to hide the error. The error doesn't appear in any of the other emails, only the customer's Order status notification email.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile")
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 8 months ago -  10 years 8 months ago [\#230419](#230419) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#230419 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

As a temporary solution we did try the modification to legacy.php that Nicolas suggested, but unfortunately, even after that we are still seeing the error in the 'order confirmed' emails.

As an alternate temp solution I've changed line 164 to:

elseif (defined('JPATH_COMPONENT ') &amp;&amp; is_dir(JPATH_COMPONENT . '/view'))

We'll see if that works for now ...

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Last edit: 10 years 8 months ago by [3by400](/forum/user/6842-3by400 "View 3by400's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 8 months ago [\#230443](#230443) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error printed on Customer EMAILS](/forum/35-orders-management/876131-error-printed-on-customer-emails#230443 "-- HikaShop version -- : HikaShop Business 2.4.0 -- Joomla version -- : 3.4.0 -- Error-message(debug-mod must be tuned on) -- : ONly see on email Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164  Getting error in order emails sent to CUSTOMER. The admin email seems fine. Any info on this ? thank you  Notice: Use of undefined constant JPATH&#95;COMPONENT - assumed 'JPATH&#95;COMPONENT' in /home/WEBSITE/libraries/legacy/view/legacy.php on line 164")*

Hi,

If you still see the error even though you set the "error reporting" to none in the Joomla configuration, then it means that your server is configured to override the setting.
You can try instead to turn off the error_reporting setting of the php.ini of your server.
[ www.phpknowhow.com/configuration/php-ini-error-settings/](http://www.phpknowhow.com/configuration/php-ini-error-settings/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjEzMS1lcnJvci1wcmludGVkLW9uLWN1c3RvbWVyLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.358 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
