Non-static method rc4crypt::decrypt() should not be called (Datafeed error)

PorthPorth Member
in Bugs & Feature Requests edited September 2014
Hi there,

All of the sudden I've started receiving this error in my datafeed:
Non-static method rc4crypt::decrypt() should not be called on line 205 / And again on line 278.

I'm using the Parsing code from David Hollander: https://wiki.foxycart.com/v/1.1/transaction_xml_datafeed

I'm running a simple mysqli query that inserts / update the order, but even after removing the custom code it will give still give that error.
Any idea on how to fix it?

Thanks,
Peter

Tagged:
Comments
  • fc_adamfc_adam FoxyCart Team
    @Porth,

    It sounds like you've possibly had your hosting upgraded to PHP5 - which had some changes which has affected that script.

    If you change the following two lines in that script (which I've just updated on the wiki too) that should get it working for you:
    function encrypt ($pwd, $data, $ispwdHex = 0) {
    
    becomes:
    public static function encrypt ($pwd, $data, $ispwdHex = 0) {
    

    and
    function decrypt ($pwd, $data, $ispwdHex = 0) {
    
    becomes:
    public static function decrypt ($pwd, $data, $ispwdHex = 0) {
    
Sign In or Register to comment.