smcyr / Craft-FocusPoint

A plugin for Craft CMS based on jQuery FocusPoint
MIT License
101 stars 6 forks source link

Intermittent errors on save #23

Open lboaretto opened 6 years ago

lboaretto commented 6 years ago
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`site`.`craft_focuspoint_focuspoints`, CONSTRAINT `craft_focuspoint_focuspoints_assetId_fk` FOREIGN KEY (`assetId`) REFERENCES `craft_assetfiles` (`id`))
#17 /home/forge/site.com/craft/app/framework/db/CDbCommand.php(358): execute
#16 /home/forge/site.com/craft/app/framework/db/ar/CActiveRecord.php(1084): insert
#15 /home/forge/site.com/craft/app/framework/db/ar/CActiveRecord.php(812): save
#14 /home/forge/site.com/craft/plugins/focuspoint/services/FocusPoint_FocusPointService.php(43): createOrUpdateFocusPoint
#13 /home/forge/site.com/craft/plugins/focuspoint/fieldtypes/FocusPoint_FocusPointFieldType.php(94): onAfterElementSave
#12 /home/forge/site.com/craft/app/services/ElementsService.php(1606): saveElement
#11 /home/forge/site.com/craft/app/services/EntriesService.php(176): saveEntry
#10 /home/forge/site.com/craft/app/controllers/EntriesController.php(462): actionSaveEntry
#9 /home/forge/site.com/craft/app/framework/web/actions/CInlineAction.php(49): runWithParams
#8 /home/forge/site.com/craft/app/framework/web/CController.php(308): runAction
#7 /home/forge/site.com/craft/app/framework/web/CController.php(286): runActionWithFilters
#6 /home/forge/site.com/craft/app/framework/web/CController.php(265): run
#5 /home/forge/site.com/craft/app/framework/web/CWebApplication.php(282): runController
#4 /home/forge/site.com/craft/app/etc/web/WebApp.php(823): _processActionRequest
#3 /home/forge/site.com/craft/app/etc/web/WebApp.php(287): processRequest
#2 /home/forge/site.com/craft/app/framework/base/CApplication.php(185): run
#1 /home/forge/site.com/craft/app/index.php(62): require_once
#0 index.php(27): null

PHP: 7.0.22 Craft: 2.6.2994 MySQL: 10.1.24-MariaDB