*

Mohammad Quaid MJ

  • ***
  • 41 posts
  • I am Osclass Expert available @ WAp 00923129150810
Item images are not uploading
« 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')
Mohammad

*

MB Themes

Re: Item images are not uploading
« Reply #1 on: April 22, 2024, 01:35:51 PM »
Deprecated info - I would ingore these, will be fixed later.
I think your issue is with index.

Code: [Select]
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)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Mohammad Quaid MJ

  • ***
  • 41 posts
  • I am Osclass Expert available @ WAp 00923129150810
Re: Item images are not uploading
« Reply #2 on: April 24, 2024, 10:19:57 AM »
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?
Mohammad

*

MB Themes

Re: Item images are not uploading
« Reply #3 on: April 24, 2024, 12:43:39 PM »
Did you just ingored previous answer completely?

Deprecated info - I would ingore these, will be fixed later.
I think your issue is with index.

Code: [Select]
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)

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Mohammad Quaid MJ

  • ***
  • 41 posts
  • I am Osclass Expert available @ WAp 00923129150810
Re: Item images are not uploading
« Reply #4 on: April 27, 2024, 08:54:52 AM »
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.
Mohammad

*

MB Themes

Re: Item images are not uploading
« Reply #5 on: April 27, 2024, 12:06:49 PM »
Talk to your db admin/tech contact to repair database issues.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Item images are not uploading
« Reply #6 on: May 19, 2024, 10:38:11 PM »
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.

*

MB Themes

Re: Item images are not uploading
« Reply #7 on: May 21, 2024, 07:13:45 AM »
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.

Code: [Select]
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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots