frozengeek Posted January 23, 2003 Posted January 23, 2003 PLEASE help. 7 weeks fighting with OSC and every time I think I'm getting it, something goes flooey. :cry: :cry: :cry: :cry: :cry: In Admin, for EVERY single payment module, if I try to turn it in on I get: Warning: call_user_func() expects first argument, 'tep_get_order_status_name', to be a valid callback in /home/[username]/public_html/admin/includes/functions/general.php on line 1256. The section referred to above is: function tep_call_function($function, $parameter, $object = '') { if ($object == '') { return call_user_func($function, $parameter); // THIS IS LINE 1256 } elseif (PHP_VERSION < 4) { return call_user_method($function, $object, $parameter); } else { return call_user_func(array($object, $function), $parameter); } } The green light shows up but when I click Edit, the Edit section on the right goes away completely and instead I get this error: Fatal error: Call to undefined function: tep_cfg_pull_down_order_statuses() in /home/[username]/public_html/admin/modules.php(204) : eval()'d code on line 1 I'm not even sure what the (204) refers to but if it's a line number, that section of code is this: case 'edit': $keys = ''; reset($mInfo->keys); while (list($key, $value) = each($mInfo->keys)) { $keys .= '<b>' . $value['title'] . '</b><br>' . $value['description'] . '<br>'; if ($value['set_function']) { // THIS IS LINE 204 eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']); } or if it's line 1 (!?!) it's this: <?php I only noticed this problem after I tried to uninstall Paypal IPN after having installed Gift Vouchers 4.1 and Discount Coupons. (Found out that Paypal IPN does NOT like Gift Vouchers -- the gift voucher amount wouldn't reduce after purchase.) Anyway when I uninstalled Paypal IPN and tried to activate regular Paypal, I noticed these errors. So I uninstalled EVERYTHING -- literally wiped out the account on the server (do my own hosting), deleted everything, did a brand new install of Jan 11 '03 snapshot, and installed to a backup (including database) that didn't have vouchers, coupons, or IPN mods. STILL THE SAME ERROR!!! It shouldn't be doing this on an install that has no payment-related mods should it??? Where do I even begin to look for a solution? I can't make head nor tails out of those error messages. I thought I'd looked everywhere & can't find anything quite like this one in the forums. thanks, Anne
frozengeek Posted January 23, 2003 Author Posted January 23, 2003 PS I forgot to mention that also when I try to activate a payment module, it sets sort order at 0. Don't know if that helps diagnose this problem... Please can anyone help? Anne
smiley Posted January 23, 2003 Posted January 23, 2003 all Payment Modules?? Have you set your https in both your config files :?: HTH Neil Common sense is genius dressed in working clothes. Ralph Waldo Emerson
frozengeek Posted January 23, 2003 Author Posted January 23, 2003 THANK YOU for answering. It's been so frustrating waiting and hoping for any input suggestions or ideas. Yes, checked and double-checked https. It was all working fine on the catalog end with both Gift Voucher & Discount Coupon installed, but I was only doing test orders with plain-old-credit card mod (no merchant acct) because I didn't have the store owner's paypal info yet. I installed Paypal IPN .096 and activated it just fine - no error. However it fought with the gift voucher mod & wouldn't deduct amounts used from the balance, so I uninstalled ipn. I had all code carefully commented -- not only in the code lines, but I even document at the top of each file which mods are used in it & the date I install the mod. Double checked the uninstall & also reverted to the pre-ipn backup database. Tried to activate plain old paypal, got the errors. Tried to activate other payment methods, errors. Stupid me deactivated the active credit card & money order methods, then I couldn't get either one of them activated again either. Paypal ipn has an option to deactivate cURL, which I did on & off when I was trying to get it to work right. I don't remember if it was reactivated or not when I uninstalled ipn. Would that make a difference? Thanks, Anne
smiley Posted January 23, 2003 Posted January 23, 2003 It seems that either your backup database or backup admin are corrupt. If you still have the default files for the admin I'd reinstall those. And test. Rule of thumb is change one thing at a time. Test. Then move on to the next component. Database. Test. If everything was working fine then I would say that your php installation is OK. Hopefully it is not very old. If it is old - update it. Good luck. HTH Neil Common sense is genius dressed in working clothes. Ralph Waldo Emerson
Recommended Posts
Archived
This topic is now archived and is closed to further replies.