*

Post Free Online

  • ***
  • 34 posts
  • Welcome to Post Free Online classified web site
Unable to delete post from admin dashboard and from front site
« on: January 13, 2024, 06:40:07 PM »
Unable to delete post from admin dashboard and from front site. To cross check I disabled all the plug-ins. And try to delete all required ads. Still unable to delete those ad. Which shows no plug-in is responsible for this unusual behaviour. Recently I updated the website and uploaded the my SQL to the database.

Please help me out how to resolve this issue.


Below is the error log.



[13-Jan-2024 23:06:30 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:06:30 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:06:31 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:06:31 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:06:40 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:06:40 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:06:50 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:06:50 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:00 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:00 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:04 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:07:04 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:07:10 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:11 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:20 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:20 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:07:21 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:07:30 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:30 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:41 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:41 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:50 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:07:50 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:00 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:00 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:09 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 173
[13-Jan-2024 23:08:09 Asia/Kolkata] PHP Warning:  Array to string conversion in /home2/scorpech/postfreeonline.com/oc-content/plugins/contact_counter/ModelContactCounter.php on line 174
[13-Jan-2024 23:08:10 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:10 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:20 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:20 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:30 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118
[13-Jan-2024 23:08:30 Asia/Kolkata] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home2/scorpech/postfreeonline.com/oc-includes/osclass/helpers/hSanitize.php on line 118

*

MB Themes

Re: Unable to delete post from admin dashboard and from front site
« Reply #1 on: January 14, 2024, 08:03:35 AM »
Do it on database in t_item table.
You shoukd get error there is some index blocking removal.
Find that index and update/drop it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 34 posts
  • Welcome to Post Free Online classified web site
Re: Unable to delete post from admin dashboard and from front site
« Reply #2 on: January 15, 2024, 06:03:04 PM »
Do it on database in t_item table.
You shoukd get error there is some index blocking removal.
Find that index and update/drop it.

How to Find that index, exactly I should search in t_item table. 

*

MB Themes

Re: Unable to delete post from admin dashboard and from front site
« Reply #3 on: January 15, 2024, 09:17:59 PM »
Delete same record id as from backoffice
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 34 posts
  • Welcome to Post Free Online classified web site
Re: Unable to delete post from admin dashboard and from front site
« Reply #4 on: January 16, 2024, 04:44:27 AM »
Delete same record id as from backoffice

What I understood is should I delete

t_item

 from table ?

*

MB Themes

Re: Unable to delete post from admin dashboard and from front site
« Reply #5 on: January 16, 2024, 10:23:44 AM »
Ok last attempt.
- delete record from t_item table (same id as you tried in backoffice)
- you get error/warning about foreign key blocking this removal
- update or drop that foreign key (on update cascade, on delete cascade...)

Otherwise contact your developer/admin for help.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 34 posts
  • Welcome to Post Free Online classified web site
Re: Unable to delete post from admin dashboard and from front site
« Reply #6 on: January 16, 2024, 04:44:12 PM »
Ok last attempt.
- delete record from t_item table (same id as you tried in backoffice)
- you get error/warning about foreign key blocking this removal
- update or drop that foreign key (on update cascade, on delete cascade...)

Otherwise contact your developer/admin for help.


Hi,

This is not about one record to delete record from t_item table (same id as I tried in backoffice) after update unable to delete old Ad. New Add able to delete easily. The deletion is not happening with old content only. When I tried to delete from my SQL you are right it is giving error or warning. Attaching here with screenshot. After watching the screenshot please let me know now what should I do.

After watching the screenshot please let me know what is the foreign key in screenshot. If you have any screenshot for the reference purpose please share with me or if is there any demo video where I can see.

*

MB Themes

Re: Unable to delete post from admin dashboard and from front site
« Reply #7 on: January 17, 2024, 01:03:12 PM »
Now you know which foreign key blocks removal.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots