Multi-lingual SEO & Sitemap

Multi-lingual SEO & Sitemap plugin. It supports CMS Pages, Static Pages and custom models.

Back to Multi-lingual SEO & Sitemap Support

michael33692
michael33692

The plugin works almost like a charm.

I have just a small issue. Whenever I add a blog category SEO entry, I get the following exception on the backoffice SEO page : Array to string conversion - ...\public\modules\backend\widgets\Lists.php line 1123.

The category page on the website is properly updated with the correct SEO datas though, but I can't access the CMS SEO list page anymore. Still trying to figure out what the issue could be...

michael33692
michael33692

Apparently, the event pages.menuitem.getTypeInfo returns a multidimensionnal array for the blog category item: {'title':'category title', items: []}, that makes evalTextTypeValue fail (it does an implode on the value, so it cannot accept a multidimensionnal array - hence the error received above). No idea what the items array should contain, it's always returned empty.

As a quick fix, I have added a control in the getModelTitleAttribute function of the Seo Model that check if the returned value is an array and extract the first item only if so. May not be optimal though, but it works for me, so I'm not digging deeper.

Utopig Studio
Utopig Studio

Fixed! Yes it was a bug with elements with nested items. Please test it :)

michael33692
michael33692

Great, works as expected now. Thx for the quick support!

1-4 of 4