Phoca Open Graph Plugin Vs New Joomla 3.5

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
webfarol
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Mar 2016, 05:46

Phoca Open Graph Plugin Vs New Joomla 3.5

Post 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...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post 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
If you find Phoca extensions useful, please support the project
webfarol
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Mar 2016, 05:46

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post by Jan »

Hi, hmm, then I think this should be a question on K2 developers - to ask what changed there :idea:

Jan
If you find Phoca extensions useful, please support the project
militansi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 16 May 2016, 09:40

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post by Jan »

Hi, try to open:
plugins/content/phocaopengraph/phocaopengraph.php

and try to change this row from:

Code: Select all

$thisDesc 	= $row->metadesc;
to:

Code: Select all

$thisDesc = '';
if (isset($row->metadesc)) {
$thisDesc 	= $row->metadesc;
}
Jan
If you find Phoca extensions useful, please support the project
militansi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 16 May 2016, 09:40

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post by militansi »

thanks..it works
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph Plugin Vs New Joomla 3.5

Post by Jan »

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