PNG file uploads do not show up

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Knubbi
Posts: 22
Joined: 14 May 2017, 14:35

PNG file uploads do not show up

Post by Knubbi »

Pngs are set to be allowed in 2.4.0:

Code: Select all

$g_allowed_files = 'zip,ico,png,gif,jpg,jpeg,mp4,mpg,avi,mov,txt,pxp,pxi,pxa,rtf,doc,xls,csv,rc,xlsx,docx,txt,rtf';
No "$g_disallowed_files" configured.

The file seems to be uploaded (progress bar visible) but no file is visible in "view.php" after uploading them with a ticket submission.

Any clue?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: PNG file uploads do not show up

Post by atrol »

Maybe there are errors or warnings in web server logs that help.

Do you get any errors or warnings when running admin/check/index.php ?
Please use Search before posting and read the Manual
Knubbi
Posts: 22
Joined: 14 May 2017, 14:35

Re: PNG file uploads do not show up

Post by Knubbi »

Indeed, there are warns/errors. Sorry, but those are bohemian villages for me. It would be great if you could tell if they are critical.

Strict Standards: DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /xxx/mantis/admin/check/check_database_inc.php on line 236
PHP

register_argc_argv php.ini directive is disabled
This directive should be disabled to increase performance (it only affects PHP in CLI mode). WARN

display_errors php.ini directive is disabled
For security reasons this directive should be disabled on all production and Internet facing servers. WARN

Database

PHP support for MySQL driver
'mysql' driver is deprecated as of PHP 5.5.0, please use 'mysqli' instead WARN

Can open connection to database dbxxx on host localhost with username dboxxx WARN

DEPRECATED: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

Raised in file /xxx/mantis/library/adodb/drivers/adodb-mysql.inc.php on line 462
MySQL version is within the Extended Support period (GA + 8 years)

Extended support for MySQL 5.5 series ends on 2018-12-03 FAIL

UNHANDLED ERROR TYPE 2048: date_create(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Raised in file /xx/mantis/admin/check/check_database_inc.php on line 258

UNHANDLED ERROR TYPE 2048: date_create(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Raised in file /xx/mantis/admin/check/check_database_inc.php on line 258
Version of MySQL being used is within the Premier Support period (GA + 5 years)
Premier Support for the release of MySQL you are using (5.5.55) ended on 2015-12-03. The release is in its Extended support period, which ends on 2018-12-03. You should upgrade to a newer version of MySQL which is still within its Premier support period to benefit from bug fixes and security patches. FAIL

UNHANDLED ERROR TYPE 2048: date_create(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Raised in file /xxx/mantis/admin/check/check_database_inc.php on line 270

UNHANDLED ERROR TYPE 2048: date_create(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Raised in file /xxx/mantis/admin/check/check_database_inc.php on line 270

Database default collation is UTF-8
Database is using latin1_swedish_ci collation where UTF-8 collation is required. FAIL
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: PNG file uploads do not show up

Post by atrol »

Some of the errors are critical.

How did you install Mantis?
Did you upgrade from older version or is this a fresh install?
Which PHP version do you use?

As a first measure change in config_inc.php
from

Code: Select all

$g_db_type  = 'mysql';
to

Code: Select all

$g_db_type  = 'mysqli';
and add

Code: Select all

$g_default_timezone       = 'Europe/Berlin';
After that, at least some of there errors and warnings should no longer occur.
Please use Search before posting and read the Manual
Knubbi
Posts: 22
Joined: 14 May 2017, 14:35

Re: PNG file uploads do not show up

Post by Knubbi »

Prima, vielen Dank.

Die einzigen Fehler, die übrigbleiben, kann man wohl ignorieren:

mail

webmaster_email configuration option has a valid email address specified
You need to specify a valid email address for the webmaster_email configuration option. FAIL

from_email configuration option has a valid email address specified
You need to specify a valid email address for the from_email configuration option. FAIL

return_path_email configuration option has a valid email address specified
You need to specify a valid email address for the return_path_email configuration option. FAIL
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: PNG file uploads do not show up

Post by atrol »

Knubbi wrote:Die einzigen Fehler, die übrigbleiben, kann man wohl ignorieren
I would change at least $g_return_path_email, as there are email servers and clients which filter out emails having set ''admin@example.com' as return-path.

Replied in English, as this is the English forum.
It would have been easier for both of us if you had posted in German forum ;-)
Please use Search before posting and read the Manual
Knubbi
Posts: 22
Joined: 14 May 2017, 14:35

Re: PNG file uploads do not show up

Post by Knubbi »

Well, any topic may help the majority of other English users. ;-)

Dankeschön, again.
Post Reply