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

Found 1 image to regenerate. Warning: Can't find "DSC_XXXX" (ID XXXX). #175

Closed
2 tasks done
devxpoint opened this issue Jan 31, 2023 · 1 comment
Closed
2 tasks done

Comments

@devxpoint
Copy link

devxpoint commented Jan 31, 2023

Bug Report

Hey there,

I have Wordpress 6.1.1 with PHP 7.4 and WP-CLI on shared hosting.

Physical root path to wordpress is: /data/web/1/000/037/971/129134/htdocs
Physical root path to WP CLI is: /data/web/1/000/037/971/129134/htdocs/wp-cli.phar

php wp-cli.phar --info:

OS: FreeBSD 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64
Shell: /usr/local/bin/bash
PHP binary: /usr/local/bin/php
PHP version: 7.4.30
php.ini used:
MySQL binary: /usr/local/bin/mysql
MySQL version: mysql Ver 14.14 Distrib 5.7.38, for FreeBSD13.1 (amd64) using EditLine wrapper
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /data/web/1/000/037/971/129134/htdocs
WP-CLI packages dir:
WP-CLI cache dir: /web/1/000/037/971/129134/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.7.1

Now I try to run
php wp-cli.phar media regenerate 5233:

Found 1 image to regenerate.
Warning: Can't find "DSC_0944" (ID 5233).
Error: No images regenerated (1 failed).

In Wordpress the image with ID 5233 is shown up in media gallery, but NO postmeta data (datetime, dimensions...)
But the image really exists under https://www.domain.com/wp-content/uploads/2023/01/DSC_0944.jpg

I want to recreate all metadata for the real existing images in uploads-folder.
But the media regeneration seems not to work -.-

Any ideas?

@danielbachhuber
Copy link
Member

Hey @devxpoint!

We don't typically use GitHub issues for support questions. Feel free to stop by the #cli channel on WordPress.org Slack if you'd like help debugging further.

@danielbachhuber danielbachhuber closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants