Title: Cannot install plugin
Last modified: February 3, 2017

---

# Cannot install plugin

 *  Resolved [gusswib](https://wordpress.org/support/users/gusswib/)
 * (@gusswib)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/)
 * I try to install the plugin and activate it but it does not work
    the message
   is plugin could not be activated because it triggered a fatal error. Parse error:
   syntax error, unexpected ‘[‘ in /…/…/wp-content/plugins/navz-photo-gallery/navz-
   photo-gallery.php on line 111
 * please your advice
 * Thank you

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Navneil Naicker](https://wordpress.org/support/users/navzme/)
 * (@navzme)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8732953)
 * Hi gusswib
    Have you tried disabling other plugins except “Custom Advanced Field”
   and “ACF Photo Gallery Field”?
    -  This reply was modified 9 years, 4 months ago by [Navneil Naicker](https://wordpress.org/support/users/navzme/).
 *  Thread Starter [gusswib](https://wordpress.org/support/users/gusswib/)
 * (@gusswib)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8732969)
 * yes i did, but still not work. is the problem with the php version?
 * Thank you for advice
 *  Thread Starter [gusswib](https://wordpress.org/support/users/gusswib/)
 * (@gusswib)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8733022)
 * i installed the plugin in localhost , its work. but try to install in my website
   not work.
 * thank you
 *  Thread Starter [gusswib](https://wordpress.org/support/users/gusswib/)
 * (@gusswib)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8733400)
 * Thank you for response. I make modify it , and its work for me in my server
 * Thank you
 *  [seunghaekim](https://wordpress.org/support/users/seunghaekim/)
 * (@seunghaekim)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8737284)
 * I got same error. Localhost is works. but my hosting server is doesn’t works.
   
   php version of my localhost is 5.5.38, and webserver is 5.4. same wordpress version
   4.7.
 * How can I solve this problem? Your plug-in is very usefull so it is important
   part of my theme. Plaease help.
 *  [seunghaekim](https://wordpress.org/support/users/seunghaekim/)
 * (@seunghaekim)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8741938)
 * I solved this error. I changed the way of declare the arry on line no.111 of 
   navz-photo-gallery.php,
 * from
 *     ```
       $array[] = [
       	'title' => $title,
       	'caption' => $content,
       	'full_image_url' => $full_url,
       	'thumbnail_image_url' => $thumbnail_url,
       	'url' => $url,
       	'target' => $target
       ];
       ```
   
 * to this way.
 *     ```
       $array = array(
       	'title' => $title,
       	'caption' => $content,
       	'full_image_url' => $full_url,
       	'thumbnail_image_url' => $thumbnail_url,
       	'url' => $url,
       	'target' => $target
       );
       ```
   
 * It works well. your plugin is very useful. thank you!
 *  Plugin Author [Navneil Naicker](https://wordpress.org/support/users/navzme/)
 * (@navzme)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8741956)
 * Hi [@seunghaekim](https://wordpress.org/support/users/seunghaekim/)
    I would 
   like apologies for not responding to this support topic because I didn’t receive
   any notification from WordPress. I would also like to thank you for providing
   the solution for this issue. I will change the plugin code in coming days.
 * Cheers
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8951553)
 * [@navzme](https://wordpress.org/support/users/navzme/), Please be aware that 
   not even plugin authors are allowed to ask for FTP or login access: [https://make.wordpress.org/support/handbook/forum-welcome/#the-bad-stuff](https://make.wordpress.org/support/handbook/forum-welcome/#the-bad-stuff)
 *  Plugin Author [Navneil Naicker](https://wordpress.org/support/users/navzme/)
 * (@navzme)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8951562)
 * [@anevins](https://wordpress.org/support/users/anevins/) okay thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Cannot install plugin’ is closed to new replies.

 * ![](https://ps.w.org/navz-photo-gallery/assets/icon-128x128.png?rev=2607741)
 * [ACF Photo Gallery Field](https://wordpress.org/plugins/navz-photo-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/navz-photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/navz-photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/navz-photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/navz-photo-gallery/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * 10 replies
 * 4 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-install-plugin-11/#post-8951553)
 * Status: resolved