This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Error on excel or csv export
Started 16 years ago by jhansen | 6 posts |
-
I installed machform on my site. Everything is going well, but when I try to export entries to xls or csv i get the following error:
Warning: main(Spreadsheet/Excel/Writer.php) [function.main]: failed to open stream: No such file or directory in /membri2/valdesiamessina/form/export_entries.php on line 138
Fatal error: main() [function.require]: Failed opening required 'Spreadsheet/Excel/Writer.php' (include_path='.:') in /membri2/valdesiamessina/form/export_entries.php on line 138
for xls and for csv:
Warning: main(Compat/Function/fputcsv.php) [function.main]: failed to open stream: No such file or directory in /membri2/valdesiamessina/form/export_entries.php on line 168
Fatal error: main() [function.require]: Failed opening required 'Compat/Function/fputcsv.php' (include_path='.:') in /membri2/valdesiamessina/form/export_entries.php on line 168
I also installed on my home-pc which is a full server and i tried there without problems. What do i have to do?
Jens HansenPosted 16 years ago # -
Hi Jens,
It seems your "export_entries.php" file is missing from machform folder, try to re-upload that file in this folder :
/membri2/valdesiamessina/form/
Or maybe you can re-upload all machform files, to make sure your machform work properly
MachForm Support
Posted 16 years ago # -
Hi
I have just recopied all the files to be shure that there are all files and i controlled the presence of export_entries.php. All files are present, but the error remains.
Jens HansenPosted 16 years ago # -
Ok, so here is the problem, at the beginning of export_entries.php file, machform execute this code:
ini_set("include_path", './lib/pear/'.PATH_SEPARATOR.ini_get("include_path"));
which set the include path for all excel library files.
Apparently, your server doesn't allow this, hence the error.
To fix it, you need to modify your php.ini file or .htaccess file and set the include_path setting to use "./lib/pear/" path.If you are having difficulty, please contact us directly.
Mail to: customer.service [at] appnitro.comIf possible, let us know your FTP login info so we can help you directly.
MachForm Founder
Posted 16 years ago # -
the problem is, that i don't have influenze on that files. Is there a way to change the machform files to include the path?
Posted 16 years ago # -
Yes, it is possible, but it would require modification on all files under your "machform/lib" folder.
Please send us an email to: customer.service [at] appnitro.com
I'll send you the modifications.MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.