XLS Export Path in Wordpress

Neuhaus 08 Mar, 2016
Hi, I am using the action XLS Export in Wordpress.


For Save Path it says:
The server path under which the file will be saved, or leave it empty to save under the default path: components/com_chronoforms5/chronoforms/exports/

-> this does not exist in WP. What is the Place in WP?

I could not manage to set up my own.
GreyHead 08 Mar, 2016
Hi Neuhaus,

You can specify any convenient folder path - but it needs to be a full path like /my_account/public_html/wp/chronoforms5/exports/ and the folder needs to be writeable.

Bob
Neuhaus 18 Apr, 2016
Hi GreyHead,

It was not working until I placed an index.html file in the folder I created. With this file it is saving now.


Is there a basic data path entry for form data (not sub array)? Fo if I leave "Data Path" empty it results in:

Warning: array_keys() expects parameter 1 to be array, string given in /var/www/vhosts/XXXXXXXXXXXXX/wp-content/plugins/chronoforms/admin/chronoforms/actions/xls_export/xls_export.php on line 40

and empty file is saved.
GreyHead 18 Apr, 2016
Hi Neuhaus,

Thanks for the update on the index.html file.

I don't have a WP test site with CF installed at present. I would expect the export to work without a path, though you might need to suppress PHP warnings. Alternatively as a workaround you can add a Custom Code element with code like this
<?php
$form->data['xxx'] = $form->data;
?>
the use xxx as the path. Not ideal but it should work OK.

Bob
This topic is locked and no more replies can be posted.