I'm having a problem right at the end of the payment procedure, which I hope someone can help me with.
After successfully completing the PayPal payment, the redirect back to by website fails ("Server Error"), the URL is [url=http://www.[removed].co.uk/index.php/PaypalExpressCheckoutaPayment_Handler/confirm?token=]http://www.[removed].co.uk/index.php/PaypalExpressCheckoutaPayment_Handler/confirm?token=[removed]&PayerID=[removed])
Refreshing the page returns to my site's homepage, and all seems fine.
I get the following error report via email:
Error: singleton() Called without a class
At line 343 in /home/[removed]/public_html/test/sapphire/core/Core.php
singleton() Called without a class
Line 343 of Core.php
singleton()
Line 2794 of DataObject.php
DataObject::get_one(,"ID" = 0,1)
Line 2921 of DataObject.php
DataObject::get_by_id(,0)
Line 265 of Payment.php
Payment->PaidObject()
Line 459 of PayPalExpressCheckoutPayment.php
PaypalExpressCheckoutaPayment_Handler->doRedirect()
Line 437 of PayPalExpressCheckoutPayment.php
PaypalExpressCheckoutaPayment_Handler->confirm(SS_HTTPRequest)
Line 193 of Controller.php
Controller->handleAction(SS_HTTPRequest)
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
Director::direct(PaypalExpressCheckoutaPayment_Handler/confirm)
Line 127 of main.php
require_once(/home/[removed]/public_html/test/sapphire/main.php)
Line 63 of index.php
I'm SO close! Can anybody help me with this last part, please? Many thanks