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
- 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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