Skip to content

Blog requires seo_meta table from v17development-seo to function, but doesn't have it as dependency #178

@SKevo18

Description

@SKevo18
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'flarum_xxx.seo_meta' doesn't exist (SQL: select * from `seo_meta` where (`object_type` = blogs and `object_id` = 1) limit 1)

$seoMeta = SeoMeta::findByObjectTypeOrCreate(
'blogs',
$discussion->blogMeta->id
);

The v17development-blog extension requires v17development-seo, but it doesn't have the latter as hard dependency. As a result of this, submitting a blog post fails if SEO wasn't ever enabled before (in other words, if the table does not yet exist because the migrations from SEO weren't ran).

What I expect happens is that the blog extension correctly determines if SEO is enabled and disabled SEO features if it isn't (or, that it has the SEO extension as a dependency, in other words, enabling the blog extension in the admin panel requires the SEO extension to be enabled first).

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