Announcement

#1 2015-01-04 21:21:27

matthys
Member
2014-04-02
188

(Piwigo 2.7.2) Apache error with PHP Warning

Hello,

I just notice this error in the Apache log:
[Sun Jan 04 20:37:08.669200 2015] [:error] [pid 13323] [client 192.168.1.18:54824] PHP Warning:  strip_tags() expects parameter 1 to be string, array given in /var/www/localhost/htdocs/include/functions_metadata.inc.php on line 198, referer: http://www.vanwageningen.net/index/cate … d/start-32

Line 198 is about the$result[$key];
      // in case the origin of the photo is unsecure (user upload), we remove
      // HTML tags to avoid XSS (malicious execution of javascript)
      $result[$key] = strip_tags($value);

Not sure what to do :-(

It seems only a problem with my latest upload, which different from other uploads as it contains coordinates in the EXIF. The new PHP version is from 4 January (see below), but problem was also on 2 January (before upgrade to latest PHP version).

Any advise would be welcome.

Thanks,
Matthijs

Piwigo version: 2.7.2
PHP: 5.5.12-2ubuntu4.1 [2015-01-04 21:06:13]
MySQL: 5.5.40-0ubuntu1-log [2015-01-04 21:06:13]

Offline

 

#2 2015-01-05 12:13:00

matthys
Member
2014-04-02
188

Re: (Piwigo 2.7.2) Apache error with PHP Warning

As I kept an eye on the error log, I noticed another one;
[Mon Jan 05 11:39:10.743218 2015] [:error] [pid 25294] [client 192.168.1.18:50001] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'image_ext_imagick' does not have a method 'get_resize_result' in /var/www/localhost/htdocs/admin/include/image.class.php on line 93, referer: xxx/admin.php?page=plugin-header_manager-add

But this one could be related to Header Manager plugin as I did upload a new banner.

The ImageMagick installed:
Graphics Library: External ImageMagick 6.7.7-10

Thought the first problem is solved due using " in the meta description line (generated from $CONTENT_DESCRIPTION?);
<meta name="description" content="Aviation / 2015 Amsterdam Airport Schiphol (Holland) - I live very close to "Luchthaven Schiphol" or Amsterdam Airport Schiphol (Holland), so I love to visit it whenever I can. This is an annual collection of 2015.">

Last edited by matthys (2015-01-05 12:24:25)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact