Jump to content

verticalhobby

Members
  • Content count

    19
  • Joined

  • Last visited

Profile Information

  • Real Name
    Antti Lipasti

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. verticalhobby

    Paypal App install fails on modified osCommerce 2.3.4

    Ah, got it working :) Replaced all HTTP_GET_VARS with _GET. Thanks for post, it got me thru too :)
  2. verticalhobby

    Paypal App install fails on modified osCommerce 2.3.4

    I think I am having the same problem with the paypal app.. But I don't know what variable names are you talking about ? Could you post the code fix you made ?
  3. Thanks a lot @@Jack_mcs ! It did the trick and now I got the Klarna module installed!.
  4. I can't install Klarna payment module on 2.3.4.. It works fine on 2.3.1,but can anyone give some hint what has changed in modules from 2.3.1 to 2.3.4, so I could try to find the issue ? Klarna support didn't have any solution :( The error the install script gives is: Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in /home/vertical/public_html/catalog/includes/classes/klarna/class.KlarnaUtils.php on line 1519 And the code is (I have marked the error line in bold): public function installModule($configuration) { $default = $this->getDefaultArray(); tep_db_query( 'CREATE TABLE IF NOT EXISTS `klarna_ordernum` ('. '`orders_id` INT NOT NULL , '. '`klarna_ref` VARCHAR( 50 ) NOT NULL , '. 'UNIQUE ( `orders_id` ), '. 'FOREIGN KEY ( `orders_id` ) REFERENCES ' . TABLE_ORDERS . ' ( `orders_id` )' . ');' ); foreach ($configuration as $config) { $merged = array_merge($default, $config); $query_string = implode(', ', array_keys($merged)); $query_values = implode( '", "', array_map( "mysqli_real_escape_string", array_values($merged) ) ); tep_db_query( "INSERT INTO ". TABLE_CONFIGURATION . "({$query_string}) VALUES (\"{$query_values}\")" ); } } /** * Get the default array for installation method. * * @@Return array with default values */ public function getDefaultArray() { return array( 'configuration_title' => 'null', 'configuration_key' => 'null', 'configuration_value' => '', 'configuration_description' => 'null', 'configuration_group_id' => 'null', 'sort_order' => 'null', 'use_function' => '', 'set_function' => '', 'date_added' => 'now()' ); }
  5. Hi, I am trying to install Klarna modules on Osc 2.3.4, but the install fails on errors. I've tried on clean 2.3.4 install too, but it fails there too.. Is there anyone who has got Klarna working on latest Oscommerce or is someone at klarna working on it ? Paul ? I've asked Finland Klarna support, but they didn't get it working on their test either..
×