Problem/Motivation

when saving a node I am getting this error

Uncaught PHP Exception TypeError: "method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given" at /var/www/html/wwwroot/staging.dhsd8_gov_build/docroot/modules/contrib/file_crusader/file_crusader.module line 62

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jrglasgow created an issue. See original summary.

jrglasgow’s picture

Status: Active » Needs review

I have made a commit to the issue fork that splits out the login to determine if file_crusader can work on the entity into the $entity and $entity->original, first checking to see if $entity->original exists and is an object with the isPublished() method.

lukey’s picture

Status: Needs review » Fixed

  • Lukey committed 80de80e2 on 1.0.x authored by jrglasgow
    Issue #3463570 by jrglasgow: Uncaught PHP Exception TypeError: "...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.