WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Photon error – class.photon.php line 397

[Resolved] Photon error – class.photon.php line 397

  • I recently upgraded to the latest Jetpack, and now I’m having an issue with Photon. I have my own click tracking software, and it seems to be trying to parse that instead of the image:
    Warning: parse_url(/t/?http://agerstein.net/wordpress/wp-content/uploads/2013/01/silence.m4r.zip) [function.parse-url]: Unable to parse URL in /home/server/website/wordpress/wp-content/plugins/jetpack/class.photon.php on line 397

    I turned off Photon and it’s working ok, so I guess maybe I can’t use it and the tracking software – which is weird, since what Photon is chocking on is a .zip file, so it shouldn’t really be considering that, right?

    Here’s the link in context:

    <p><a href="/t/?http://agerstein.net/wordpress/wp-content/uploads/2013/01/silence.m4r.zip"><img src="/wordpress/wp-includes/images/crystal/archive.png" height="60" width="46" border="0"/></a><br/><a href="/t/?http://agerstein.net/wordpress/wp-content/uploads/2013/01/silence.m4r.zip">Silence</a></p>

    http://wordpress.org/extend/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    @jeherve

    Sorry about that. We will have a look at the issue, and we will keep you posted about the results!

    Plugin Contributor Christopher Finke

    @cfinke

    I’ve fixed the issue for the next version of Jetpack; you may want to leave Photon disabled until then.

    The change: http://plugins.trac.wordpress.org/changeset/650354

    What was happening? In the version of PHP your website is running, PHP is unable to parse that URL. Also in that version of PHP, a warning is emitted any time a URL cannot be parsed. Both of these have been fixed in newer versions of PHP.

    What change did I make? We’re now hiding any warnings that URL parsing creates, and we’re confirming that the URL was parsed successfully before continuing.

    Thanks for reporting this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Photon error – class.photon.php line 397’ is closed to new replies.