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.

Pockets setting not works

This discussion is related to the Pockets addon.
JoZ3_69JoZ3_69
edited October 2016 in Vanilla 2.0 - 2.8

I'm updating my forum with version 2.1 to version 2.2, almost everything is working well but the pockets plugin setting doesn't work.

The message I get when trying to enter the setting is:

Fatal Error in SettingsController.xsetHighlightRoute();
The "SettingsController" object does not have a "xsetHighlightRoute" method.
The error occurred on or near: /home/myuser/www/myforum/library/core/class.pluggable.php

172: // Make sure that $ActualMethodName exists before continuing:
173: if (!method_exists($this, $ActualMethodName)) {
174: // Make sure that a plugin is not handling the call
175: if (!Gdn::pluginManager()->hasNewMethod($this->ClassName, $ReferenceMethodName)) {
176: trigger_error(ErrorMessage('The "'.$this->ClassName.'" object does not have a "'.$ActualMethodName.'" method.', $this->ClassName, $ActualMethodName), E_USER_ERROR);
177: }
178: }
179:
180: // Make sure the arguments get passed in the same way whether firing a custom event or a magic one.

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.
Additional information for support personnel:

Application: Vanilla
Application Version: 2.2.1
PHP Version: 5.6.27
Operating System: Linux
Server Software: Apache/2.4.23 (Unix)
Referer: http://localhost/myforum/settings/plugins/all
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Request Uri: /myforum/settings/pockets

Comments

  • RiverRiver MVP
    edited October 2016

    @JoZ3_69 said:
    I'm updating my forum with version 2.1 to version 2.2, almost everything is working well but the pockets plugin setting doesn't work.

    The message I get when trying to enter the setting is:

    Fatal Error in SettingsController.xsetHighlightRoute();
    The "SettingsController" object does not have a "xsetHighlightRoute" method.
    The error occurred on or near: /home/myuser/www/myforum/library/core/class.pluggable.php

    172: // Make sure that $ActualMethodName exists before continuing:
    173: if (!method_exists($this, $ActualMethodName)) {
    174: // Make sure that a plugin is not handling the call
    175: if (!Gdn::pluginManager()->hasNewMethod($this->ClassName, $ReferenceMethodName)) {
    176: trigger_error(ErrorMessage('The "'.$this->ClassName.'" object does not have a "'.$ActualMethodName.'" method.', $this->ClassName, $ActualMethodName), E_USER_ERROR);
    177: }
    178: }
    179:
    180: // Make sure the arguments get passed in the same way whether firing a custom event or a magic one.

    Need Help?

    If you are a user of this website, you can report this message to a website administrator.

    If you are an administrator of this website, you can get help at the Vanilla Community Forums.
    Additional information for support personnel:

    Application: Vanilla
    Application Version: 2.2.1
    PHP Version: 5.6.27
    Operating System: Linux
    Server Software: Apache/2.4.23 (Unix)
    Referer: http://localhost/myforum/settings/plugins/all
    User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
    Request Uri: /myforum/settings/pockets
    

    you are mixing and matching things and that doesn't always work.

    you are getting around to updating to vanilla 2.2.1 which was released in May.

    but you apparently are trying to use the pockets version 'Version' => '1.2', released afterwards.

    which has....

    $Sender->setHighlightRoute('settings/pockets');

    https://github.com/vanilla/addons/commit/4d773b9be61bcaadb8e7b472ffec63417f533dbd

    you would need to use version 1.1.3 of pockets to avoid that error (or modify the plugin ;) )

    whereas the pockets plugin available here https://vanillaforums.org/addon/pockets-plugin-1.1.3

    does not have the $Sender->setHighlightRoute('settings/pockets');

    as you can see https://github.com/vanilla/vanilla/commit/f9440549bd1136d3edbff73a2a8432b9a83852ff

    setHighlightRoute is new and not even part of vanilla 2.3

    General Tip: if you have a problem with a plugin. mention the version number of the plugin as well as the vanilla version.

    Many times github version of plugins are synchronized to the master version and are often way ahead of the stable vanilla version, and frequently the items in the add-ons are not updated as well. Somewhere in the middle ground you have to cherry pick the fixes and avoid the new stuff, or just use the available add-on from the https://vanillaforums.org/addons and hope that they will be updated to work with the stable version of vanilla.

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

    JoZ3_69R_Jhgtonight
  • @River thanks so much, I made the mistake to update the plugin from github addons, problem solved!!!

Sign In or Register to comment.