Plugin could not be activated because it triggered a fatal error.

Comments

1 comment

  • Avatar
    Raya Straus

    Hi Huanghau,

    could you make sure that both the WP site and the environment were upgraded to php7 and not just one of them?

    In any case, you could work around that by doing the following:

    The line:

    $full_path = wp_upload_dir()['basedir'].DIRECTORY_SEPARATOR.$md['file'];

    should be changed to:

    $wp_upload_dir = wp_upload_dir();
    $full_path = $wp_upload_dir['basedir'] . DIRECTORY_SEPARATOR . $md['file'];

     

    0
    Comment actions Permalink

Please sign in to leave a comment.