This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

webcity

  • *****
  • 252 posts
Hi,

I'm getting PHP warnings in my error log:
PHP Warning:  Undefined array key "fk_i_linked_to_attr_id" in /home/****/public_html/oc-content/plugins/attributes/functions.php on line 408

I have the latest attributes plugin installed and my site is running PHP 8.1

Can anyone suggest a solution?

Many thanks

*

MB Themes

Re: PHP Warning: Undefined array key "fk_i_linked_to_attr_id" in /home/***/pub
« Reply #1 on: February 15, 2023, 10:27:16 AM »
Disable > Enable plugin.
It's new column you might not have in DB.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

webcity

  • *****
  • 252 posts
Re: PHP Warning: Undefined array key "fk_i_linked_to_attr_id" in /home/***/pub
« Reply #2 on: February 16, 2023, 03:37:03 AM »
Thanks for the reply.

That sorted the problem for the attributes plugin errors :-)

I'm also getting the PHP warning in my error_logs:
PHP Warning:  Undefined array key "b_enabled" in /home/*****/public_html/oc-includes/osclass/controller/item.php on line 790

I've disabled and enabled all my plugins but the error stays.

I'm using the latest Osclass and the Epsilon theme and the latest updated plugins if that helps.

Can you suggest what could be causing the error?

Marked as best answer by frosticek on February 17, 2023, 10:26:58 AM
*

MB Themes

Re: PHP Warning: Undefined array key "fk_i_linked_to_attr_id" in /home/***/pub
« Reply #3 on: February 16, 2023, 09:50:59 AM »
@webcity
Will take a look and try to fix in 812.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

webcity

  • *****
  • 252 posts
Re: PHP Warning: Undefined array key "fk_i_linked_to_attr_id" in /home/***/pub
« Reply #4 on: February 16, 2023, 09:57:06 AM »
Thanks. Much appreciated