Piwik Archive.php memory and stack trace error

I have 1.6 and I am trying to get the archive.php script to run with errors but I am frequenting the Maximum time exceeded errors while doing period=weeks and Fatal error: Exception thrown without a stack frame in Unknown on line 0. I have looked through the forums and added the patches as necessary but I am still getting these errors. Suggestions on the nature of the issue?

Try upgrade to 1.7 ? 301 Moved Permanently

How different is the archive.php script. Is it much different than 1.6’s archive.php script?