Advertisement:

Author Topic: Unable to delete ads  (Read 982 times)

adsvads

  • Jr. Member
  • **
  • Posts: 50
Unable to delete ads
« on: December 15, 2013, 11:10:21 am »
I am trying to delete these ghost ads but getting the following error

Cannot delete or update a parent row: a foreign key constraint fails (`database_name`.`os_t_item_job_attr`, CONSTRAINT `os_t_item_job_attr_ibfk_1` FOREIGN KEY (`fk_i_item_id`) REFERENCES `os_t_item` (`pk_i_id`))

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Unable to delete ads
« Reply #1 on: December 15, 2013, 11:26:55 am »
@adsvads
I know this problem too, when listing has record also on other table and cannot be deleted. But really do not know why (bad table configuration, foreign key?).
You can delete it manually, access your database and delete records from os_t_item_job_attr first

adsvads

  • Jr. Member
  • **
  • Posts: 50
Re: Unable to delete ads
« Reply #2 on: December 15, 2013, 12:21:22 pm »
@adsvads
I know this problem too, when listing has record also on other table and cannot be deleted. But really do not know why (bad table configuration, foreign key?).
You can delete it manually, access your database and delete records from os_t_item_job_attr first


thank you for the advice

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Unable to delete ads
« Reply #3 on: December 15, 2013, 02:10:11 pm »
Hi adsvads,
try ghost fix plugin.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Unable to delete ads
« Reply #4 on: December 15, 2013, 10:10:46 pm »
@dev101
For me Ghost Ads Plugin do not work on those listings.
I have also replied Jay about this bug but not responded yet  :o