HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

The addon could not be enabled because it generated a fatal error

This discussion is related to the Keypic addon.

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.

«1

Comments

  • Ok, thanks for your support, we will fix is asap

    TBMYB
  • LincLinc Detroit Admin

    @TBMYB Don't forget to upgrade to 2.1.3.

    TBMYB
  • @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?

  • LincLinc Detroit Admin

    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.

  • @Linc said:
    There's no formal "Vanilla Approved" process currently. It's a bit capricious.

    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.

  • @TBMYB said:
    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.

    7 queries in 0.016553401947021s
    Gdn_Model->GetWhere(array('UserID' => '13')) slave 0.003974s
    
    select *
    from GDN_User `User`
    where UserID = '13';
    
    PermissionModel->PermissionColumns() slave 0.001028s
    
    select *
    from GDN_Permission `Permission`
    limit 1;
    
    PermissionModel->CachePermissions('13') slave 0.001847s
    
    select MAX(p.`PermissionID`) as `PermissionID`, MAX(p.`Garden.Email.View`) as `Garden.Email.View`, MAX(p.`Garden.Settings.Manage`) as `Garden.Settings.Manage`, MAX(p.`Garden.Settings.View`) as `Garden.Settings.View`, MAX(p.`Garden.Messages.Manage`) as `Garden.Messages.Manage`, MAX(p.`Garden.SignIn.Allow`) as `Garden.SignIn.Allow`, MAX(p.`Garden.Users.Add`) as `Garden.Users.Add`, MAX(p.`Garden.Users.Edit`) as `Garden.Users.Edit`, MAX(p.`Garden.Users.Delete`) as `Garden.Users.Delete`, MAX(p.`Garden.Users.Approve`) as `Garden.Users.Approve`, MAX(p.`Garden.Activity.Delete`) as `Garden.Activity.Delete`, MAX(p.`Garden.Activity.View`) as `Garden.Activity.View`, MAX(p.`Garden.Profiles.View`) as `Garden.Profiles.View`, MAX(p.`Garden.Profiles.Edit`) as `Garden.Profiles.Edit`, MAX(p.`Garden.Curation.Manage`) as `Garden.Curation.Manage`, MAX(p.`Garden.Moderation.Manage`) as `Garden.Moderation.Manage`, MAX(p.`Garden.PersonalInfo.View`) as `Garden.PersonalInfo.View`, MAX(p.`Garden.AdvancedNotifications.Allow`) as `Garden.AdvancedNotifications.Allow`, MAX(p.`Conversations.Moderation.Manage`) as `Conversations.Moderation.Manage`, MAX(p.`Conversations.Conversations.Add`) as `Conversations.Conversations.Add`, MAX(p.`Vanilla.Approval.Require`) as `Vanilla.Approval.Require`, MAX(p.`Vanilla.Comments.Me`) as `Vanilla.Comments.Me`, MAX(p.`Vanilla.Discussions.View`) as `Vanilla.Discussions.View`, MAX(p.`Vanilla.Discussions.Add`) as `Vanilla.Discussions.Add`, MAX(p.`Vanilla.Discussions.Edit`) as `Vanilla.Discussions.Edit`, MAX(p.`Vanilla.Discussions.Announce`) as `Vanilla.Discussions.Announce`, MAX(p.`Vanilla.Discussions.Sink`) as `Vanilla.Discussions.Sink`, MAX(p.`Vanilla.Discussions.Close`) as `Vanilla.Discussions.Close`, MAX(p.`Vanilla.Discussions.Delete`) as `Vanilla.Discussions.Delete`, MAX(p.`Vanilla.Comments.Add`) as `Vanilla.Comments.Add`, MAX(p.`Vanilla.Comments.Edit`) as `Vanilla.Comments.Edit`, MAX(p.`Vanilla.Comments.Delete`) as `Vanilla.Comments.Delete`, MAX(p.`Plugins.Tagging.Add`) as `Plugins.Tagging.Add`, MAX(p.`Plugins.Cleanser.Manage`) as `Plugins.Cleanser.Manage`, MAX(p.`Plugins.HotThreads.Manage`) as `Plugins.HotThreads.Manage`, MAX(p.`Plugins.RegistrationRestrictLogger.Manage`) as `Plugins.RegistrationRestrictLogger.Manage`, MAX(p.`Plugins.MyAttachments.AllowView`) as `Plugins.MyAttachments.AllowView`, MAX(p.`Plugins.ProfileVisitors.View`) as `Plugins.ProfileVisitors.View`, MAX(p.`Plugins.DiscussionPolls.Add`) as `Plugins.DiscussionPolls.Add`, MAX(p.`Plugins.DiscussionPolls.View`) as `Plugins.DiscussionPolls.View`, MAX(p.`Plugins.DiscussionPolls.Vote`) as `Plugins.DiscussionPolls.Vote`, MAX(p.`Plugins.DiscussionPolls.Manage`) as `Plugins.DiscussionPolls.Manage`, MAX(p.`Yaga.Reactions.Add`) as `Yaga.Reactions.Add`, MAX(p.`Yaga.Reactions.Manage`) as `Yaga.Reactions.Manage`, MAX(p.`Yaga.Reactions.View`) as `Yaga.Reactions.View`, MAX(p.`Yaga.Reactions.Edit`) as `Yaga.Reactions.Edit`, MAX(p.`Yaga.Badges.Add`) as `Yaga.Badges.Add`, MAX(p.`Yaga.Badges.Manage`) as `Yaga.Badges.Manage`, MAX(p.`Yaga.Badges.View`) as `Yaga.Badges.View`, MAX(p.`Yaga.Ranks.Add`) as `Yaga.Ranks.Add`, MAX(p.`Yaga.Ranks.Manage`) as `Yaga.Ranks.Manage`, MAX(p.`VanillaCMS.Pages.Manage`) as `VanillaCMS.Pages.Manage`, MAX(p.`Plugins.AllowRawFormat.Allow`) as `Plugins.AllowRawFormat.Allow`, MAX(p.`Plugins.Flagging.Notify`) as `Plugins.Flagging.Notify`, MAX(p.`Plugins.OnlineNow.ViewHidden`) as `Plugins.OnlineNow.ViewHidden`, MAX(p.`Plugins.OnlineNow.Manage`) as `Plugins.OnlineNow.Manage`, MAX(p.`Plugins.Signatures.Edit`) as `Plugins.Signatures.Edit`, MAX(p.`Plugins.OpenGraph.Manage`) as `Plugins.OpenGraph.Manage`, MAX(p.`Plugins.Pockets.Manage`) as `Plugins.Pockets.Manage`, MAX(p.`Plugins.Debugger.View`) as `Plugins.Debugger.View`, MAX(p.`Plugins.Debugger.Manage`) as `Plugins.Debugger.Manage`, p.JunctionTable as `JunctionTable`, p.JunctionColumn as `JunctionColumn`, p.JunctionID as `JunctionID`
    from GDN_Permission p
    join GDN_UserRole ur on p.RoleID = ur.RoleID
    where ur.UserID = '13'
    group by p.JunctionTable, p.JunctionColumn, p.JunctionID;
    
    UserModel->DefinePermissions('13') master 0.003183s
    
    update GDN_User `User`
    set Permissions = 'a:16:{i:0;s:27:\"Plugins.DiscussionPolls.Add\";i:1;s:28:\"Plugins.DiscussionPolls.View\";i:2;s:28:\"Plugins.DiscussionPolls.Vote\";i:3;s:30:\"Plugins.DiscussionPolls.Manage\";i:4;s:28:\"Plugins.AllowRawFormat.Allow\";i:5;s:23:\"Plugins.Signatures.Edit\";s:24:\"Vanilla.Discussions.View\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:23:\"Vanilla.Discussions.Add\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:24:\"Vanilla.Discussions.Edit\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:28:\"Vanilla.Discussions.Announce\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:24:\"Vanilla.Discussions.Sink\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:25:\"Vanilla.Discussions.Close\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:26:\"Vanilla.Discussions.Delete\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:20:\"Vanilla.Comments.Add\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:21:\"Vanilla.Comments.Edit\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:23:\"Vanilla.Comments.Delete\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}}'
    where UserID = '13';
    
    BadgeAwardModel->GetUnobtained('13') master 0.002581s
    
    select b.BadgeID, b.Enabled, b.RuleClass, b.RuleCriteria, ba.UserID from GDN_Badge as b left join GDN_BadgeAward as ba ON b.BadgeID = ba.BadgeID and ba.UserID = '13' ;
    
    BadgeAwardModel->GetUnobtained('13') master 0.002476s
    
    select b.BadgeID, b.Enabled, b.RuleClass, b.RuleCriteria, ba.UserID from GDN_Badge as b left join GDN_BadgeAward as ba ON b.BadgeID = ba.BadgeID and ba.UserID = '13' ;
    
    FlaggingPlugin->Base_GetAppSettingsMenuItems_Handler(Object:SettingsController, array(5), 'base_getappsettingsmenuitems_handler') slave 0.001464s
    
    select DISTINCT(fl.ForeignID) as `NumFlaggedItems`
    from GDN_Flag fl
    group by ForeignURL;
    
    Page completed in 1.2235s
    Controller Data
    
    Title: 'Plugins'
    CssClass: 'Dashboard Settings plugins '
    
  • @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.

  • TBMYBTBMYB New
    edited September 2014

    @peregrine this is with the line added and debugger turned on in plugins. Clicked "Enable", then copied from bottom of page.

    7 queries in 0.021712064743042s
    Gdn_Model->GetWhere(array('UserID' => '13')) slave 0.013182s
    
    select *
    from GDN_User `User`
    where UserID = '13';
    
    PermissionModel->PermissionColumns() slave 0.000812s
    
    select *
    from GDN_Permission `Permission`
    limit 1;
    
    PermissionModel->CachePermissions('13') slave 0.001192s
    
    select MAX(p.`PermissionID`) as `PermissionID`, MAX(p.`Garden.Email.View`) as `Garden.Email.View`, MAX(p.`Garden.Settings.Manage`) as `Garden.Settings.Manage`, MAX(p.`Garden.Settings.View`) as `Garden.Settings.View`, MAX(p.`Garden.Messages.Manage`) as `Garden.Messages.Manage`, MAX(p.`Garden.SignIn.Allow`) as `Garden.SignIn.Allow`, MAX(p.`Garden.Users.Add`) as `Garden.Users.Add`, MAX(p.`Garden.Users.Edit`) as `Garden.Users.Edit`, MAX(p.`Garden.Users.Delete`) as `Garden.Users.Delete`, MAX(p.`Garden.Users.Approve`) as `Garden.Users.Approve`, MAX(p.`Garden.Activity.Delete`) as `Garden.Activity.Delete`, MAX(p.`Garden.Activity.View`) as `Garden.Activity.View`, MAX(p.`Garden.Profiles.View`) as `Garden.Profiles.View`, MAX(p.`Garden.Profiles.Edit`) as `Garden.Profiles.Edit`, MAX(p.`Garden.Curation.Manage`) as `Garden.Curation.Manage`, MAX(p.`Garden.Moderation.Manage`) as `Garden.Moderation.Manage`, MAX(p.`Garden.PersonalInfo.View`) as `Garden.PersonalInfo.View`, MAX(p.`Garden.AdvancedNotifications.Allow`) as `Garden.AdvancedNotifications.Allow`, MAX(p.`Conversations.Moderation.Manage`) as `Conversations.Moderation.Manage`, MAX(p.`Conversations.Conversations.Add`) as `Conversations.Conversations.Add`, MAX(p.`Vanilla.Approval.Require`) as `Vanilla.Approval.Require`, MAX(p.`Vanilla.Comments.Me`) as `Vanilla.Comments.Me`, MAX(p.`Vanilla.Discussions.View`) as `Vanilla.Discussions.View`, MAX(p.`Vanilla.Discussions.Add`) as `Vanilla.Discussions.Add`, MAX(p.`Vanilla.Discussions.Edit`) as `Vanilla.Discussions.Edit`, MAX(p.`Vanilla.Discussions.Announce`) as `Vanilla.Discussions.Announce`, MAX(p.`Vanilla.Discussions.Sink`) as `Vanilla.Discussions.Sink`, MAX(p.`Vanilla.Discussions.Close`) as `Vanilla.Discussions.Close`, MAX(p.`Vanilla.Discussions.Delete`) as `Vanilla.Discussions.Delete`, MAX(p.`Vanilla.Comments.Add`) as `Vanilla.Comments.Add`, MAX(p.`Vanilla.Comments.Edit`) as `Vanilla.Comments.Edit`, MAX(p.`Vanilla.Comments.Delete`) as `Vanilla.Comments.Delete`, MAX(p.`Plugins.Tagging.Add`) as `Plugins.Tagging.Add`, MAX(p.`Plugins.Cleanser.Manage`) as `Plugins.Cleanser.Manage`, MAX(p.`Plugins.HotThreads.Manage`) as `Plugins.HotThreads.Manage`, MAX(p.`Plugins.RegistrationRestrictLogger.Manage`) as `Plugins.RegistrationRestrictLogger.Manage`, MAX(p.`Plugins.MyAttachments.AllowView`) as `Plugins.MyAttachments.AllowView`, MAX(p.`Plugins.ProfileVisitors.View`) as `Plugins.ProfileVisitors.View`, MAX(p.`Plugins.DiscussionPolls.Add`) as `Plugins.DiscussionPolls.Add`, MAX(p.`Plugins.DiscussionPolls.View`) as `Plugins.DiscussionPolls.View`, MAX(p.`Plugins.DiscussionPolls.Vote`) as `Plugins.DiscussionPolls.Vote`, MAX(p.`Plugins.DiscussionPolls.Manage`) as `Plugins.DiscussionPolls.Manage`, MAX(p.`Yaga.Reactions.Add`) as `Yaga.Reactions.Add`, MAX(p.`Yaga.Reactions.Manage`) as `Yaga.Reactions.Manage`, MAX(p.`Yaga.Reactions.View`) as `Yaga.Reactions.View`, MAX(p.`Yaga.Reactions.Edit`) as `Yaga.Reactions.Edit`, MAX(p.`Yaga.Badges.Add`) as `Yaga.Badges.Add`, MAX(p.`Yaga.Badges.Manage`) as `Yaga.Badges.Manage`, MAX(p.`Yaga.Badges.View`) as `Yaga.Badges.View`, MAX(p.`Yaga.Ranks.Add`) as `Yaga.Ranks.Add`, MAX(p.`Yaga.Ranks.Manage`) as `Yaga.Ranks.Manage`, MAX(p.`VanillaCMS.Pages.Manage`) as `VanillaCMS.Pages.Manage`, MAX(p.`Plugins.AllowRawFormat.Allow`) as `Plugins.AllowRawFormat.Allow`, MAX(p.`Plugins.Flagging.Notify`) as `Plugins.Flagging.Notify`, MAX(p.`Plugins.OnlineNow.ViewHidden`) as `Plugins.OnlineNow.ViewHidden`, MAX(p.`Plugins.OnlineNow.Manage`) as `Plugins.OnlineNow.Manage`, MAX(p.`Plugins.Signatures.Edit`) as `Plugins.Signatures.Edit`, MAX(p.`Plugins.OpenGraph.Manage`) as `Plugins.OpenGraph.Manage`, MAX(p.`Plugins.Pockets.Manage`) as `Plugins.Pockets.Manage`, MAX(p.`Plugins.Debugger.View`) as `Plugins.Debugger.View`, MAX(p.`Plugins.Debugger.Manage`) as `Plugins.Debugger.Manage`, p.JunctionTable as `JunctionTable`, p.JunctionColumn as `JunctionColumn`, p.JunctionID as `JunctionID`
    from GDN_Permission p
    join GDN_UserRole ur on p.RoleID = ur.RoleID
    where ur.UserID = '13'
    group by p.JunctionTable, p.JunctionColumn, p.JunctionID;
    
    UserModel->DefinePermissions('13') master 0.002102s
    
    update GDN_User `User`
    set Permissions = 'a:16:{i:0;s:27:\"Plugins.DiscussionPolls.Add\";i:1;s:28:\"Plugins.DiscussionPolls.View\";i:2;s:28:\"Plugins.DiscussionPolls.Vote\";i:3;s:30:\"Plugins.DiscussionPolls.Manage\";i:4;s:28:\"Plugins.AllowRawFormat.Allow\";i:5;s:23:\"Plugins.Signatures.Edit\";s:24:\"Vanilla.Discussions.View\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:23:\"Vanilla.Discussions.Add\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:24:\"Vanilla.Discussions.Edit\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:28:\"Vanilla.Discussions.Announce\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:24:\"Vanilla.Discussions.Sink\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:25:\"Vanilla.Discussions.Close\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:26:\"Vanilla.Discussions.Delete\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:20:\"Vanilla.Comments.Add\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:21:\"Vanilla.Comments.Edit\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}s:23:\"Vanilla.Comments.Delete\";a:5:{i:0;s:2:\"15\";i:1;s:2:\"39\";i:2;s:2:\"40\";i:3;s:2:\"41\";i:4;s:2:\"42\";}}'
    where UserID = '13';
    
    BadgeAwardModel->GetUnobtained('13') master 0.001697s
    
    select b.BadgeID, b.Enabled, b.RuleClass, b.RuleCriteria, ba.UserID from GDN_Badge as b left join GDN_BadgeAward as ba ON b.BadgeID = ba.BadgeID and ba.UserID = '13' ;
    
    BadgeAwardModel->GetUnobtained('13') master 0.001601s
    
    select b.BadgeID, b.Enabled, b.RuleClass, b.RuleCriteria, ba.UserID from GDN_Badge as b left join GDN_BadgeAward as ba ON b.BadgeID = ba.BadgeID and ba.UserID = '13' ;
    
    FlaggingPlugin->Base_GetAppSettingsMenuItems_Handler(Object:SettingsController, array(5), 'base_getappsettingsmenuitems_handler') slave 0.001126s
    
    select DISTINCT(fl.ForeignID) as `NumFlaggedItems`
    from GDN_Flag fl
    group by ForeignURL;
    
    Page completed in 1.0755s
    Controller Data
    
    Title: 'Plugins'
    CssClass: 'Dashboard Settings plugins '
    

    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"

  • peregrineperegrine MVP
    edited September 2014

    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.

  • BleistivtBleistivt Moderator
    edited September 2014

    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

    peregrineTBMYBhgtonight
  • @Bleistivt - so an update to PHP should help? I can do that tomorrow.

  • peregrineperegrine MVP
    edited September 2014

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

    TBMYB
  • 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‌

  • peregrineperegrine MVP
    edited September 2014

    @TBMYB

    you could also replace line 141 with this

                         $fvalue =$Sender->Form->GetFormValue('FormID');
             if (strcmp(Keypic::checkFormID($fvalue["status"], "response") == 0)
    

    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.

    BleistivtTBMYB
  • 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 o:)

    We have also updated the API to version 2.1

    So Keypic plugin version 1.1 is released.

    Thanks to all for the support!

    TBMYBhgtonight
Sign In or Register to comment.