Open Graph Plugin creating multiple tags on home page

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
Lysander Spooner
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 22 Nov 2016, 05:18

Open Graph Plugin creating multiple tags on home page

Post by Lysander Spooner »

See this site: feminapt.com

If you look at the source code there is a block of the correct tags like these:

Code: Select all

<meta property="og:title" content="Femina Physical Therapy | Vaginismus Treatment | Los Angeles, CA" />
	<meta property="og:type" content="website" />
	<meta property="og:image" content="https://feminapt.com/images/femina-logo.png" />
	<meta property="og:url" content="https://feminapt.com/" />
	<meta property="og:site_name" content="Femina PT" />
	<meta property="og:description" content="Fusion Wellness &amp; Physical Therapy provides treatment for vaginismus and other pelvic floor issues, with two locations in the greater Los Angeles area" />
	<meta property="fb:app_id" content="618371325019504" />
About ten lines further down there is a huge block of tags that begins with these:

Code: Select all

<meta property="og:title" content="Mi Sexo Sin Dolor - El Libro - de Heather Jeffcoat, DPT" />
	<meta property="og:image" content="https://feminapt.com/images/swp_book_cover_spanish.jpg" />
	<meta property="og:title" content="Girls Night Out: Better Sexual and Pelvic Health" />
	<meta property="og:image" content="https://feminapt.com/images/girlsnightoutflyer_300px.jpg" />
	<meta property="og:title" content="Urogenital Prolapse" />
	<meta property="og:title" content="Incontinence" />
	<meta property="og:title" content="Pelvic Pain Syndromes" />
	<meta property="og:title" content="Heather Interviewed by HelloFlo About Preventing Yeast Infections" />
	<meta property="og:image" content="https://feminapt.com/images/helloflo-intro.png" />
	<meta property="og:title" content="Heather Interviewed by August McLaughlin on the Girl Boner Podcast" />
	<meta property="og:image" content="https://feminapt.com/images/girlboner170x170bb.jpg" />
	<meta property="og:title" content="About Lacey" />
	<meta property="og:image" content="https://feminapt.com/images/lacey-full.jpg" />
	<meta property="og:title" content="Heather Interviewed by ABC News' Aaron Sanchez" />
	<meta property="og:image" content="https://feminapt.com/images/aaron-sanchez-intro.jpg" />
	<meta property="og:title" content="Help for Pubic Symphysis Pain" />
	<meta property="og:image" content="https://feminapt.com/images/symphysispubis_intro_image.png" />
	<meta property="og:title" content="Carpal Tunnel Syndrome During Pregnancy" />
	<meta property="og:image" content="https://feminapt.com/images/cp_image02.jpg" />
	<meta property="og:title" content="Childbirth Injuries" />
	<meta property="og:title" content="Early Post Partum Recovery" />
	<meta property="og:image" content="https://feminapt.com/images/epr_intro_image.jpg" />
	<meta property="og:title" content="Help for Postural Pain After Breastfeeding" />
The second block of code is only about 10% of what is being generated. It is as if the plugin is creating tags for everything on the page. How do we fix this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph Plugin creating multiple tags on home page

Post by Jan »

Hi, which way of open graph do you use?

Do you use system plugin or content plugin? Which version? What is the type of site where this occurs (com_content or another part)?

Jan
If you find Phoca extensions useful, please support the project
Lysander Spooner
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 22 Nov 2016, 05:18

Re: Open Graph Plugin creating multiple tags on home page

Post by Lysander Spooner »

The site is Joomla 3.8.2 with content plugin v3.1.2 and system plugin 3.0.4. The template is Samba Spa from Shape 5.

The home page menu item is a single article without any content in it. All of the content on the home page is in modules.

At first I had just the content plugin installed, so I thought maybe I need the system plugin also. Having both installed makes no difference, and having only the system plugin creates no tags.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph Plugin creating multiple tags on home page

Post by Jan »

Hi, if you run only the content plugin (system plugin will be disabled) do you still get the duplicity items? On single article view? Don't you use some other plugins, because I see 8 titles there which is in fact not possible to create in one plugin for one article :idea:

Jan
If you find Phoca extensions useful, please support the project
Lysander Spooner
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 22 Nov 2016, 05:18

Re: Open Graph Plugin creating multiple tags on home page

Post by Lysander Spooner »

Hi Jan,

That is correct, when I have only the content plugin enabled I still get the multiple tags. It makes no difference if I have the system plugin enabled or not. I also have 'Phoca Site Plugin' installed, but it makes no difference if it is enabled or not:

https://feminapt.com/images/phoca.jpg

By the way, the issue only occurs on the home page, so it seems to be template related. I can PM you with admin details if you want to have a look for yourself.

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph Plugin creating multiple tags on home page

Post by Jan »

What about the cache, do you use cache?

Jan
If you find Phoca extensions useful, please support the project
Lysander Spooner
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 22 Nov 2016, 05:18

Re: Open Graph Plugin creating multiple tags on home page

Post by Lysander Spooner »

Yes, the standard Joomla caching system plus JCH Optimize, though turning off JCH makes no difference. I have also tried unpublishing several of the modules on the home page including the menus but it makes no difference.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph Plugin creating multiple tags on home page

Post by Jan »

What happens, when you:

1) disable the system plugin
2) enable only content plugin
3) and you create one link to only one article - for test only - what is displayed on such site?

Jan
If you find Phoca extensions useful, please support the project
Post Reply