Jump to content

One Page Checkout AJAX POST error


PrestaShark
 Share

Recommended Posts

Hi all,

Im facing a real annoying problem with AJAX POST error in opc-order.js file and

Main problem is known issue with TECHNICAL ERROR: unable send login informations

 

Chrome console report

 

POST xxxx/index.php?controller=order-opc?rand=1426623385226 500 (Internal Server Error) jquery-1.7.2.min.js:4

n.ajaxTransport.send jquery-1.7.2.min.js:4

n.extend.ajax order-opc.js:378

updateNewAccountToAddressBlock order-opc.js:511

$.ajax.success jquery-1.7.2.min.js:2

n.Callbacks.j jquery-1.7.2.min.js:2

n.Callbacks.k.fireWith jquery-1.7.2.min.js:4

x jquery-1.7.2.min.js:4

n.ajaxTransport.send.b jquery-1.7.2.min.js:4

n.ajaxTransport.send jquery-1.7.2.min.js:4

n.extend.ajaxorder-opc.js:487 (anonymous function) jquery-1.7.2.min.js:3

n.event.dispatch jquery-1.7.2.min.js:3

n.event.add.r.handle

 

Custom made responsive theme

Share this post


Link to post
Share on other sites

Now im 100% sure that my template is free from this bug.

I have install my custom theme to clean prestashop installation and opc works good.

So no bootstrap or facebook or any other template jquery scritpt is free from bug.

 

Now im quite sure that some kind of module cause this issue. If i found any solution i will post here

Share this post


Link to post
Share on other sites

I have got something like this in log folder named 20150318_exception.log from today at 12:08 (now is 12:23)

 

*ERROR*     2015/03/18 - 12:08:31: Method is not defined at line 295 in file controllers/front/OrderOpcController.php

 

any ideas?

 

EDIT:

 

Got something new in response tab. No more 500 error

 

<br />
<b>Fatal error</b>: Call to undefined method BlockUserInfo::hookTop() in <b>/sklep/controllers/front/OrderOpcController.php</b> on line <b>150</b><br />

 

I try to fix it

 

EDIT2

GOTCHA!
BlockUserInfo::hookTop() was the hint because i have change the hook in blockuserinfo.php file and remove essential smarty array assigns from hookTop by rename this hook to my own hookUserInfo

Thats makes this issue
 

Edited by PrestaShark (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More