Posts: 29
Threads: 11
Joined: Aug 2011
Reputation:
0
Ben,
Installed 2.0.7 and just ran the test as before and all is working well. Yeah!
Correct files are being written both from single export types and grouped. Files are being written with 777 permission. Used FireFox 6.0 in this case. So looks like a good bug caught.
I will not be able to reinstate my previous code into the Export Manager templates and do more browser testing until about the same time tomorrow - its late here - but will feedback results - I am sure they will all be positive.
Thanks for the prompt attention to the problem. Sure you have loads of fish to fry.
Ted
Posts: 29
Threads: 11
Joined: Aug 2011
Reputation:
0
Ben,
Put my Export manager code back and all of the files are being generated correctly whether single export types or multiple within a group.
But, but, but but - the files I am generating are php files and once generated when I click on the "click here to view file link" I get a server error:
""The server encountered an internal error or misconfiguration and was unable to complete your request.""
Anyway after a bit of research it seems that the new 777 setting that Export Manager is applyiing to the files does not allow the php file to be run on the server.
If I manually go in and change the permissions to 755 all works well.
Would be interetsted to know what your thoughts on this are and if there would be be any way to get around it - reseting the Export Manager to 755 (?).
You're the man!
And yes, I wish I wasn't writing this post...
Ted
Posts: 29
Threads: 11
Joined: Aug 2011
Reputation:
0
Ben,
Ok I found where the permisions are set within the Export Manager. Have changed them (755) and all is well. If the current released version is working OK I am happy to look after my permissions requirement so there is no need to make a change to the module re the previous post unless you feel it benefits the mass audience.
That's all.
Thanks for your work.
Ted
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Ted,
Sorry for not getting back to you sooner on this.
Very strange that 777 isn't letting the PHP be run! That's the first time I've ever heard of that occurring - very strange indeed. Not sure if I mentioned it, but *not* setting files as 777 caused other problems with the Form Tools Core, way back in an early version of the 2.0.0 beta. So I'd updated it to set all uploaded files to 777. This has changed since, however.
Hmm.. it would be nice to make this a configurable setting. Let me give this a little thought. I may just add it as an "advanced" setting to the module.
- Ben
Posts: 4
Threads: 2
Joined: Nov 2014
Reputation:
0
RE: Export Manager File Generation
Ben,
as the topic is linked with export manger let me clarify my doubt which i encounterd, i been looking to generate a report in the form of pdf file. But it results in the 'File can not be opend or Corrupted' message when i open it. I am new to the form tools and smrty. Can you help me just to put a static 'hello world' pdf to be generated on all reports.