contao / manager-plugin

Contao Manager Plugin
GNU Lesser General Public License v3.0
4 stars 9 forks source link

File .ini cannot be decoded #21

Closed DVeris closed 5 years ago

DVeris commented 5 years ago

https://github.com/contao/manager-plugin/blob/841a378dce34a72ed5eb1056b784bca8e7f09abc/src/Bundle/Parser/IniParser.php#L91 $ini = parse_ini_string(file_get_contents($file));

more universal?

DVeris commented 5 years ago

when i install package:

In IniParser.php line 94: File /.../system/modules/haste/config/autoload.ini cannot be decoded

when i change on: $ini = parse_ini_string(file_get_contents($file));

no errors

DVeris commented 5 years ago

parse_ini_file not works for me

DVeris commented 5 years ago

sorry...

disable_functions exec,passthru,shell_exec,system,popen,curl_multi_exec,parse_ini_file,show_source

fritzmg commented 5 years ago

@aschempp should the Contao Manager may be check, if this function has been disabled?

aschempp commented 5 years ago

possibly. But it is only required for legacy Contao 3 modules. We should probably check if a contao-module package is installed.

aschempp commented 5 years ago

Fixed in 8ae14647fcafc83ab1c5394aeb0f999c4a7f2f14