douxiuyi6529 2017-08-15 13:13
浏览 55

响应式文件管理器内存限制错误

i am having trouble uploading large files with Responsive File Manager, it shows Not enough memory limit error.

i tried changing limits in php.ini

upload limit to 100MB post max size to 100MB script memory limit to 300MB max execution time to 300

i also changed the limit in config.php

'MaxSizeUpload' => 100

But still the same error.

now even few 100 kb is not uploading.

what may be the problem?

Edit 1:

i use the default upload.php from responsive file manager for uploading my files

at line 157 the memory error is checked

default upload.php

my config.php

<?php
if (session_id() == '') session_start();

mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_language('uni');
mb_regex_encoding('UTF-8');
ob_start('mb_output_handler');
date_default_timezone_set('Asia/Kolkata');


define('USE_ACCESS_KEYS', false); // TRUE or FALSE

define('DEBUG_ERROR_MESSAGE', true); // TRUE or FALSE

$config = array(

    'base_url' => ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && ! in_array(strtolower($_SERVER['HTTPS']), array( 'off', 'no' ))) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'],

    'upload_dir' => '/photos/original/',

    'current_path' => '../photos/original/',

    'thumbs_base_path' => '../cache/',

    'ftp_host'         => false,
    'ftp_user'         => "user",
    'ftp_pass'         => "pass",
    'ftp_base_folder'  => "base_folder",
    'ftp_base_url'     => "http://site to ftp root",

    'ftp_thumbs_dir' => '/thumbs/',
    'ftp_ssl' => false,
    'ftp_port' => 21,

    'access_keys' => array(),

    'MaxSizeTotal' => false,

    'MaxSizeUpload' => 100,

    'fileFolderPermission' => 0755,

    'default_language' => "en_EN",

    'icon_theme' => "ico",

    'show_total_size'                       => false,

    'show_folder_size'                      => false,

    'show_sorting_bar'                      => true,

    'show_filter_buttons'                   => true,

    'show_language_selection'               => false,

    'transliteration'                       => false,

    'convert_spaces'                        => false,

    'replace_with'                          => "_",
    'lower_case'                            => false,
    'add_time_to_img'                       => false,

    'lazy_loading_file_number_threshold'    => 0,
    'image_max_width'                         => 0,
    'image_max_height'                        => 0,
    'image_max_mode'                          => 'auto',

    'image_resizing'                          => false,
    'image_resizing_width'                    => 0,
    'image_resizing_height'                   => 0,
    'image_resizing_mode'                     => 'auto', 
    'image_resizing_override'                 => false,

    'image_watermark'                          => false,

    'image_watermark_position'                 => 'br',

    'image_watermark_padding'                 => 0,

    'default_view'                            => 0,

    'ellipsis_title_after_first_row'          => true,

    'delete_files'                            => true,
    'create_folders'                          => false,
    'delete_folders'                          => false,
    'upload_files'                            => true,
    'rename_files'                            => true,
    'rename_folders'                          => false,
    'duplicate_files'                         => false,
    'copy_cut_files'                          => true, // for copy/cut files
    'copy_cut_dirs'                           => false, // for copy/cut directories
    'chmod_files'                             => false, // change file permissions
    'chmod_dirs'                              => false, // change folder permissions
    'preview_text_files'                      => false, // eg.: txt, log etc.
    'edit_text_files'                         => false, // eg.: txt, log etc.
    'create_text_files'                       => false, // only create files with exts. defined in $editable_text_file_exts

    'previewable_text_file_exts'              => array( "bsh", "c","css", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml","xsl" ),
    'previewable_text_file_exts_no_prettify'  => array( 'txt', 'log' ),

    'editable_text_file_exts'                 => array( 'txt', 'log', 'xml', 'html', 'css', 'htm', 'js' ),

    'googledoc_enabled'                       => true,
    'googledoc_file_exts'                     => array( 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx' ),
    'viewerjs_enabled'                        => true,
    'viewerjs_file_exts'                      => array( 'pdf', 'odt', 'odp', 'ods' ),
    'copy_cut_max_size'                       => 100,

    'copy_cut_max_count'                      => 200,

    'ext_img'                                 => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg' ), //Images
    'ext_file'                                => array(), //Files
    'ext_video'                               => array(), //Video
    'ext_music'                               => array(), //Audio
    'ext_misc'                                => array(), //Archives

    'aviary_active'                           => false,
    'aviary_apiKey'                           => "2444282ef4344e3dacdedc7a78f8877d",
    'aviary_language'                         => "en",
    'aviary_theme'                            => "light",
    'aviary_tools'                            => "all",
    'aviary_maxSize'                          => "1400",

    'file_number_limit_js'                    => 500,

    'hidden_folders'                          => array(),

    'hidden_files'                            => array( 'config.php' ),
    'url_upload'                             => false,

    'java_upload'                             => false,
    'JAVAMaxSizeUpload'                       => 200, //Gb

    'fixed_image_creation'                    => false, 
    'fixed_path_from_filemanager'             => array( '../images/thumbs2/', '../test1/' ), 
    'fixed_image_creation_name_to_prepend'    => array( 'thumb_', 'test_' ), 
    'fixed_image_creation_to_append'          => array( '', '' ),
    'fixed_image_creation_width'              => array( 300, 400 ), 
    'fixed_image_creation_height'             => array( 200, '' ),

    'fixed_image_creation_option'             => array( 'auto', 'auto' ), 

    'relative_image_creation'                 => true, 
    'relative_path_from_current_pos'          => array( '../hd', '../fullhd','../thumbs' ), 
    'relative_image_creation_name_to_prepend' => array( '', '' , ''), 
    'relative_image_creation_name_to_append'  => array( '', '',''),
    'relative_image_creation_width'           => array( 1280, 1920 , 200),
    'relative_image_creation_height'          => array( 720, 1080, 200 ),

    'relative_image_creation_option'          => array( 'auto', 'auto', 'auto' ),


    'remember_text_filter'                    => false,

);

return array_merge(
    $config,
    array(
        'MaxSizeUpload' => ((int)(ini_get('post_max_size')) < $config['MaxSizeUpload'])
            ? (int)(ini_get('post_max_size')) : $config['MaxSizeUpload'],
        'ext'=> array_merge(
            $config['ext_img'],
            $config['ext_file'],
            $config['ext_misc'],
            $config['ext_video'],
            $config['ext_music']
        ),

        'aviary_defaults_config' => array(
            'apiKey'     => $config['aviary_apiKey'],
            'language'   => $config['aviary_language'],
            'theme'      => $config['aviary_theme'],
            'tools'      => $config['aviary_tools'],
            'maxSize'    => $config['aviary_maxSize']
        ),
    )
);
?>

error screenshot

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100