Aspose.Words Wordpress plugin doesn’t automatically convert posts to docx in the background. The issue started somewhere this month.
Can you please provide more details about the specific error message or behavior you are experiencing with the Aspose.Words WordPress plugin?
plugin version 6.3.1
In the plugin settings i use convert to .docx with Custom fields and Background exports, but the exports ceased to appear sometime in the last few weeks.
I will contact the responsible developer to get more details.
The issue seems to be not only with background generation. While performing a custom wordpress action, a file is supposed to be generated, and then a user is redirected to the download link. However this also stopped working on my site, when redirect is performed i get a site with only 0 displayed (meaning there is no file to download). Maybe the API returns an empty response? If there was no response at all i guess it would wait for a timeout and then return an error in wordpress backend, but i don’t see no error in debug logs.
use AsposeWords\ExportEngine;
function categories_export()
{
if (!check_ajax_referer('categories_nonce')) {
redirect_home();
exit('unauthorised request');
} else {
$ids_array = json_decode($_GET['ids']);
$link = exportAspose($ids_array);
}
echo $link;
wp_redirect($link);
exit();
}
function exportAspose($id)
{
$e = new ExportEngine($id);
try {
$e->convertToHtml();
$e->convert();
$e->copyConvertedFileTo($e->getPath());
$e->autoclean();
} catch (GuzzleHttp\Exception\ClientException $x) {
$err = json_decode($x->getResponse()->getBody(true));
wp_die($err);
} catch (GuzzleHttp\Exception\ServerException $x) {
$err = json_decode($x->getResponse()->getBody(true));
wp_die($err);
} catch (Exception $x) {
wp_die($x);
}
return $e->getExportedFileUrl();
}
Thanks for sharing more information. I asked the developer to share the status.