Unable to activate
-
I am unable to activate this plugin. I get the following error
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected ‘}’ in
[install_dir]/wp-content/plugins/ram108-fbalbum/includes/functions.php on line 39Any help would be greatly appreciated.
-
Hi! This is very strange error. Try to delete plugin and install new updated version 0.4.7 from WordPress.
๐ I installed the new version, but it is still giving the same error. If I comment out the code in the function concerning the error, the plugin activates, but doesn’t work as it won’t show any images just empty boxes. Do I have to install some jquery thing in WordPress to get it to work? I am new to WordPress as I usually use Drupal. Thanks again for any help.
I don’t have enough information to understand what error you have.
Try to remove the function in the code and replace with this:
public function _activate_ram108_fblink(){}I think I have worked some of my issues out. After removing the code from the above function, I was able to activate the plugin. Then when it ran, it would not display the images – only placeholders. This is because your code is using shortcut syntax for the echo command as <?=[variable]>?. I obviously do not have short_open_tag enabled on my server. I changed the relevant code to <?php echo [variable] ?> and it works fine now.
However, I am still unsure what the problem is is the code within _activate_ram108_fblink to prevent me to activate the plugin with this there. I will keep playing around and if I find a solution will let you know.
Thanks again for your prompt help and your useful plugin.
Cheers,
Renae.
This function is not so important, but plugin have many other important functions using short_open_tag (settings page & other).
You have to replace all
<?=to<?php echoI’ll fix this issue in next release.
Renae, thanks for the issue. Fixed with 0.4.8 update.
Brilliant. Thanks for that. Both my issues were fixed with this update. Great work!
I get the same error with version 0.4.8.1.
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected ‘}’ in E:\HostingSpaces\Voermans\rv-weert.nl\wwwroot\wp-content\plugins\ram108-fbalbum\includes\functions.php on line 39In last case the problem was with short_open_tag switched off in php.ini configuration. Short open tag was striped in version 0.4.8
I can’t tell you what is your problem. But try to replace all function on line 39 with this code:
public function _activate_ram108_fblink(){ }This will probably help also:
https://www.google.com/search?q=how+to+enable+short_open_tagThe 0.2.1 version works great for me, where can i download him? I tried to to the things, but nothing works.
Yes, try to download from here:
http://ww.wp.xz.cn/plugins/ram108-fbalbum/developers/paulvoermans – I just had this problem and found
<? endif; ?>
at line 37 in functions.phpchanged it to
<?php endif; ?>and plugin has activated ๐
Thank you, FreestyleMD. The plugin is now activated but i get the message:
The plugin generated 3 characters of unexpected output during activation. If you notice โheaders already sentโ messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
paulvoermans – I just had this problem and found
<? endif; ?>
at line 37 in functions.phpO, yes! Good catch! :)))) Will be fixed in next release.
paulvoermans, if you still have this problem, delete the plugin and download it again from WordPress. I fixed version 0.4.9 without new release.
The topic ‘Unable to activate’ is closed to new replies.