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

#   No order email notification after Joomla 4 and Hikashop 5 upgrade

##

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

Less More

- Posts: 303
- Thank you received: 18
-
-

3 years 1 month ago -  3 years 1 month ago [\#355451](#355451) by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")  *[No order email notification after Joomla 4 and Hikashop 5 upgrade](/forum/29-payment-methods/907053-no-order-email-notification-after-joomla-4-and-hikashop-5-upgrade#355451 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1  &#42;&#42;ignore title as i was unable to change after submit...should be &quot;authorize.net php deprecation warnings&quot;&#42;&#42;  I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.  Since the media/com&#95;hikashop/mail/payment&#95;notification.text.php file does not exist in the latest hikashop installer, i have removed this file.  The authorize issues seems to be related to the lack of company name attached to the order:  After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.")* was created by *[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")*

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.1

**ignore title as i was unable to change after submit...should be "authorize.net php deprecation warnings"**

I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.
Code:

[Wed Sep 27 14:03:31.081688 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXXX] mod_fcgid: stderr: PHP Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/mojo6966/mojo_prod/plugins/hikashoppayment/authorize/authorize.php on line 242, referer: https://www.mojooutdoors.com/checkout/cid-3 [Wed Sep 27 14:03:31.081725 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXX] mod_fcgid: stderr: PHP Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/mojo6966/mojo_prod/plugins/hikashoppayment/authorize/authorize.php on line 253, referer: https://www.mojooutdoors.com/checkout/cid-3 [Wed Sep 27 14:03:31.081728 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXX] mod_fcgid: stderr: PHP Warning: Undefined property: stdClass::$order in /home/mojo6966/mojo_prod/media/com_hikashop/mail/payment_notification.text.php on line 12, referer: https://www.mojooutdoors.com/checkout/cid-3 [Wed Sep 27 14:03:31.081743 2023] [fcgid:warn] [pid 133211:tid 140657877489408] [client XXXX] mod_fcgid: stderr: PHP Warning: Attempt to read property "order_number" on null in /home/mojo6966/mojo_prod/media/com_hikashop/mail/payment_notification.text.php on line 12, referer: https://www.mojooutdoors.com/checkout/cid-3

[ ![authorize&#95;net&#95;php&#95;error.png](/forum/attachment/57910) ](/forum/attachment/57910 "...&#95;php&#95;error.png")

Since the media/com_hikashop/mail/payment_notification.text.php file does not exist in the latest hikashop installer, i have removed this file.

The authorize issues seems to be related to the lack of company name attached to the order:
Code:

$vars["x_ship_to_company"]=mb_substr(@$order-&gt;cart-&gt;shipping_address-&gt;address_company,0,50);

After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.

- [ ![authorize&#95;net&#95;php&#95;error.png](/forum/attachment/57910) ](/forum/attachment/57910 "...&#95;php&#95;error.png") [ ](/forum/attachment/57910?download=1 "...&#95;php&#95;error.png")
- [ ![2023-09-2716&#95;29&#95;59-MOJOOutdoors-Administration-Filemodificationsand6morepages-Personal.png](/forum/attachment/57911) ](/forum/attachment/57911 "...s-Personal.png") [ ](/forum/attachment/57911?download=1 "...s-Personal.png")

Last edit: 3 years 1 month ago by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcwNTMtbm8tb3JkZXItZW1haWwtbm90aWZpY2F0aW9uLWFmdGVyLWpvb21sYS00LWFuZC1oaWthc2hvcC01LXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14288
-
-

3 years 1 month ago [\#355465](#355465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No order email notification after Joomla 4 and Hikashop 5 upgrade](/forum/29-payment-methods/907053-no-order-email-notification-after-joomla-4-and-hikashop-5-upgrade#355465 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1  &#42;&#42;ignore title as i was unable to change after submit...should be &quot;authorize.net php deprecation warnings&quot;&#42;&#42;  I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.  Since the media/com&#95;hikashop/mail/payment&#95;notification.text.php file does not exist in the latest hikashop installer, i have removed this file.  The authorize issues seems to be related to the lack of company name attached to the order:  After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.")*

Hi,

We've made a patch for the deprecated messages.
Download again the install package of the 5.0.0 and install it on your website and it will fix the problem.

Regarding the thank you page, could you provide screenshots and the URLs at each point of the situation ?
Or maybe a screencast so that you can easily capture the changes ? ( For example with [ www.screencastify.com/pricing](https://www.screencastify.com/pricing) )

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

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

Less More

- Posts: 303
- Thank you received: 18
-
-

3 years 1 month ago [\#355494](#355494) by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")  Replied by *[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")* on topic *[No order email notification after Joomla 4 and Hikashop 5 upgrade](/forum/29-payment-methods/907053-no-order-email-notification-after-joomla-4-and-hikashop-5-upgrade#355494 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1  &#42;&#42;ignore title as i was unable to change after submit...should be &quot;authorize.net php deprecation warnings&quot;&#42;&#42;  I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.  Since the media/com&#95;hikashop/mail/payment&#95;notification.text.php file does not exist in the latest hikashop installer, i have removed this file.  The authorize issues seems to be related to the lack of company name attached to the order:  After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.")*

Below is a screen recording of the weird redirect.

[ ![checkout-issues.gif](/forum/attachment/57918) ](/forum/attachment/57918 "...out-issues.gif")

It looks like it goes from domain.com/checkout/confirm -&gt; domain.com/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id=68912&amp;Itemid=883

The first confirm page is showing text from THANK_YOU_FOR_PURCHASE variable, but when it redirects, i'm seeing the html defined on after_end.php. I checked all checkout overrides and cannot figure out where THANK_YOU_FOR_PURCHASE is even used.

- [ ![checkout-issues.gif](/forum/attachment/57918) ](/forum/attachment/57918 "...out-issues.gif") [ ](/forum/attachment/57918?download=1 "...out-issues.gif")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcwNTMtbm8tb3JkZXItZW1haWwtbm90aWZpY2F0aW9uLWFmdGVyLWpvb21sYS00LWFuZC1oaWthc2hvcC01LXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14288
-
-

3 years 1 month ago [\#355496](#355496) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No order email notification after Joomla 4 and Hikashop 5 upgrade](/forum/29-payment-methods/907053-no-order-email-notification-after-joomla-4-and-hikashop-5-upgrade#355496 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1  &#42;&#42;ignore title as i was unable to change after submit...should be &quot;authorize.net php deprecation warnings&quot;&#42;&#42;  I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.  Since the media/com&#95;hikashop/mail/payment&#95;notification.text.php file does not exist in the latest hikashop installer, i have removed this file.  The authorize issues seems to be related to the lack of company name attached to the order:  After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.")*

Hi,

Ok. Supposing that we're talking about the authorize.net payment plugin, I think I know what's going on.
I suppose that you must be using the authorize.net payment plugin in AIM mode. And in that case, the plugin will display its own thank you page with javascript to redirect to the after_end page.
That's indeed not nice (even though it was always like that, and it is not linked to the update).
I think we should be able to avoid this by changing the line: Code:

$this-&gt;removeCart = true;

to: Code:

$app = JFactory::getApplication(); $app-&gt;redirect($this-&gt;payment_params-&gt;return_url);

in the file plugins/hikashoppayment/authorize/authorize.php
Please confirm that this works so that we can include the change in future versions of HikaShop.

The following user(s) said Thank You: [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")

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

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

Less More

- Posts: 303
- Thank you received: 18
-
-

3 years 1 month ago [\#355507](#355507) by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")  Replied by *[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")* on topic *[No order email notification after Joomla 4 and Hikashop 5 upgrade](/forum/29-payment-methods/907053-no-order-email-notification-after-joomla-4-and-hikashop-5-upgrade#355507 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1  &#42;&#42;ignore title as i was unable to change after submit...should be &quot;authorize.net php deprecation warnings&quot;&#42;&#42;  I am seeing a php error right after payment is submitted to authorize.net. Payment is collected successfully though.  Since the media/com&#95;hikashop/mail/payment&#95;notification.text.php file does not exist in the latest hikashop installer, i have removed this file.  The authorize issues seems to be related to the lack of company name attached to the order:  After commenting the affected lines out, warning goes away. HOWEVER, there's something strange going on because on initial load, it shows a text copy of the thank you note, and it immediately reloads with the html copy.")*

After making changes to authorize.php, everything seems to be functioning as expected. Thanks nicolas!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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