• Resolved gusswib

    (@gusswib)


    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

    (@navzme)

    Hi gusswib
    Have you tried disabling other plugins except “Custom Advanced Field” and “ACF Photo Gallery Field”?

    Thread Starter gusswib

    (@gusswib)

    yes i did, but still not work. is the problem with the php version?

    Thank you for advice

    Thread Starter gusswib

    (@gusswib)

    i installed the plugin in localhost , its work. but try to install in my website not work.

    thank you

    Thread Starter gusswib

    (@gusswib)

    Thank you for response. I make modify it , and its work for me in my server

    Thank you

    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.

    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

    (@navzme)

    Hi @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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @navzme, Please be aware that not even plugin authors are allowed to ask for FTP or login access: https://make.www.ads-software.com/support/handbook/forum-welcome/#the-bad-stuff

    Plugin Author Navneil Naicker

    (@navzme)

    @anevins okay thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot install plugin’ is closed to new replies.