Goncalvez Posted July 31, 2018 Share Posted July 31, 2018 Hello everybody, in advance I want to thank anybody who can help with this error. Everything else seems to be working ok, up to this step, except for the last step of the checkout process; when the users clicks the "Finalise and pay for my order" button, they get this error: Fatal error: Uncaught Error: Call to undefined function is_empty() in /srv/disk/user/www/mysite.com/shop/checkout_process.php:239 Stack trace: #0 {main} thrown in /srv/disk/user/www/mysite.com/shop/checkout_process.php on line 239 Thank you very much for any help provided. Link to comment Share on other sites More sharing options...
MrPhil Posted July 31, 2018 Share Posted July 31, 2018 You'll probably get faster and better responses if you tell us exactly which version of osCommerce you're working with (not "the latest"), and whether it's the "official" release or Edge/CE/Frozen. Also, what version of PHP are you running under? There is no is_empty() in PHP. There is an empty() function. Is this code you wrote, or is it product or add-on? If it's your code, look up the formal definition of empty(), as it has a few quirks (e.g., ' ' is not empty, while '0' is empty). Link to comment Share on other sites More sharing options...
Goncalvez Posted July 31, 2018 Author Share Posted July 31, 2018 Hi MrPhil, Thank you for your help. The version is OSCommerce (online merchant) v2.3.4.1 CE (responsive) + Bootstrap v3 + jQuery Downloaded from: github.com / gburton/ Link to comment Share on other sites More sharing options...
allaboutwicker Posted July 31, 2018 Share Posted July 31, 2018 Hi @Goncalvez What payment modules do you have installed? I would try using "Cash On Delivery Module" or "Check/Money Order Module" and do a mock order as a customer to see if that goes through for you and then test PayPal or whatever other payment module you are trying to make work. Link to comment Share on other sites More sharing options...
Goncalvez Posted July 31, 2018 Author Share Posted July 31, 2018 The modules are the default ones that came within the .zip file. I will try as you recommended. Thanks a lot. Link to comment Share on other sites More sharing options...
♥John W Posted July 31, 2018 Share Posted July 31, 2018 Search your files to find out where that function is really being called. I don't think is_empty was ever in OSC. Do a little Googling and it just doesn't appear. Overtime, most OSC functions and problems have popped up a ton of times on Google. It's not in any of the versions I have. I'm not really a dog. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.