• I realize the latest version of WP is not yet supported but I figured I’d post this in case it’s unrelated. When I try to activate the plugin I get the following error:

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

    Parse error: syntax error, unexpected ‘[‘ in C:\inetpub\wordpress\wp-content\plugins\active-directory-thumbnails\active-directory-thumbnails.php on line 43

    https://wordpress.org/plugins/active-directory-thumbnails/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Omar Mir

    (@mirwindsor-omar)

    Doesn’t seem like a new version error, the line number referenced is:
    mkdir(wp_upload_dir()['basedir'] . '/active-directory-thumbnails', 0755);

    This means It cannot create folders in the wp uploads directory. You need to likely resolve the permissions in your server:
    https://codex.wordpress.org/Changing_File_Permissions

    Answers here are useful too:
    http://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress

    Thread Starter c0mb0master

    (@c0mb0master)

    Thank you for the prompt reply.

    Since my site is internal and I’m just testing, I temporarily changed the permissions to the entire WordPress directory and all sub-folders to Full Access for Everyone (I’m using Windows/IIS) and restarted IIS but the error is still occurring.

    I also created a new temp folder in C:\inetpub\ with full permissions and changed the upload_tmp_dir variable in the php.ini file to point there but that didn’t help.

    The error indicates that there is a syntax issue from an unexpected ‘[‘ which is why I was thinking that maybe the latest version isn’t liking something with the code syntax.

    Any other suggestions as to what I could look for? Thank you

    Plugin Author Omar Mir

    (@mirwindsor-omar)

    Hi c0mb0master, I’ll be trying to look into this sometime this week. Could you tell me the exact version of wordpress and the plugin you are using?

    Plugin Author Omar Mir

    (@mirwindsor-omar)

    I am able to activate and use the plugin without issue on WordPress v 4.2.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to activate plugin’ is closed to new replies.