*

Vlad7

  • ****
  • 244 posts
PHP Warning: Undefined array key "locales"
« on: September 06, 2023, 09:06:51 PM »
Who faced this warning, how to fix it?

[06-Sep-2023 22:00:58 Europe/Kiev] PHP Warning:  Undefined array key "locales" in /home2/agraria1/public_html/oc-content/plugins/business_profile/form/seller.php on line 244

Marked as best answer by frosticek on September 07, 2023, 06:58:51 PM
*

MB Themes

Re: PHP Warning: Undefined array key "locales"
« Reply #1 on: September 07, 2023, 10:14:36 AM »
Go to that file, find line:
Code: [Select]
                    <?php if(trim(urldecode(bpr_field($feat['locales']))) != '') { ?>

and replace it with:
Code: [Select]
                    <?php if(isset($feat['locales']) && trim(urldecode(bpr_field($feat['locales']))) != '') { ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vlad7

  • ****
  • 244 posts
Re: PHP Warning: Undefined array key "locales"
« Reply #2 on: September 07, 2023, 05:14:30 PM »
thank you very much everything works