PDA

View Full Version : Cannot add or update a child row



3hills
17-07-2015, 12:46 PM
--------------------------------------------------
Topic Transfered from old forum
--------------------------------------------------

Hello,
I'm trying to convert a component Master-League, which is for Joomla 2.5 went to run Joomla 3.x All I was able to run, but when saving tips for user error pops up:

1452 - Cannot add or update a child row: a foreign key constraint fails (`joom_domena_cz`.`joom_multileague_player_predict ion`, CONSTRAINT `joom_multileague_player_prediction_ibfk_2` FOREIGN KEY (`game_id`) REFERENCES `joom_multileague_game` (`id`) ON DELETE CASCA) SQL=INSERT INTO `joom_multileague_player_prediction` (`user_id`,`game_id`,`home_score_prediction`,`away _score_prediction`,`submition_date`,`status`) VALUES (480,0,0,0,'2014-10-03 14:22:40',1)

Can someone please advise me what is wrong, or if I did something wrong? Thank you

3hills
17-07-2015, 12:47 PM
--------------------------------------------------
Topic Transfered from old forum
--------------------------------------------------

Hello,

There is new version that supports, 2.5 and 3.x , you can try to install this version of master-league component . Because the old version that was build for 2.5 used some functions that are deprecated in version 3