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

#   Error calling Image thumbnail in Google Products XML

##

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

Less More

- Posts: 66
- Thank you received: 1
-
-

3 years 11 months ago -  3 years 11 months ago [\#346546](#346546) by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile")  *[Error calling Image thumbnail in Google Products XML](/forum/25-install-update/905344-error-calling-image-thumbnail-in-google-products-xml#346546 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.5  Hello,  after updating to Joomla 4 I get an error from an override you proposed some time ago for Google products plugin:  The change is on line 436, of the plugin's PHP file.  The altered code is:  What change needs to be done?  For reference, this is the URL of the related topic:   www.hikashop.com/forum/development/90069...le-products-xml.html  Thank you, Yannis")* was created by *[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")*

-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.5

Hello,

after updating to Joomla 4 I get an error from an override you proposed some time ago for Google products plugin: Code:

An error has occurred. 0 Call to a member function getThumbnail() on null

The change is on line 436, of the plugin's PHP file.

The altered code is: Code:

$img_thumb = $imageHelper-&gt;getThumbnail($image-&gt;file_path, array(500, 500), array('default' =&gt; true)); $xml .= "\t".'&lt;g:'.$name.'&gt;'.htmlspecialchars($img_thumb-&gt;url).'&lt;/g:'.$name.'&gt;'."\n";

What change needs to be done?

For reference, this is the URL of the related topic: [ www.hikashop.com/forum/development/90069...le-products-xml.html](https://www.hikashop.com/forum/development/900692-get-image-thumbnail-in-google-products-xml.html)

Thank you,
Yannis

Last edit: 3 years 11 months ago by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile").

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

3 years 11 months ago [\#346547](#346547) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error calling Image thumbnail in Google Products XML](/forum/25-install-update/905344-error-calling-image-thumbnail-in-google-products-xml#346547 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.5  Hello,  after updating to Joomla 4 I get an error from an override you proposed some time ago for Google products plugin:  The change is on line 436, of the plugin's PHP file.  The altered code is:  What change needs to be done?  For reference, this is the URL of the related topic:   www.hikashop.com/forum/development/90069...le-products-xml.html  Thank you, Yannis")*

Hi,

The modification you had proposed in that other thread was not complete. You had also added before the line:
$imageHelper = hikashop_get('helper.image');
And you didn't add that line again after the migration which is why it doesn't work.

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

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

Less More

- Posts: 66
- Thank you received: 1
-
-

3 years 11 months ago [\#346567](#346567) by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile")  Replied by *[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")* on topic *[Error calling Image thumbnail in Google Products XML](/forum/25-install-update/905344-error-calling-image-thumbnail-in-google-products-xml#346567 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.5  Hello,  after updating to Joomla 4 I get an error from an override you proposed some time ago for Google products plugin:  The change is on line 436, of the plugin's PHP file.  The altered code is:  What change needs to be done?  For reference, this is the URL of the related topic:   www.hikashop.com/forum/development/90069...le-products-xml.html  Thank you, Yannis")*

Thank you Nicolas!

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

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