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

#   hikashop social keeps breaking

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

13 years 4 months ago [\#110084](#110084) by [menelik](/forum/user/12928-menelik "View menelik's Profile")  *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#110084 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")* was created by *[menelik](/forum/user/12928-menelik "View menelik's Profile")*

Hi,

You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop_social} is not being replaced. please advise.

Thank you

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 months ago -  13 years 4 months ago [\#110100](#110100) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#110100 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")*

Hi,

I think that reading that [ thread](http://www.hikashop.com/fr/forum/3-bug-report/19859-hikashop-social-plugin-not-working.html) will probably help you ![:)](/media/kunena/emoticons/3.png ":)").

Last edit: 13 years 4 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

13 years 4 months ago -  13 years 4 months ago [\#110538](#110538) by [menelik](/forum/user/12928-menelik "View menelik's Profile")  Replied by *[menelik](/forum/user/12928-menelik "View menelik's Profile")* on topic *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#110538 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")*

Hi Mohammed,

Thanks for that. Unfortunately the suggestions in that thread did not solve my problem however i did find the problem. in show_default.php i added the following code:
Code:

if($this-&gt;element-&gt;product_description){ echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description)); }else{ echo '&lt;p&gt;Sorry, we\'re still in the middle of writing up this description, but we wo\'nt be long, so be sure to check back soon. Thanks&lt;/p&gt;'; }

this breaks the hikashop_social plugin but i don't understand why???

whereas if i remove the expression:
Code:

echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));

it's fine!

I'm trying to add a default message when a product description is missing. any ideas?

thanks

Last edit: 13 years 4 months ago by [menelik](/forum/user/12928-menelik "View menelik's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 months ago [\#110550](#110550) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#110550 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")*

And if you use this code : Code:

if($this-&gt;element-&gt;product_description){ echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description)); }else{ echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','','&lt;p&gt;Sorry, we\'re still in the middle of writing up this description, but we won\'t be long, so be sure to check back soon. Thanks&lt;/p&gt;')); }

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

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

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

Less More

- Posts: 263
- Thank you received: 11
-
-

13 years 1 month ago [\#123370](#123370) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#123370 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")*

Bonjour à tous,
Sur ce même sujet, j'ai vraiment un problème.

QUelqu'un pourrait m'expliquer pourquoi le plugin hikashop_social ne semble plus fonctionner aussitôt que j'efface ces lignes de mon fichier show_tabular.php :

Code:

&lt;div id="hikashop_product_description_main_mini" class="hikashop_product_description_main_mini"&gt; &lt;?php $resume = substr(strip_tags(preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;element-&gt;product_description)),0,300); $resume .= "...&lt;a href='#description'&gt;".JText::_('READ_MORE')."&lt;/a&gt;"; echo JHTML::_('content.prepare',$resume); ?&gt; &lt;/div&gt;

Aussitôt que j'efface ces lignes, je vois plutôt {hikashop_social} écrit sur ma page.

Je ne vois pas trop le rapport entre les deux.

Merci

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

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

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 1 month ago [\#123382](#123382) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#123382 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")*

Bonjour,

En effet les deux ne semblent avoir aucun lien.
Il ne me semble pas que la div soit utilisé mais vous pouvez toujours essayer de laisser les balises div sans le contenu.

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

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

Less More

- Posts: 263
- Thank you received: 11
-
-

13 years 1 month ago [\#123388](#123388) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[hikashop social keeps breaking](/forum/3-bug-report/83960-hikashop-social-keeps-breaking#123388 "Hi,  You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop&#95;social} is not being replaced. please advise.  Thank you")*

Je ne pense plus que ce soit ça le problème. Je démarre un nouveau post.

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

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

[](#top)
