Title: Photon error &#8211; class.photon.php line 397
Last modified: August 20, 2016

---

# Photon error – class.photon.php line 397

 *  Resolved [macgeek](https://wordpress.org/support/users/macgeek/)
 * (@macgeek)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/photon-error-classphotonphp-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](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/](http://wordpress.org/extend/plugins/jetpack/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [13 years, 5 months ago](https://wordpress.org/support/topic/photon-error-classphotonphp-line-397/#post-3342936)
 * Sorry about that. We will have a look at the issue, and we will keep you posted
   about the results!
 *  Plugin Contributor [Christopher Finke](https://wordpress.org/support/users/cfinke/)
 * (@cfinke)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/photon-error-classphotonphp-line-397/#post-3342983)
 * 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](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 ‘Photon error – class.photon.php line 397’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Christopher Finke](https://wordpress.org/support/users/cfinke/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/photon-error-classphotonphp-line-397/#post-3342983)
 * Status: resolved