Hello/Hi/Greetings,
how to disable "high resolution" by default for all guests and users? BTW: High resolution image does not contain watermark which seems to be a flaw!
When i disable this on "edit user" screen (including guest account) I'm getting:
Warning: Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101
on the page displaying photo.
As I checked the PHP error log it seems Loupe is not compatible with disabling this option? When Loupe plugin is enabled I'm getting this:
PHP Notice: Undefined index: element_url in /photoalbum/plugins/Loupe/main.inc.php on line 53
[18-Jan-2017 12:31:55 Europe/Warsaw] PHP Warning: Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101
However except this notification it runs fine... If deactivated everything is OK.
My theme is Bootstrap darkroom.
Piwigo version: 2.8.5
PHP version: 5.6.12
MySQL version: 5.5.51-38.1
Last edited by daareek (2017-01-18 12:46:44)
Offline
Hi :-)
Go to Administration > Users > Manage
Edit user 'guest'
uncheck 'High definition enabled'
Offline
Hi,
thanks for fast reply!
New registered users will inherit this setting from guest account?
It works but it seems there is a bug in Loupe plugin, when I uncheck and disable high resolution it works but generates this warnings:
PHP Notice: Undefined index: element_url in /photoalbum/plugins/Loupe/main.inc.php on line 53
[18-Jan-2017 12:31:55 Europe/Warsaw]
PHP Warning: Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101
on the page displaying image. :-(
Offline
Hi :-)
code line 53 ?
Offline
Hi,
52 if(isset($match) && count($match)>0){
53 $content = str_replace($match[0],'<a id="loupe_image" href="'.$element_info['element_url'].'">'.$match[0].'</a>',$content);
54 }
55 return $content;
Offline
daareek wrote:
Hi,
thanks for fast reply!
New registered users will inherit this setting from guest account?
by default yes
you can change that in your local config by using the plugin LocalFiles Editor
daareek wrote:
It works but it seems there is a bug in Loupe plugin, when I uncheck and disable high resolution it works but generates this warnings:
PHP Notice: Undefined index: element_url in /photoalbum/plugins/Loupe/main.inc.php on line 53
[18-Jan-2017 12:31:55 Europe/Warsaw]
PHP Warning: Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101
on the page displaying image. :-(
you can hide this from the local config or by changing the php error level on your whole website or through an htaccess file
A Notice like that may indicate that the plugin need the HD picture at one point but if everything is working the dev might have not thought of that case. I notify him
Offline
Hi,
great loupe is fixed! :-)
Offline