I am not sure I understand you, sorry!
You say your script rewrite the link to a full url, but my errorlog tells me that after I installed PPC I get error messages as described.
I have installed PPP on the same server, and that does not generate those error messages.
Isn't it most likely that there is a litle bug in one of the PPC files?
here are the last lines of the error.log
Content visible to verified customers only.