Support » Plugin: Jetpack by » Photon error – class.photon.php line 397

  • Resolved macgeek


    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/? [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/?"><img src="/wordpress/wp-includes/images/crystal/archive.png" height="60" width="46" border="0"/></a><br/><a href="/t/?">Silence</a></p>

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


    Jetpack Mechanic 🚀

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

    Plugin Contributor Christopher Finke


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

    The change:

    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 ‘Photon error – class.photon.php line 397’ is closed to new replies.