Hi there,
I am having trouble getting prince to read from a network share on our test servers which have the same setup and code that works on our production servers. However they were created a year or two apart so there could well be subtle differences that we have missed.
The error PrinceXML gives us is:
:evil: msg|wrn||failed to load external entity
We are using:
:arrow: Windows Server 2003
:arrow: IIS 6.0
:arrow: PHP 5.2.6
:arrow: ZendCore 2.5.2
:arrow: PrinceXML 5.1
on all environments, the only real difference is that the production servers have PrinceXML licences and the test servers are using the default demo licence with the watermaked page.
In our setup PHP generates the prince command line string with all the necessary parameters, input and output files to generate a PDF using the prince php class. Using this PrinceXML reads the specified files from a windows network share, processes and creates the specified PDF which is written back to the same network share.
We can run this setup without issue and the PDF is created successfully on our production environment and with PrinceXML directly, logged in as the named IIS User (a domain account), with the string generated by the PHP code. However when we use the PHP Prince class (which uses proc_open) we get the message saying that it "failed to load external entity" on the first source file and no PDF is generated.
The Windows network share is setup with the same permissions as our production environment and the named IIS user has permissions on CMD.exe and prince.exe on the local machine, prince.exe is also in the path on that machine.
Does anyone have any ideas what could be causing this issue on our test environment but not our production environment?
Thanks in advance.
Matt.
I am having trouble getting prince to read from a network share on our test servers which have the same setup and code that works on our production servers. However they were created a year or two apart so there could well be subtle differences that we have missed.
The error PrinceXML gives us is:
:evil: msg|wrn||failed to load external entity
We are using:
:arrow: Windows Server 2003
:arrow: IIS 6.0
:arrow: PHP 5.2.6
:arrow: ZendCore 2.5.2
:arrow: PrinceXML 5.1
on all environments, the only real difference is that the production servers have PrinceXML licences and the test servers are using the default demo licence with the watermaked page.
In our setup PHP generates the prince command line string with all the necessary parameters, input and output files to generate a PDF using the prince php class. Using this PrinceXML reads the specified files from a windows network share, processes and creates the specified PDF which is written back to the same network share.
We can run this setup without issue and the PDF is created successfully on our production environment and with PrinceXML directly, logged in as the named IIS User (a domain account), with the string generated by the PHP code. However when we use the PHP Prince class (which uses proc_open) we get the message saying that it "failed to load external entity" on the first source file and no PDF is generated.
The Windows network share is setup with the same permissions as our production environment and the named IIS user has permissions on CMD.exe and prince.exe on the local machine, prince.exe is also in the path on that machine.
Does anyone have any ideas what could be causing this issue on our test environment but not our production environment?
Thanks in advance.
Matt.