Loading...
 
Skip to main content

10.x & PHP 5.4.x: Icon of the pdf file uploaded is not shown (Strict Standards: Non-static methods should not be called statically in /path/tiki-download_file.php)

Status
Open
Subject
10.x & PHP 5.4.x: Icon of the pdf file uploaded is not shown (Strict Standards: Non-static methods should not be called statically in /path/tiki-download_file.php)
Version
10.x
Category
  • Error
Feature
File Gallery (elFinder or standard UI)
Submitted by
Xavier de Pedro
Lastmod by
Marc Laporte
Rating
(0)
Description

From http://irc.tiki.org/irclogger_log/tikiwiki?date=2013-05-08,Wed&sel=42#l38

  • (13:59:23) xavi: in case it's related, we have an issue to see the icon of the pdf file uploaded (icon is not shown)
  • (13:59:50) xavi: and when attempting to see the img source, in a url like dl2&thumbnail=y&x=16 (sef is on), then we see this other messages on a white page:
  • (14:01:37) xavi: Strict Standards: Non-static method Image::is_supported() should not be called statically in /path/tiki-download_file.php on line 253 (& 257)
  • (14:01:37) xavi: Strict Standards: Non-static method ImageAbstract::icon() should not be called statically in /path/tiki-download_file.php on line 278
  • (14:01:37) xavi: Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method Image::get_icon_default_format() should not be called statically in/path/lib/images/abstract.php on line 183
  • (14:01:37) xavi: Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method Image::is_supported() should not be called statically in /path/lib/images/abstract.php on line 189


That seems to happen only when php is 5.4.x. Downgrading php to 5.3.x seems to be a valid workaround (provided that all caches are cleared, etc)

Importance
6
Easy to solve?
5
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4511
Created
Wednesday 08 May, 2013 13:12:17 UTC
by Xavier de Pedro
LastModif
Wednesday 20 November, 2013 14:45:19 UTC


Show PHP error messages