Fatal error: Call to a member function getCollectionAttributeValue()

Permalink
My client has been using concrete5 Version 5.6.3.1 for quite some time and everything worked just fine until this past weekend. On Saturday, he discovered the PDF files he uploaded can no longer be downloaded from the website front end (they can still be downloaded from the file manager). When trying to download any PDF files from the site, users get the following error message:

Fatal error: Call to a member function getCollectionAttributeValue() on a non-object in /home/papull/www/www/updates/concrete5.6.3.1_updater/concrete/elements/header_required.php on line 42

ATTEMPT 1 TO FIX:

I removed the PHP Code around Line 42.

<?php
$akd = $c->getCollectionAttributeValue('meta_description');
$akk = $c->getCollectionAttributeValue('meta_keywords');
?>

This resulted in the same error message with the next line with "getCollectionAttributeValue".

ATTEMPT 2 TO FIX:

Found a similar issue for an older update version, which recommended downloading the code from GitHub, which I did, replacing the full code of the document, header_required.php.

No luck with that.

Since nothing I did resolved the situation, I NEED HELP ASAP! Any ideas or suggestions are most welcome.

PLEASE NOTE: No updates or installs were done recently to the website. This issue just came up at the present time.

TIA
Peggy

ProjbyP
View Replies:
Jupiter replied on at Permalink Reply
Jupiter
Hi projbyp,

please have a look into this link...hope this will you..

http://www.concrete5.org/community/forums/installation/install-fail...

Regards
jupiter
ProjbyP replied on at Permalink Reply
ProjbyP
Thanks for the response.

I did look at that discussion prior to posting, but it was a bit over my head and didn't seem to be quite the same.

After some help from a developer (Tinku), it was discovered that a file was missing. Once that was reinstalled, the downloads now work and the error is gone. :-)