Back to ProMedia Support

SometimesWhy
SometimesWhy

Hi RadiantWeb team et al-

I just installed the ProMedia plugin yesterday and tried to upload an mp3 file today, but received this message when I clicked the "Create" button:

"Call to undefined method Illuminate\Database\Query\Builder::getId()" on line 2117 of /home2/XXXXXX/public_html/XXXXXXXX/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php

Can you please help?

Last updated

ChadStrat
ChadStrat

Hi, can you try adding the following to /plugins/radiantweb/promedia/models/Mediaitem.php

    /**
     * @var array Guarded fields
     */
    protected $guarded = ['*'];

    /**
     * @var array Fillable fields
     */
    protected $fillable = [];

ChadStrat

SometimesWhy
SometimesWhy

Thanks for the quick reply. I added in those declarations but I still get the same error at the same line number. Unfortunately I don't see any other errors in the system log that might provide any more clues.

To help replicate the issue, from a fresh install I am trying to upload the file from http://www.bcbc-berkeley.org/wp-content/themes/Moses/includes/mp3.php?file=http://www.bcbc-berkeley.org/wp-content/uploads/2014/03/L0323E01.mp3 with the title "The Great Historical Gospel" under the "Audio" tab, with the publish date set to March 23, 2014. Error still occurs no matter which fields are filled out and which aren't.

ChadStrat
ChadStrat

hmmm.. ok. very sorry for the trouble. Looking into this further.

C

ChadStrat
ChadStrat

Ok..there was an authorID bug. I fixed that. But the example media file you're using fails for me too...but other mp3 files seem to work? Try other files if you would.

ChadStrat

ChadStrat
ChadStrat

Sorry...update to v1.1 as well.

SometimesWhy
SometimesWhy

I ended up debugging and found the same problem - changed getId() to getAuthIdentifier(); and that seemed to fix it. I'll go ahead and update, but it looks like we can consider this resolved. Thanks for the quick turnaround!

1-7 of 7