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

#   Not receiving order creation admin notification email

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 5 months ago [\#206093](#206093) by [thegunnar](/forum/user/37755-thegunnar "View thegunnar's Profile")  *[Not receiving order creation admin notification email](/forum/27-checkout/877763-not-receiving-order-creation-admin-notification-email#206093 "-- url of the page with the problem -- :   www.alternasweets.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Chrome 43.0.2357.130 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order&#95;text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223  Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.  We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.  I checked the website access logs, which return 200, so PayPal POST is getting through to the site.  I checked the debug file and it initially returned nothing, but now shows, &quot;Undefined variable: order&#95;text in&quot; ... &quot;/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223&quot; This line reads,  Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.")* was created by *[thegunnar](/forum/user/37755-thegunnar "View thegunnar's Profile")*

-- url of the page with the problem -- : [ www.alternasweets.com](http://www.alternasweets.com)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : Chrome 43.0.2357.130
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order_text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223

Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.

We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.

I checked the website access logs, which return 200, so PayPal POST is getting through to the site.

I checked the debug file and it initially returned nothing, but now shows,
"Undefined variable: order_text in" ... "/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223"
This line reads, Code:

$body = str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','PayPal Advanced',$vars['RESULT'])).' '.JText::sprintf('ORDER_STATUS_CHANGED',$this-&gt;payment_params-&gt;verified_status)."\r\n\r\n".$order_text;

Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#206169](#206169) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Not receiving order creation admin notification email](/forum/27-checkout/877763-not-receiving-order-creation-admin-notification-email#206169 "-- url of the page with the problem -- :   www.alternasweets.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Chrome 43.0.2357.130 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order&#95;text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223  Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.  We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.  I checked the website access logs, which return 200, so PayPal POST is getting through to the site.  I checked the debug file and it initially returned nothing, but now shows, &quot;Undefined variable: order&#95;text in&quot; ... &quot;/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223&quot; This line reads,  Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.")*

Hi,

Please just add the code: Code:

$app = JFactory::getApplication(); $order_text = '';

Before: Code:

if($vars['secret_code'] != $this-&gt;payment_params-&gt;secret_code) {

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 5 months ago [\#206281](#206281) by [thegunnar](/forum/user/37755-thegunnar "View thegunnar's Profile")  Replied by *[thegunnar](/forum/user/37755-thegunnar "View thegunnar's Profile")* on topic *[Not receiving order creation admin notification email](/forum/27-checkout/877763-not-receiving-order-creation-admin-notification-email#206281 "-- url of the page with the problem -- :   www.alternasweets.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Chrome 43.0.2357.130 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order&#95;text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223  Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.  We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.  I checked the website access logs, which return 200, so PayPal POST is getting through to the site.  I checked the debug file and it initially returned nothing, but now shows, &quot;Undefined variable: order&#95;text in&quot; ... &quot;/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223&quot; This line reads,  Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.")*

Thank you for responding so quickly.
Code:

$app = JFactory::getApplication();

was already in place so I added just the single line of code,
Code:

$order_text = '';

before,
Code:

if($vars['secret_code'] != $this-&gt;payment_params-&gt;secret_code) {

like you said. Then I created an order and still didn't receive the email. I checked the Hikashop log and found nothing new, but when I turned Joomla error reporting to maximum I received,
"Notice: Undefined index: task in /home4/nautilx0/public_html/alternasweets/components/com_hikashop/router.php on line 53"

I see another forum post asking about this message, but nobody responded to it and their suggestion didn't fix the problem either.
[ www.hikashop.com/forum/3-bug-report/8777...shop-router-php.html](http://www.hikashop.com/forum/3-bug-report/877788-missing-variable-safeguard-in-components-com-hikashop-router-php.html)

What else can I try?

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#206325](#206325) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Not receiving order creation admin notification email](/forum/27-checkout/877763-not-receiving-order-creation-admin-notification-email#206325 "-- url of the page with the problem -- :   www.alternasweets.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Chrome 43.0.2357.130 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order&#95;text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223  Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.  We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.  I checked the website access logs, which return 200, so PayPal POST is getting through to the site.  I checked the debug file and it initially returned nothing, but now shows, &quot;Undefined variable: order&#95;text in&quot; ... &quot;/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223&quot; This line reads,  Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.")*

Hi,

So you have not more PHP error messages displayed ?

Regarding the order administrator notification email, have the From Address been changed ? In some cases, if this the receiver email address is the same as the sender one the server don't send the email.

Does this email has been edited ? If it is, please remove the override and try again.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 5 months ago [\#206485](#206485) by [thegunnar](/forum/user/37755-thegunnar "View thegunnar's Profile")  Replied by *[thegunnar](/forum/user/37755-thegunnar "View thegunnar's Profile")* on topic *[Not receiving order creation admin notification email](/forum/27-checkout/877763-not-receiving-order-creation-admin-notification-email#206485 "-- url of the page with the problem -- :   www.alternasweets.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Chrome 43.0.2357.130 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order&#95;text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223  Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.  We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.  I checked the website access logs, which return 200, so PayPal POST is getting through to the site.  I checked the debug file and it initially returned nothing, but now shows, &quot;Undefined variable: order&#95;text in&quot; ... &quot;/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223&quot; This line reads,  Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.")*

Ah ha I think I found it. There was one more error just before redirecting to PayPal but it usually flashed too quick to read. I captured it and it read,

Notice: Trying to get property of non-object in
website/website/website/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 73

This line reads,
Code:

'EMAIL' =&gt; $this-&gt;user-&gt;user_email,

I suppose this means Hikashop is trying to ask Joomla the user's email, which isn't logged in so the email doesn't exist. This also explains why logging in with an admin account makes everything work. How would I fix this? Can I just add filler text here, or define it above?

To answer your questions, the other errors are still showing up. Yes it is using a different email. No there is only a couple overrides but they are unrelated to this issue and I tried disabling all of them.

Also the ultimate goal of this is to email my client both customer address (through PayPal) and oder contents (through Hikashop). If there is be a way to send order info to PayPal Advanced then it would be solved. I don't think PayPal Advanced supports this, but please let me know if we could set that up instead.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzc2My1ub3QtcmVjZWl2aW5nLW9yZGVyLWNyZWF0aW9uLWFkbWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 4 months ago [\#206622](#206622) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Not receiving order creation admin notification email](/forum/27-checkout/877763-not-receiving-order-creation-admin-notification-email#206622 "-- url of the page with the problem -- :   www.alternasweets.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Chrome 43.0.2357.130 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order&#95;text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223  Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.  We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.  I checked the website access logs, which return 200, so PayPal POST is getting through to the site.  I checked the debug file and it initially returned nothing, but now shows, &quot;Undefined variable: order&#95;text in&quot; ... &quot;/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223&quot; This line reads,  Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.")*

Hi,

If you have warning messages appearing, the simplest is to turn off the "error reporting" setting of the joomla configuration. It will remove them.

There is no option to send the cart content to PayPal with PayPal Advanced. If I remember corretly, the Advanced API doesn't support that. However, the address of the customer is sent to PayPal with PayPal Advanced.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzc2My1ub3QtcmVjZWl2aW5nLW9yZGVyLWNyZWF0aW9uLWFkbWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) 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.065 seconds

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