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...
Phoca Open Graph Plugin Vs New Joomla 3.5
-
- Phoca Newbie
- Posts: 3
- Joined: 24 Mar 2016, 05:46
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
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:
TO:
Jan
To not have this proble, you can change the code.
FROM:
Code: Select all
$pictures = json_decode($row->images);
Code: Select all
$pictures = '';
if (isset($row->images)) {
$pictures = json_decode($row->images);
}
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 24 Mar 2016, 05:46
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
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.
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.
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Hi, hmm, then I think this should be a question on K2 developers - to ask what changed there 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 16 May 2016, 09:40
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
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
Notice: Undefined property: JObject::$metadesc in /home/..../public_html/...../plugins/content/phocaopengraph/phocaopengraph.php on line 56
how to solve the notice.
Thanks
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Hi, try to open:
plugins/content/phocaopengraph/phocaopengraph.php
and try to change this row from:
to:
Jan
plugins/content/phocaopengraph/phocaopengraph.php
and try to change this row from:
Code: Select all
$thisDesc = $row->metadesc;
Code: Select all
$thisDesc = '';
if (isset($row->metadesc)) {
$thisDesc = $row->metadesc;
}
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 16 May 2016, 09:40
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
thanks..it works
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Open Graph Plugin Vs New Joomla 3.5
Ok
If you find Phoca extensions useful, please support the project