Pages (2): 1 2   
Member
Member
adekvatno   27-10-2017, 13:35
#1

Hello to everyone. Sorry for my bad English.

I'm trying to use OpenGraph, but og:image doesn't work. According to source of html_meta_tags, $thumb variable is aways empty (on any pages of gallery). I'm using Zenphoto 1.4.14 [f5b47da52f] (Official build) with html_meta_tags and Graphics support: PHP GD library bundled (2.1.0 compatible). Other OG tags working perfectly.

Administrator
Administrator
acrylian   27-10-2017, 13:54
#2

You only get an og:image automatically if you are on an image page, album page or single image. For all other pages the "site logo" if set on the plugin option of the same name is used. We use it that way on our own site as you can see if you view the source.

Member
Member
adekvatno   27-10-2017, 14:28
#3

Thanks for answer. og:image doesn't work on image page, index page and on album page. How to enable debug mode for the plugin? I'm not programmer, and dirty hacks like "echo $var" doesn't work for plugin debug.

Administrator
Administrator
acrylian   27-10-2017, 14:52
#4

As you can see on our own site it does work. So I suggest to review your error logs (Zenphoto's debuglog and the server PHP log)

Member
Member
adekvatno   27-10-2017, 19:04
#5

Anyway, thanks.

And special thanks for Zenphoto script. 8 years Zenphoto works on my site. Fast, reliable, simple. Thanks alot.

Administrator
Administrator
acrylian   27-10-2017, 20:35
#6

Thanks. Sorry that I can't help more right now as it seems to work for me. Let us know if you find out anything further.

Member
Member
undagiga   28-10-2017, 10:13
#7

Working here too, but I have a question. I checked my site's meta tags, and when I first view the page source, I see the following for og:image:

http://www.mysite.com/zp-core/i.php?a=album&i=image.jpg&w=433&h=650&cw=0&ch=0&q=90&wmk=%21&check=57250ae6980eeec9a59158a47a4c7a72cce356a5

However if I hit reload for the page source, I get a more typical:

http://www.mysite.com/cache/album/image.jpg

What's this all about? Is it just the browser doing this?

Administrator
Administrator
acrylian   28-10-2017, 10:21
#8

Just cached image versus uncached image, should appear only once. Also please review the user guide entry on caching about this.
http://www.zenphoto.org/news/caching/

Member
Member
adekvatno   30-10-2017, 08:17
#9

I found error. In html_meta_tags code row 192:

[code]if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) { [/code]

In my configuration, Opengraph was enabled, twitter-card was not. After enabling twitter-card, og:image working fine.

Also, I noticed that the plugin settings are not saved options property=og:. When i save, the checkbox is only on option "OpenGraph (og". Options property='og:' even being marked, after saving remains unchecked. Apparently, this affects the selection at row 192. At the same time, if twitter-card enabled, everything starts to work. Why not save the status of the options when saving, I don't know, maybe it's a problem of my system. But keep this in mind.

Administrator
Administrator
acrylian   30-10-2017, 10:25
#10

Thanks for insisting on this issue. This is indeed a bug respectively omission from an earlier change.

There should be only one OpenGraph option - except the image width/height ones - as most of these are required for the meta tags to be valid (og:image without all others would be).

FIx will be in the support build soon.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.