Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

150 "Foreign key constraint is incorrectly formed"

Open
#91 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
mysql, php
Domain
databases

Research direction

This is a user support report: installing or reinstalling the plugin fails with MySQL errno 150 when creating werkl_blog_category, so start from the migration that creates that table and compare its foreign-key column definition with the referenced blog table (type, length, charset must match). Reproduce against Shopware 6.7.9.0 with the affected OpenBlogware version to confirm whether the schema drifted between 5.0.1 and 5.2.1. Done means the migration creates the table without errno 150 and the plugin installs cleanly; note the report gives no version of the failing migration, so ask the reporter first.

Written by the indexing model from the issue text.

Description

Ich hatte das Plugin Version 5.0.1 installiert. Nachdem ich aber Probleme mit dem Erstellen von Blogbeiträgen hatte, hatte ich die Version auf 5.2.1 aktualisiert. Doch dann stellt ich fest. das meine Plugins nicht mehr zu sehen waren. Dann habe ich es deinstalliert und wollte danna uf die darunterliegende Version wieder installieren, aber ich erhalte die Fehlermeldung "Internal Server Error An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1005 Can't create table K10804_shopname.werkl_blog_category (errno: 150 "Foreign key constraint is incorrectly formed"). Egal was ich nun mache, die Meldung bleibt bestehen. Ich setze Shopware 6.7.9.0 ein. Wie kann ich das Problem beheben bzw beseitigen.

Dominant language
PHP
Stars
43
Forks
21
Avg merge
12d 20h
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Werkstattl/OpenBlogware

All issues in Werkstattl/OpenBlogware

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.