typecho / typecho/typecho

附件上传功能失效!

Open
#339 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
12.4k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Bug重现:
WAMP环境下,后台文章附件添加并发送时出现错误。

怀疑upload.php并没有如约返回正确的json。

Contributor guide

Open the 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.

Research direction

Reproduce the attachment upload from the backend article editor in a WAMP environment and inspect upload.php's response. Check why the response is not valid JSON, then verify that adding and sending an article attachment completes without the JSON.parse error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.