I have cakephp site.
[login to view URL]
See the comments section at the bottom? After you login and submit a comment, it gives an error:
Error: SQLSTATE: Integrity constraint violation: 1048 Column 'foreign_key' cannot be null
SQL Query: INSERT INTO `420portal`.`comments` (`is_active`, `foreign_key`, `parent_id`, `model`, `comment`, `user_id`, `modified`, `created`, `lft`, `rght`) VALUES ('1', NULL, NULL, 'Review', 'hello hello', 5, '2018-05-15 01:08:39', '2018-05-15 01:08:39', 67, 68)
39 pekerja bebas membida secara purata $23 untuk pekerjaan ini
Hello Dear!, My name is Tran I know why your site have error. I hope can fix it for you I have been working with PHP for 8 years. I have experience with PHP
Hello, can you share code with me ? I have checked i can solve it if you have assigned foreign_key to any column you can not set it null. it must have reference value of primary key. THanks