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

#   Error from J3 to J4

##

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

Less More

- Posts: 611
- Thank you received: 13
-

4 years 2 months ago [\#344465](#344465) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[Error from J3 to J4](/forum/33-customers/904967-error-from-j3-to-j4#344465 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : element-&gt;dhl&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl&#95;tracking.'';}?&gt; element-&gt;rm&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm&#95;tracking.'';}?&gt; element-&gt;pf&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf&#95;tracking.'';}?&gt;  Hi, I am using this code in J3 to supply our customers tracking numbers for parcels, it now does not work in J4 This is in customisation in order/show.php and  working code in J3: element-&gt;dhl&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl&#95;tracking.'';}?&gt; element-&gt;rm&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm&#95;tracking.'';}?&gt; element-&gt;pf&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf&#95;tracking.'';}?&gt;  Now gives this error message in J4: element-&gt;dhl&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl&#95;tracking.'';}?&gt; element-&gt;rm&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm&#95;tracking.'';}?&gt; element-&gt;pf&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf&#95;tracking.'';}?&gt;  I'm guessing something in the code needs changing?  thanks")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.0
-- PHP version -- : 8
-- Browser(s) name and version -- : CHROME
-- Error-message(debug-mod must be tuned on) -- : element-&gt;dhl_tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl_tracking.'';}?&gt; element-&gt;rm_tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm_tracking.'';}?&gt; element-&gt;pf_tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf_tracking.'';}?&gt;

Hi, I am using this code in J3 to supply our customers tracking numbers for parcels, it now does not work in J4 This is in customisation in order/show.php and

working code in J3:
&lt;?phpif(!empty($this-&gt;element-&gt;dhl_tracking)){echo ' &lt;strong&gt;Track your item:&lt;/strong&gt; &lt;a href="[ www.dhl.co.uk/en/express/tracking.html?AWB='.$this-](https://www.dhl.co.uk/en/express/tracking.html?AWB='.$this-)&gt;element-&gt;dhl_tracking.'"&gt;'.$this-&gt;element-&gt;dhl_tracking.'&lt;/a&gt;';}?&gt;
&lt;?phpif(!empty($this-&gt;element-&gt;rm_tracking)){echo ' &lt;strong&gt;Track your item:&lt;/strong&gt; &lt;a href="[ www.royalmail.com/track-your-item#/tracking-results/'.$this-](https://www.royalmail.com/track-your-item#/tracking-results/'.$this-)&gt;element-&gt;rm_tracking.'"&gt;'.$this-&gt;element-&gt;rm_tracking.'&lt;/a&gt;';}?&gt;
&lt;?phpif(!empty($this-&gt;element-&gt;pf_tracking)){echo ' &lt;strong&gt;Track your item:&lt;/strong&gt; &lt;a href="[ www.parcelforce.com/track-trace?trackNumber='.$this-](https://www.parcelforce.com/track-trace?trackNumber='.$this-)&gt;element-&gt;pf_tracking.'"&gt;'.$this-&gt;element-&gt;pf_tracking.'&lt;/a&gt;';}?&gt;

Now gives this error message in J4:
element-&gt;dhl_tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl_tracking.'';}?&gt; element-&gt;rm_tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm_tracking.'';}?&gt; element-&gt;pf_tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf_tracking.'';}?&gt;

I'm guessing something in the code needs changing?

thanks

- [ ![cust&#95;error.jpg](/forum/attachment/55492) ](/forum/attachment/55492 "cust&#95;error.jpg") [ ](/forum/attachment/55492?download=1 "cust&#95;error.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDQ5NjctZXJyb3ItZnJvbS1qMy10by1qND90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

4 years 2 months ago [\#344467](#344467) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error from J3 to J4](/forum/33-customers/904967-error-from-j3-to-j4#344467 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : element-&gt;dhl&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl&#95;tracking.'';}?&gt; element-&gt;rm&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm&#95;tracking.'';}?&gt; element-&gt;pf&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf&#95;tracking.'';}?&gt;  Hi, I am using this code in J3 to supply our customers tracking numbers for parcels, it now does not work in J4 This is in customisation in order/show.php and  working code in J3: element-&gt;dhl&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl&#95;tracking.'';}?&gt; element-&gt;rm&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm&#95;tracking.'';}?&gt; element-&gt;pf&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf&#95;tracking.'';}?&gt;  Now gives this error message in J4: element-&gt;dhl&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;dhl&#95;tracking.'';}?&gt; element-&gt;rm&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;rm&#95;tracking.'';}?&gt; element-&gt;pf&#95;tracking)){echo ' Track your item: '.$this-&gt;element-&gt;pf&#95;tracking.'';}?&gt;  I'm guessing something in the code needs changing?  thanks")*

Hi,

You need a space between the "&lt;?php" and the "if". I don't think it's linked to your version of Joomla but to your version of PHP. PHP8 is stricter than PHP 7 and no space between the &lt;?php and the PHP code is not something I would recommend and that's probably why you get that display as PHP 8 now thinks your &lt;?phpif is just a normal HTML tag.

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

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