Undefined Method Error

Hello all.

1st, some general Info:
System: Ubuntu 24.04lts
CMS V: 9.4.7
PHP: 8.2.3

Having a bit of a problem. We are building a new theme and am getting this error:

An unexpected error occurred.
Attempted to call an undefined method named “getBodyAttributes” of class “Concrete\Core\Page\View\PageView”.

This is the top of our header.php

<
<?php Loader::element('header_required'); ?>

–>> I believe this is the offending code:

getBodyAttributes(); ?>>

(A) 1 Other question. This is the folder structure of out 9.4.7 install (I tydied it up):

application
concrete
packages
updates
autoloadcheck.php
autoloaddebug.php
composer.json
composer.lock
configcheck.php -->> this is mine
index.php
LICENSE.TXT
phpinfo.php -->>> this is mine
robots.txt

In the folder “concrete” we have a “vendor” folder.

In web searches trying to get assistance, quite a few sites tell
me that our installation should have the concrete/vendor folder
located in the root and this is why we are getting the above error.

Is this correct? All our other sites have the fodler structure as
is (A) above.
s