Support Forums - Classified Ads Script Osclass
General osclass questions => Report bug => Topic started by: Mohammad Quaid MJ on April 22, 2024, 10:46:49 AM
-
Hi
The item edit page is not uploading any images. This is happening for a couple of months. Tested with different themes and also the uploader versions, ajax version, enabling and disable optimization options, chmode 7777 even all are not working.
I enabled the debug and when updating the item with image, here is the report. Please help to fix it.
Errors
Deprecated: Implicit conversion from float 720.4502814258911 to int loses precision in /home/cgulf/public_html/oc-includes/osclass/classes/ImageProcessing.php on line 303
Deprecated: Implicit conversion from float 40.225140712945574 to int loses precision in /home/cgulf/public_html/oc-includes/osclass/classes/ImageProcessing.php on line 311
Deprecated: Implicit conversion from float 266.6666666666667 to int loses precision in /home/cgulf/public_html/oc-includes/osclass/classes/ImageProcessing.php on line 303
Deprecated: Implicit conversion from float 13.333333333333343 to int loses precision in /home/cgulf/public_html/oc-includes/osclass/classes/ImageProcessing.php on line 311
Warning: Cannot modify header information - headers already sent by (output started at /home/cgulf/public_html/oc-includes/osclass/utils.php:2292) in /home/cgulf/public_html/oc-includes/osclass/utils.php on line 2298
------------------------------------
Database queries with error
0 Error number: 1452
Error description: Cannot add or update a child row: a foreign key constraint fails (`cgulf_classifieds`.`oc_t_item_resource`, CONSTRAINT `oc_t_item_resource_ibfk_1` FOREIGN KEY (`fk_i_item_id`) REFERENCES `oc_t_item-Damaged` (`pk_i_id`))
INSERT INTO oc_t_item_resource (fk_i_item_id) VALUES ('19302')
-
Deprecated info - I would ingore these, will be fixed later.
I think your issue is with index.
Error description: Cannot add or update a child row: a foreign key constraint fails (`cgulf_classifieds`.`oc_t_item_resource`, CONSTRAINT `oc_t_item_resource_ibfk_1` FOREIGN KEY (`fk_i_item_id`) REFERENCES `oc_t_item-Damaged` (`pk_i_id`))
Looks like it is broken, ot tables are broken (oc_t_item)
-
Sir, is this my issue only or other users are also not able to upload images? Can you advice which version of PHP will handle this issue till you fix it?
-
Did you just ingored previous answer completely?
Deprecated info - I would ingore these, will be fixed later.
I think your issue is with index.
Error description: Cannot add or update a child row: a foreign key constraint fails (`cgulf_classifieds`.`oc_t_item_resource`, CONSTRAINT `oc_t_item_resource_ibfk_1` FOREIGN KEY (`fk_i_item_id`) REFERENCES `oc_t_item-Damaged` (`pk_i_id`))
Looks like it is broken, ot tables are broken (oc_t_item)
-
Sir, I am not a developer and the answer was bit technical for me. What I understood is that the issue is not so important and will be fixed later. Kindly note that posting without pictures is not unimportant. It needs to be fixed urgently. Look at my site classifiedsgulf.com listing to see how unprofessional it looks without pictures.
-
Talk to your db admin/tech contact to repair database issues.
-
hi sir, try to uninstall all plugins you installed manually, then see if the problem has gone, then wafter image upload is fixed, install your plugins one by one, without letting your eyes on the image upload option is still working.
-
Do whatever you want but you asked for help so no idea why you do not follow proposed steps.
Deprecated info - I would ingore these, will be fixed later.
I think your issue is with index.
Error description: Cannot add or update a child row: a foreign key constraint fails (`cgulf_classifieds`.`oc_t_item_resource`, CONSTRAINT `oc_t_item_resource_ibfk_1` FOREIGN KEY (`fk_i_item_id`) REFERENCES `oc_t_item-Damaged` (`pk_i_id`))
Looks like it is broken, ot tables are broken (oc_t_item)
If you know what is issue, then there is no point to ask for help.