Fatal error: Call to a member function getPrefix() on a non-object


(Ryan Archer) #1

Hi guys,

 

Recently updated to latest version of Squiz Matrix before the end of last year (v5.3) and everything has been pretty cool so far, except we have got a few page errors when trying to edit some page contents on an two standard page assets. The error message shown for both instances is as below:

Fatal error: Call to a member function getPrefix() on a non-object in /var/www/slq-internet-prod/core/assets/bodycopy/bodycopy_container/bodycopy_container_edit_fns.inc on line 134

It appears to be a PHP error I assume and these pages were created before our upgrade, not after.

My team has attempted to trash the items and recreate them and but it's not working.

 

Any recommendations or something similar happened to you other 'squizzers'?? fatal-error.jpg (98.8 KB)


(Marcus Fong) #2

It looks like we’ve encountered this error in cases where people were still using a deprecated container type (“Bodycopy Container Table”?).

Contact Squiz Support and arrange for your Matrix to be patched to the latest 5.3 version - there was a change made to handle this situation more gracefully.


(Ryan Archer) #3

Thanks Marcus, I think the bug you are talking about is this one: 

  • Bug #8384Bodycopy container of type "Table" not accessible anymore
    Thanks I will contact Squiz Support and arrange for the patch to be applied.