Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

SQL error for image with special character

Aperta
#960 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
mysql, php, wordpress
Ambito
backend, databases

Direzione di ricerca

Reproduce the issue using the rocket-test-data folder under wp-content, Imagify settings, and an image whose path contains a special character; then inspect debug.log and the reported SELECT query. Done means the image is processed without a SQL syntax error and no corresponding database error appears in debug.log.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority: low type: bug

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version => 2.2.4
  • Used the search feature to ensure that the bug hasn’t been reported before

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add rocket-test-data folder in wp-content
  2. Upload some images
  3. Install and activate imagify
  4. Active theme (2025) and add rocket-test-data/images in settings of imagify and save /gotobulk
  5. Imagify all
  6. Check the debug.log and you'll see the error
    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'high\\'.jpg','{{CONTENT}}/rocket-test-data/images/600px-Mapang-test.gif','{{CONT' at line 1 for query SELECT file_id, folder_id, path, optimization_level, status FROM wp_imagify_files WHERE path IN (

Expected behavior
There shouldn't be any error, image with special character should be process and no error in the debug.log

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
https://wp-media.slack.com/archives/CU0F6EGQ1/p1737720196336289

Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming

Lingua principale
PHP
Stelle
82
Fork
31
Merge medio
5g 8h
PR unite (30g)
3

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wp-media/imagify-plugin

Tutte le issue di wp-media/imagify-plugin

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.