![]() |
Error Number: 1048 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Error Number: 1048 (/showthread.php?tid=74379) |
Error Number: 1048 - Jackdancoke - 09-17-2019 I do not know why I get this error, can someone help me?
Quote:A Database Error Occurred and here is the line 94
Quote:line 94 Quote: 'file_id' => $file_id->id RE: Error Number: 1048 - ciadmin - 09-17-2019 Your error message says it all... The bse_products_file schema says that the file_id column cannot be null. The insert statement being executed does have null for file_id ... INSERT INTO `bse_products_files` (`product_id`, `file_id`) VALUES (91, NULL) Boom! The root cause would appear to be that the "id" property of the row you find doesn't have a value, i.e. you are not finding a match for your query. RE: Error Number: 1048 - Jackdancoke - 09-17-2019 (09-17-2019, 10:03 AM)ciadmin Wrote: Your error message says it all...What should I do ? can you write me a fix? I am not a cooder, I do not know my way around. RE: Error Number: 1048 - ciadmin - 09-17-2019 No, I won't write you a fix. If you "don't know your way around", then you need to get more proficient with PHP and CodeIgniter, or hire someone who can help. We are happy to help community members who get stuck, but do not provide a programming service, sorry. |