WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 10.12.2015 13:51:48

florian
Administrator

[Erledigt] Notice when uploading files

If Error_reporting is set to E_ALL, after uploading a file, this message pops up:

Notice: Undefined index: _media_test in /.../admin/media/upload.php on line 103

It seems as if / were replaced by _ (in the example above, "test" is the name of the directory)


Wir Benötigen: Cents, Euros... jetzt spenden!

Offline

#2 13.12.2015 00:22:38

norhei
Developer

Re: [Erledigt] Notice when uploading files

Where , in the media manager ?

Offline

#3 13.12.2015 01:14:48

marmot
Mitglied

Re: [Erledigt] Notice when uploading files

Not sure why this is no issue on github ? wink

Problem is in mediacenter, because the mediasettings only exist, when at least one time the mediaoptions are stored. So storing the options will end up this notice until an new folder is created.
One idea for solving this would be to check if mediasettings for a folder do exist:
upload.php line 102

[== PHP ==]
if(file_exists($relative.$filename) && isset($pathsettings[$resizepath])) {

Offline

#4 14.12.2015 09:43:48

florian
Administrator

Re: [Erledigt] Notice when uploading files

Thanks for fixing that issue


Wir Benötigen: Cents, Euros... jetzt spenden!

Offline

#5 14.12.2015 14:03:44

norhei
Developer

Re: [Erledigt] Notice when uploading files

Thx for instant solution !

Offline

Fußzeile des Forums

up