Plugin could not be activated because it triggered a fatal error.
This happen when i'm tried update the plugin in wordpress.
and this is the line 624 in cloudinary.php
$full_path = wp_upload_dir()['basedir'] . DIRECTORY_SEPARATOR . $md['file'];
thx
-
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'];
Please sign in to leave a comment.
Comments
1 comment