Home Forum
2017-11-22
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Ricezione
Benvenuto, Ospite
Nome Utente Password: Ricordami

Canonical TAG RSS Fail
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Canonical TAG RSS Fail

Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3115

Hello, I have a problem inserting the canonical URL with Tag Meta Enterprise
Version 1.6.1 is inserted fine but my syndicated channels stop working.
this is appears:

Fatal error: Call to undefined method JDocumentFeed::addHeadLink() in /home2/ciencias/public_html/plugins/system/tagmeta/tagmeta.php on line 540

disable the canonical url and returns to work rss channel

Any idea?

Joomla 2.5.2

thanks

Re: Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3116

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
this is the first time related to RSS, so I check and let you know.

Kind regards,
Luigi

Re: Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3117

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
problem is that Tag Meta uses this method to add the link to page head:

$document->addHeadLink

So, all works well when $document is an instance of JDocumentHtml, but JDocumentFeed haven't the addHeadLink method.

I could fix the problem adding some check on page type, but I would like to ask you why you need to add a canonical link to an RSS page?

Please advise,
Luigi

Re: Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3118

Ok I added a canonical url to my home page to avoid duplicate content.

for example

www.myyyysite.com
www.myyyysite.com/index.php

are the same but Google are detected as duplicate
then I add rule the canonical tag to www.myyyysite.com/index.php

<link href="www.myyyysite.com" rel="canonical"/>

All right here

But, when I do this the site www.myyyysite.com stops displaying the generated joomla rss channel but only the content feed, when someone wants to subscribe to my channel and click the RSS icon appears this:

Fatal error: Call to undefined method JDocumentFeed::addHeadLink() in /home2/ciencias/public_html/plugins/system/tagmeta/tagmeta.php on line 540

That's the problem
Ultima modifica: 5 Anni, 8 Mesi fa Da rayo_rebelde.

Re: Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3119

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Now all is clear.

For the future I will improve checks to avoid this problems. Meanwhile you can avoid the problems just setting a more restricted rule. To do this change your rule from (I suppose):

/index.php


To:

^/index\.php/?$


Kind regards,
Luigi
Ultima modifica: 5 Anni, 8 Mesi fa Da admin.

Re: Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3121

Now syndicated content works well and I've also added the canonical URL

Thank you. Greetings from Mexico

Ivan

This post can be closed.

Re: Canonical TAG RSS Fail 5 Anni, 8 Mesi fa #3123

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Great Mexico,
bring a kiss to Playa del Carmen (Yucatan) from Italy.

Cheers,
Luigi
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.35 secondi
News
Cerca con Google
Chi è online
 80 visitatori online
Sponsor

Slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.