22 Nov Edited #1

BankPipe fatal error

Ultimate subscriber
Hey there. So just tried upgrading to the new BankPipe, but receiving an error:

<br />
<b>Fatal error</b>:  Uncaught Error: Using $this when not in object context in /var/www//mybb/bankpipe.php(329) : eval()'d code:4
Stack trace:
/var/www//mybb/bankpipe.php(329): eval()
#1 {main}
  thrown in <b>/var/www//mybb/bankpipe.php(329) : eval()'d code</b> on line <b>4</b><br />
What could this be from? :)

Thanks!
Shade 22 Nov
#2
Might be my usual rush and typo mania. Will update the package asap.
day-day likes this post
day-day 22 Nov
#3
Might be my usual rush and typo mania. Will update the package asap.
Shade (22 Nov)
No worries then! Keep me updated :)
Shade 22 Nov
#4
Ah, seems like you have not updated your templates. Specifically, bankpipe_subscriptions* templates must be updated accordingly. If you have customized templates, they won’t be updated automatically. Might add a note to the log.
day-day 22 Nov Edited
#5
Ah, seems like you have not updated your templates. Specifically, bankpipe_subscriptions* templates must be updated accordingly. If you have customized templates, they won’t be updated automatically. Might add a note to the log.
Shade (22 Nov)
Could be quite possible. What is the best way of editing these templates so they are how they should be?

Edit: I edited bankpipe_subscriptions line: <title>{$this->lang->bankpipe_subscriptions_title}</title>

And removed the lang variable and simply added my own text. It did the trick, but now the upgrade page seems messed up
Shade 22 Nov
#6
Specifically, you must remove every $this-> reference. For example, $this->mybb becomes $mybb, $this->lang becomes $lang, and so forth. Just in bankpipe_subscriptions* templates, where * stands for a wildcard.