Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
The addon could not be enabled because it generated a fatal error

Vanilla Version: 2.1.1
Server: Nginx, PHP 5.3, Ubuntu Linux 12.04.3, MySQL
Plugins active: Bulk Edit, Bump, Button Bar, Conversations Clear Button, Custom Homepage, Discussion Polls, Emotify, Flagging, Ignore, ImageUpload, Mobile Default Route, OEmbed, OpenGraph, Refresh Counts, Resized Image Lightbox, Signatures, Split / Merge, Sitemaps, Utility Links, Vanilla Statistics
Attempt to activate plugin, and get the error: "The addon could not be enabled because it generated a fatal error". There is no error given in warning box which appears.
Registration is set to Approval, with email confirmation. Changing these makes no difference.
0
Comments
Ok, thanks for your support, we will fix is asap
@TBMYB Don't forget to upgrade to 2.1.3.
@Linc
Sure, we have a pool of Vanilla installations.
By the way, how to get "Vanilla Approved?" it is not clear to me how the approval process goes.
Can you please show me some documentation or let me know how it works?
I was suggesting that the discussion starter upgrade to the latest patch, not commenting on your setup.
There's no formal "Vanilla Approved" process currently. It's a bit capricious.
Thanks @keypic
Also thanks @Linc - I intend to, noticed the new version today while browsing the add-ons.
There is a way to push "Vanilla Approved"?
And it is really needed?
There is a better thread to speak about it?
Just to add a note - updated the forum package to 2.1.3, still the same error with the plugin.
There is no way to know the error without enable debug mode...
Please can you enable debug mode and reply the error?
Many thanks for you report
After trying to activate, this is the code in debug at the bottom of the screen.
@TBMYB
No php errors are displayed?
try this one if you get a fatal error...
put this in your conf/config.php
$Configuration['Debug'] = TRUE;
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine this is with the line added and debugger turned on in plugins. Clicked "Enable", then copied from bottom of page.
The following is from my nginx error log, which occurs after I attempt to enable plugin:
2014/09/13 18:30:40 [error] 1243#0: *48392 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '[' in /usr/share/nginx/www/plugins/Keypic/default.php on line 141" while reading response header from upstream, client: XX.XX.XX.XX, server: XX.XX.XX.XX, request: "GET /dashboard/settings/testaddon/Plugin/Keypic/OZFYUCO6RLSC?DeliveryType=VIEW HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.domain.com", referrer: "http://www.domain.com/settings/plugins/all"
plugins/Keypic/default.php on line 141"
this looks odd and is where the syntax error is.
$Sender->Form->GetFormValue('FormID'))["status"]
I haven't tried to enable the plugin or test - retrieval of "status" from the form needs to be fixed.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It does; none of the other plugin settings go via that route. I've looked through the plugin files and there's no mention of testaddon. I'll check it isn't a problem in the database - also ran a database structure update but that didn't change anything.
line 141:
if (strcmp(Keypic::checkFormID($Sender->Form->GetFormValue('FormID'))["status"], "response") == 0)
@keypic You are accessing an array returned by a function call directly. That is only possible as of php 5.4
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
@Bleistivt - so an update to PHP should help? I can do that tomorrow.
yes. upgrade should work to avoid that error. @Bleistivt hit the nail on the head finding php incompatibility.
http://php.net/manual/en/migration54.new-features.php
but the plugin should be changed to work with 5.3 for the wider audience and vanilla does not require 5.4, although some of the staff plugins do require 5.4
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Excellent. Double checked PHP version, it's 5.3.10. I'll upgrade the server tomorrow when I get a chance and let you know how it worked. Thanks for all your help @Bleistivt, @peregrine & @keypic
@TBMYB
you could also replace line 141 with this
haven't tested it, might work. gets rid of dereferencing array from function call.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Ok guys
We have updated and tested the packages with PHP 5.3, in fact it was in my check list, but my dog ate it
We have also updated the API to version 2.1
So Keypic plugin version 1.1 is released.
Thanks to all for the support!