Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SKevo18 opened this issue Feb 8, 2025 · 0 comments

Comments

@SKevo18
Copy link

SKevo18 commented Feb 8, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant