Skip to content

Arugment #1 is not an Array. TaggableTrait Line 104 #2

Description

@F2KLabs

AsgardCMS Version: 3.5.0
AsgardCMS Blog Module Version: 3.0.1

Situation

Brand new Install of AsgardCMS with asgardcms/blog module installed.

Error

When creating a blog post in the Blog Module, if I do not specify a tag I get an error saying Argument 1 is not an Array from the setTags() method of the TaggableTrait.

screen shot 2018-01-29 at 12 11 57 pm
screen shot 2018-01-29 at 12 12 13 pm
screen shot 2018-01-29 at 2 26 18 pm

  • As a note, the third screenshot was taken at a later time than the other two. As the original did not expand the data array in question. Thus, the data in the two screenshots don't match, but that isn't important to the original issue. Just didn't want someone noticing and trying to deduce why they were different.

Synopsis

There are two array_diff calls in the TaggableTrait's setTags method that expect the first parameter to be an array. In my instance, the EloquentPostRepository makes the setTags call on line 64. That line is expecting a the post data (though this appears to be modified before reaching this method) to contain a 'tags' index. And it does not appear that one is present.

Summary

Hopefully I'm providing enough information. I'm brand new to AsgardCMS. If I've missed a something in setup or am the root of this error, can you provide instruction as to what I did wrong? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions