WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Photon error - class.photon.php line 397 (3 posts)

  1. macgeek
    Member
    Posted 1 year ago #

    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/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

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

  3. Christopher Finke
    Design Engineer at Automattic
    Plugin Author

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags