*

umimo

  • ***
  • 88 posts
PHP Warning
« on: September 14, 2022, 09:19:58 AM »
[14-Sep-2022 12:30:05 Asia/Kolkata] PHP Warning:  Undefined array key "pk_i_id" in /home/gg/public_html/oc-content/plugins/osclass_pay/email.php on line 158
[14-Sep-2022 12:30:05 Asia/Kolkata] PHP Warning:  Undefined array key "s_title" in /home/gg/public_html/oc-content/plugins/osclass_pay/email.php on line 161
[14-Sep-2022 12:30:05 Asia/Kolkata] PHP Warning:  Undefined array key "pk_i_id" in /home/gg/public_html/oc-content/plugins/osclass_pay/email.php on line 163
[14-Sep-2022 12:30:05 Asia/Kolkata] PHP Warning:  Undefined array key "pk_i_id" in /home/gg/public_html/oc-content/plugins/osclass_pay/email.php on line 172

*

Tango

  • ****
  • 214 posts
Re: PHP Warning
« Reply #1 on: September 18, 2022, 01:15:09 PM »
When did you get these warnings, how to reproduce it?

*

MB Themes

Re: PHP Warning
« Reply #2 on: September 19, 2022, 08:48:49 AM »
@umimo
Put this into email.php on line 157 or so.
Code: [Select]
  if(!is_array($item) || empty($item) || !isset($item['pk_i_id']) || @$item['pk_i_id'] <= 0) {
    return false;
  }

Error most probably means problem on your site, you are trying to send email for listing that does not exists anymore. (or was not added)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots