Page 1 of 1
Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 24 Mar 2016, 05:50
by webfarol
Hi there,
im getting an error with new joomla 3.5 version in K2 article pages.
Notice: Undefined property: stdClass::$images in /home/hoteldemo/public_html/plugins/content/phocaopengraph/phocaopengraph.php on line 97
that line contains
$pictures = json_decode($row->images);
Thanks in advance...
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 26 Mar 2016, 21:49
by Jan
Hi, this should not have anything to do with Joomla! 3.5, testing now, without any such problem, hmmm - are you able to test it in standard article? Do you get the same error there?
To not have this proble, you can change the code.
FROM:
Code: Select all
$pictures = json_decode($row->images);
TO:
Code: Select all
$pictures = '';
if (isset($row->images)) {
$pictures = json_decode($row->images);
}
Jan
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 27 Mar 2016, 18:46
by webfarol
Thanks for your answer.
In the articles looks ok. The problem is in K2 after i update to last version.
I have 2 copy's from the website one in joomla 3.5 and another in 3.4.8. Both with k2 last version.
Both copy's works just fine in joomla standard articles. Both copy's publish the wrong image on facebook in k2 articles.
Before i update k2 everything works just fine.
Thanks in advance.
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 31 Mar 2016, 17:16
by Jan
Hi, hmm, then I think this should be a question on K2 developers - to ask what changed there
Jan
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 16 May 2016, 09:52
by militansi
i already install plugin phoca open graph, this is good plugin but i have problem, i will insert image on article (editor front end) and in the every image have notice
Notice: Undefined property: JObject::$metadesc in /home/..../public_html/...../plugins/content/phocaopengraph/phocaopengraph.php on line 56
how to solve the notice.
Thanks
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 17 May 2016, 22:41
by Jan
Hi, try to open:
plugins/content/phocaopengraph/phocaopengraph.php
and try to change this row from:
to:
Code: Select all
$thisDesc = '';
if (isset($row->metadesc)) {
$thisDesc = $row->metadesc;
}
Jan
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 19 May 2016, 04:18
by militansi
thanks..it works
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Posted: 21 May 2016, 16:43
by Jan
Ok