Skip to content

Fails to extract content of Articles #87

@mjsarfatti

Description

@mjsarfatti

Due to the way Articles is structured gitify fails to extract their content, with the following error:

(ERROR @ /.../gitify) Instantiated a derived class modDocument that is not a subclass of the requested class ArticlesContainer
PHP Fatal error:  Call to undefined method modDocument_mysql::getArchivistCall() in /.../core/components/articles/model/articles/article.class.php on line 58

A quick solution is to exclude them in Gitify/src/CommandExtractCommand.php around line 264

·   if (method_exists($object, 'getContent')
·       && !($object instanceof \modStaticResource)
·       && !($object instanceof \modDashboardWidget)
+       && !($object instanceof \Article)
·   ) {

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions