Issue with makrdown file path stored in post meta

Open
#4 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php, wordpress
Domain
backend, cli

Research direction

Start by tracing where the imported Markdown file path is written to post meta; the issue provides no file or test names. Reproduce the behavior across a plugin-directory move or rename, then verify that the stored reference remains usable without the documented wp search-replace commands.

Written by the indexing model from the issue text.

Description

As the complete path of markdown files to be imported gets stored in post meta. It causes an issue if:

  1. The absolute path to the plugin folder then changes.
  2. Name of the plugin changes.

Both of these issue happened in our case.

Had to run the following search-replace commands to fix this:

wp search-replace '/var/www/htdocs/wp-content/plugins/ee-markdown-importer/' '/var/www/htdocs/current/wp-content/plugins/wp-ee-docs-command/' --url=<site-url>

wp search-replace '/var/www/htdocs/wp-content/plugins/wp-ee-docs-command/' '/var/www/htdocs/current/wp-content/plugins/wp-ee-docs-command/' --url=<site-url>
Dominant language
PHP
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.