trippo / ResponsiveFilemanager

Completely Responsive Filemanager with integration for tinyMCE,CKEditor and CLEditor editor
http://responsivefilemanager.com
Other
808 stars 368 forks source link

Fatal error: Uncaught Error: Unsupported operand types in dir with config.php #396

Open cfconsultancy opened 6 years ago

cfconsultancy commented 6 years ago

If I click on a dir with a config.php in it

Fatal error: Uncaught Error: Unsupported operand types in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\dialog.php:142 Stack trace: #0 {main} thrown in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\dialog.php on line 142

trippo commented 6 years ago

You must change config.php and return an array like the main config.php

I fixed this on last version

Il giorno 11 ott 2017, alle ore 14:27, cfconsultancy notifications@github.com ha scritto:

If I click on a dir with a config.php in it

Fatal error: Uncaught Error: Unsupported operand types in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\dialog.php:142 Stack trace: #0 {main} thrown in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\dialog.php on line 142

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trippo/ResponsiveFilemanager/issues/396, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeWEcuCPyO7IjK2k40BSn3LTeTater4ks5srLRMgaJpZM4P1Y4D.

cfconsultancy commented 6 years ago

I changed it to this

<?php
//if($_SESSION["verify"] != "RESPONSIVEfilemanager") die('forbidden');
//Automatic resizing //
// If you set $image_resizing to true the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension
// If you set width or height to 0 the script automatically calculates the other dimension
// Is possible that if you upload very big images the script not work to overcome this increase the php configuration of memory and time limit
$config = array(

    'image_resizing'                         => false,
    'image_max_width'                        => 0,
    'image_max_height'                       => 0,
    //'folder_message'                         => 'Hier images die niet worden verkleint !'

);
?>

Still the same problem

trippo commented 6 years ago

you must set

return array( 'image_resizing' => false, 'image_max_width' => 0, 'image_max_height' => 0, //'folder_message' => 'Hier images die niet worden verkleint !' );

Il giorno 11 ott 2017, alle ore 14:41, cfconsultancy notifications@github.com ha scritto:

I changed it to this

<?php //if($_SESSION["verify"] != "RESPONSIVEfilemanager") die('forbidden'); //Automatic resizing // // If you set $image_resizing to true the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension // If you set width or height to 0 the script automatically calculates the other dimension // Is possible that if you upload very big images the script not work to overcome this increase the php configuration of memory and time limit $config = array(

'image_resizing' => false, 'image_max_width' => 0, 'image_max_height' => 0, //'folder_message' => 'Hier images die niet worden verkleint !'

); ?> Still the same problem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/trippo/ResponsiveFilemanager/issues/396#issuecomment-335796579, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeWEXwo3JF3d6kq6hXPOgJWCOkA3UJmks5srLeOgaJpZM4P1Y4D.

cfconsultancy commented 5 years ago

Everything works except 'folder_message'

It is set in dialog.php <?php if(isset($folder_message)){ ?> but won't show up