1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

How to show records belonging to the logged on user

Discussion in 'Community' started by 7webcreator, Oct 12, 2019.

  1. 7webcreator

    7webcreator Member

    Level: Community
    Hello,

    For years the display of the details of my list was working with no issue. Since the last Joomla 3.9.12 update, I get this following error now when I click on the menu
    0 Argument 1 passed to Joomla\Utilities\ArrayHelper::toObject() must be of the type array, null given, called in /home/accademi/public_html/components/com_fabrik/models/form.php on line 490

    The menu is set up in this way. Any idea why I suddenly get this error message?

    upload_2019-10-12_19-23-41.png



    upload_2019-10-12_19-22-37.png
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Ah, yes, a change in the J! implementation of that.

    Try changing line 490 in the file the error references to ...

    Code (Text):

    if ($listModel->canViewDetails(FArrayHelper::toObject($data)))
     
    ... so FArrayHelper instead of ArrayHelper. Our implementation of toObject() checks for null and just returns a null object if it is. The J! implementation used to do that, but looks like it no longer does, for reasons I don't understand.

    Let me know if that gets rid of the warning.

    -- hugh
     
  3. 7webcreator

    7webcreator Member

    Level: Community
    Thank you very much for your prompt reply. It is working.:):):):)
     
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    OK, I'll commit that change to github.

    -- hugh
     

Share This Page