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

Tonesque: error when trying to get colors from an image returning a 404 #1672

Closed
jeherve opened this issue Feb 24, 2015 · 8 comments
Closed
Labels
[Feature] Theme Tools [Type] Bug When a feature is broken and / or not performing as intended

Comments

@jeherve
Copy link
Member

jeherve commented Feb 24, 2015

If you try to use Tonesque with an image returning a 404 error, it outputs the following warnings:

<b>Warning</b>:  imagecreatefromjpeg(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/wp-content/plugins/jetpack/_inc/lib/tonesque.php</b> on line <b>45</b><br />
<br />
<b>Warning</b>:  imagecreatefromjpeg(http://www.hervedesign.com/wp-content/uploads/2008/10/2365824451_192c8f8088_o.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/wp-content/plugins/jetpack/_inc/lib/tonesque.php</b> on line <b>45</b><br />

Would it be possible to fail silently instead?

@jeherve jeherve added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Theme Tools tdiv labels Feb 24, 2015
@georgestephanis
Copy link
Member

Is this an internal call that references a url, or a third party theme/plugin using tonesque?

@jeherve
Copy link
Member Author

jeherve commented Feb 24, 2015

It's a third-party plugin, color-posts. Do you think I should handle the 404 in my plugin (probably somewhere around here?

I do see some room for improvement in our code as well, though. We could check for 404s in Jetpack_PostImages::get_image, or in Tonesque?

@georgestephanis
Copy link
Member

The plugin could just prepend an @ to the calls to avoid 404 errors. I'd be fine adding some error handling in to core in theory.

@samhotchkiss samhotchkiss modified the milestone: Needs Triage Aug 28, 2015
@jeherve jeherve modified the milestones: Not Core Jetpack Team, Needs Triage Feb 17, 2016
@jeherve
Copy link
Member Author

jeherve commented Aug 23, 2016

Worth noting that this will happen for any errors. Here is the same problem with a 403:
https://twitter.com/helenhousandi/status/768135636230471680

@jeherve
Copy link
Member Author

jeherve commented Aug 23, 2016

Related discussion:
#3742 (comment)

@jeherve jeherve modified the milestones: 4.5.1, Not Core Jetpack Team Jan 11, 2017
@jeherve jeherve modified the milestones: Not Currently Planned, 4.5.1 Jan 30, 2017
@stale
Copy link

stale bot commented Jul 1, 2018

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

@stale stale bot added the [Status] Stale label Jul 1, 2018
@kraftbj kraftbj removed this from the Not Currently Planned milestone Jan 26, 2021
@stale stale bot removed the [Status] Stale label Jan 26, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`, etc.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

@jeherve
Copy link
Member Author

jeherve commented Dec 17, 2024

This should have been fixed with #34164. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Theme Tools [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

4 participants