Piwik No Longer Tracks after Update

I updated piwik (to 1.8.4) on my website a few days ago, around the same time I installed the high level suhosin patch and updated php on my vps. Piwik tracking no longer works and I have been trying to fix it for days. I uninstalled the suhosin patch but it did not help I also tried a fresh install of piwik with new databases and still nothing. I confirmed that no data is being written to the database but I do not know why. Here is the tracking code I am using copied right from piwik’s configuration,


<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://philbystricanapps.com/piwik/" : "http://philbystricanapps.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://philbystricanapps.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->

I was able to get it working by removing php and all its entensions and then reinstalling.