• Resolved anugrahdimas

    (@anugrahdimas)


    Hi there,

    Thank you for your plugin.

    I have a problem with this plugin when I migrate from local to online, an error appears

    Warning: file() has been disabled for security reasons in /home/mydomain/public_html/demo/wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/JS.php on line 140

    please help to solve this problem.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, it seems that your online web server has some different security settings that your local one. It restricts PHP scripts to use file() function (and perhaps many others).

    I do not understand why this function is restricted, it is the first time I see it.

    As a workaround, you can configure the plugin not to use code minification, by adding the following lines at the end of functions.php file of your theme:

    if ( isset($GLOBALS["WFU_GLOBALS"]["WFU_MINIFY_INLINE_CSS"]) ) $GLOBALS["WFU_GLOBALS"]["WFU_MINIFY_INLINE_CSS"][3] = "false";
    if ( isset($GLOBALS["WFU_GLOBALS"]["WFU_MINIFY_INLINE_JS"]) ) $GLOBALS["WFU_GLOBALS"]["WFU_MINIFY_INLINE_JS"][3] = "false";

    Regards

    Nickolas

    Thread Starter anugrahdimas

    (@anugrahdimas)

    Hi,

    thank you for the response you gave, this really helped my work. I will try first.

    Regards

    Thread Starter anugrahdimas

    (@anugrahdimas)

    Hi,

    Thank you it’s work.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘file() has been disabled for security reasons’ is closed to new replies.