Posts

Showing posts from August, 2013

Object has no method 'curCSS'

I was implementing jquery-ui autocomplete on an older project, and came across this error:
Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method 'curCSS'
Problem: Jquery removed .curCSS() method in 1.8 version.

The solution:  ...

MySql - Cannot delete or update a parent row: a foreign key constraint fails

Have you ever tried to make a relation with a foreign key, and when inserting, you get this error?
Cannot delete or update a parent row: a foreign key constraint fails
Googling this will give you many possible solutions:

foreign key does not exist in the related table
you have invalid data in one of the tables
your foreign key relation is backwards
disable foreign key checks (not cool)

For me, none of these worked.

By mistake, I found the real problem: One of the related tables had a different storage engine.

The Solution: Set the same ...