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.

Pocket error after upgrade to 2.1.6

2.1.6 error on trying to access Pockets Plugin from the dashboard. I have tried other themes so i don't think a theme problem:

The error occurred on or near: /home3/han/public_html/isaanexpats/library/core/class.dispatcher.php 33: try { 334: $this->FireEvent('BeforeControllerMethod'); 335: Gdn::PluginManager()->CallEventHandlers($Controller, $Controller->ControllerName, $ControllerMethod, 'Before'); 336:
337: call_user_func_array($Callback, $Args); 338: } catch (Exception $Ex) { 339: $Controller->RenderException($Ex); 340: } 341: } elseif (method_exists($Controller, $ControllerMethod)) {

Tagged:
«1

Comments

  • edited December 2014

    You need to update all of your plugins to the versions that do work. Please research and look for plugins and themes that do and don't work for 2.1

    http://vanillaforums.org/discussion/26703/plugins-themes-that-work-and-dont-work-in-vanilla-2-1

  • DenisSDenisS ✭✭
    edited December 2014

    I have an error with Pockets after reinstalling 2.1.6 the only theme it seems to work ok with is Apptastic version 0.9.2 I have tried Bitter Sweet and + baseline and they have an error. I turned off all Plugins except Pockets makes no difference

  • peregrineperegrine MVP
    edited December 2014

    what error does bittersweet have?

    and did you modify the bittersweet theme, or is it unadulterated.

    what version number of pockets do you have?

    same old questions...... version numbers errors?

    or are we looping through the same problem that you had last time relating to pockets

    you may have an error in the code you placed in your pockets. try deleting and/or disabling all the pockets.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • DenisSDenisS ✭✭
    edited December 2014

    I'm packing up for the day. Start again fresh tomorrow.
    There were no errors showing

  • DenisSDenisS ✭✭
    edited December 2014

    Pockets Version 1.1.2 >>>>
    I have looked around as to why pockets only works ok with Apptastic theme. I have re-uploaded applications & conf and settings file separately again today in case they were corrupt, but it's still the same as yesterday. I have not altered any files or themes at all. I tried Brand Friendly ( send everything to the right of the screen ) FB Vanilla +Baseline & Bitter Sweet & Pure ( sends all to the bottom of the screen ). Maybe Apptastic alters something somewhere when it's installed ? I checked all versions numbers they are all the
    latest versions. >>>>>>
    Other small errors when pockets is installed: Favicon disappears if you have a pocket set "before header", if you set Pocket for "After Header" the Favicon is ok but the pockets still goes "before header".

  • peregrineperegrine MVP
    edited December 2014

    I have re-uploaded applications & conf and settings file separately again today in case they were corrupt, but it's still the same as yesterday. I have not altered any files or themes at all.

    this will not change any errors you may have introduced into a pocket itself.

    once again, I suggest you delete the individual pockets. since they are stored in the database.

    "You" are probably introducing code that does not work in your pocket.

    • once again the same rules apply, disable all your other plugins and use the bittersweet theme.

    • if you can't get your pockets to display in bittersweet theme, it doesn't really matter what other themes you try, clear and simple - you have most likely broken pockets meaning the code "you" added into your pocket or pockets via cut and paste in the dashboard. (assuming you did not change .tpl files which you swear you did not do).

    please re-read this message 100 times and memorize it by heart.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Just read it 50 times I do the other 50 tomorrow, I am deleting pockets and re-installing them slowly.

  • peregrineperegrine MVP
    edited December 2014

    Just read it 50 times I do the other 50 tomorrow, I am deleting pockets and re-installing them slowly.

    good luck. perhaps read 25x after breakfast and 25x after lunch :smiley:

    I recommend the thai basil chicken.

    or red curry chicken

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • I remember Denis had a problem with pockets 2 years ago which rendered his dashboard unusable and I had to go in there and disable pockets. Because he placed some funky code in the pocket that ruined the dashboard view....

    Denis, you need to understand that the code you place in pockets does and will affect the entire site. It is a very powerful plugin. You need to look at each pocket you create as an html document and enter the html correctly as you would when creating a web page.

  • you could try posting your pocket code here...

    http://validator.w3.org/#validate_by_input

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • DenisSDenisS ✭✭
    edited December 2014

    I found the problem: it's this " DIV" < DIV ALIGN=CENTER > in a donate button Pocket on the panel no matter where you put before or after. < DIV ALIGN=CENTER >

  • That is bad html

    it should be

    <div style="text-align:center;margin:0 auto;">whatever in here</div>

    But it would be best to add an Id to it and then use css in the custom css to make it look as you desire.

  • peregrineperegrine MVP
    edited December 2014

    http://vanillaforums.org/addon/forumdonate-plugin

    as vrijvlinder said avoid styles!

    assign a class via css

    you can't do it better! with a little reading up.

    http://www.w3schools.com/css/default.asp

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • DenisSDenisS ✭✭
    edited December 2014

    This is the full code it works ok on 2.0.18.8 but not 2.1.6 I've had to put spaces after < to make it show on here. I do use http://www.w3schools.com/css/default.asp --------------------------------------------------------------------------------
    < DIV ALIGN=CENTER >
    < FONT COLOR="FFA500">If you like us help us no minimum
    < form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    < input type="hidden" name="cmd" value="_s-xclick">
    < input type="hidden" name="hosted_button_id" value="BTLA9XAXWHXL4">
    < input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
    < img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    < /form>

  • edited December 2014
    <div style="text-align:center;">
    <span style="color: #FFA500;">If you like us help us no minimum</span>
    <img alt="" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" style="border: 0px;"/>
    </div>
    

    Change it to this

    <div class="Donate">
    <span id="donate">If you like us help us no minimum</span>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="BTLA9XAXWHXL4">
    <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
    <img alt="" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" style="border: 0px;"/>
    </div>
    

    then add this to your custom.css

    div.Donate{
    margin:0 auto;
    text-align:center;
    }
    
    span#donate{
    color:#ffa500;
    }
    
  • Yes that works thanks, I always wonder what a css did. ;-)

  • I have to admit something, I am mildly dyslexic some days better than others.

  • @DenisS said:
    I have to admit something, I am mildly dyslexic some days better than others.

    Believe it or not. I assumed that.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @DenisS

    some day soon I expect. you will have your forum up and running perfectly in 2.1.6

    I can almost see it :)

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Don't Jinx it. The last time you said he was gonna be a Vanilla instructor and look what happened...

Sign In or Register to comment.