Forums

Backup to Excel uses /tmp instead of $tmp_path

cmosses 12 Sep, 2008
Hello, I am running ChronoForms 3.0 beta 2 on Joomla 1.5.6.

I have a form that is connected to a table. I have submitted the form one time and seen that there is a record in the table now. Then in Forms Management I click on the table name in the list. Then I click Backup to Excel. A file is generated and opened by Excel, but Excel says it's not the correct format, and the contents are:

<b>Warning</b>: tmpfile() [<a href='function.tmpfile'>function.tmpfile</a>]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/webdisk/webdata/kunder/sundvikar) in <b>/webdisk/webdata/kunder/sundvikar/htdocs/administrator/components/com_chronocontact/excelwriter/Writer/Worksheet.php</b> on line <b>477</b><br />

<b>Warning</b>: tempnam() [<a href='function.tempnam'>function.tempnam</a>]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/webdisk/webdata/kunder/sundvikar) in <b>/webdisk/webdata/kunder/sundvikar/htdocs/administrator/components/com_chronocontact/excelwriter/PPS/File.php</b> on line <b>87</b><br />

If I try to Backup to CSV then it seems to work.

Now, I understand the error, but I think it may be considered a bug that Chrono Forms tries to use /tmp, instead of the Joomla $tmp_path variable which I can control. What do you think?

Thanks.
Max_admin 12 Sep, 2008
Hi,

the excel export is a PEAR library, it uses its own paths, I believe it has an issue with the open_basedir yes, try to google it, I think that you has some open basedir setting which needs to be fixed, nothing to do with Chronoforms at all.

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cmosses 12 Sep, 2008
Hi Max,

That is unfortunate because my hoster says the basedir setting cannot be changed for a shared server. Well, it seems that CSV works, that should be enough...

Thanks
Max_admin 12 Sep, 2008
thats why we added CSV🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cmosses 12 Sep, 2008
OK, works for me🙂
Max_admin 12 Sep, 2008
have you found a solution to the other danish characters issue ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.