Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298811

PDO Exception : Incorrect integer value: for column 'weight' (weight column is not being casted to integer)

$
0
0

Problem/Motivation

Some modules like ctools(custom pages) send menu array which contains "weight" column as "string" and thus a PDO is thrown as below :
1366 Incorrect integer value: '' for column 'weight' at row 19: INSERT INTO {menu_router}

Proposed resolution

Cast the value to an integer as per attached patch.

Remaining tasks

Cast other items as needed i.e., checking for NULL values before executing insert statement.

User interface changes

Nonde

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 298811

Latest Images

Trending Articles



Latest Images