575 views

Description

When starting to print a page, it returns "Export failed. An unexpected error has occurred. Please see the instance logs for more details".

The localhost shows the error "Exit with code 1 due to network error: ContentNotFoundError: no thrown error"

Steps to Reproduce

 

  1. Ensure that the Webkit HTML to PDF plugin is activated.

    For more information, see the documentation topic Activate a plugin.

  2. Login/Impersonate Demo or a user existing on the system (maint will not work on some cases).

  3. Check the homepage can print correctly using the Export to PDF () button.

  4. Create a new global UI Script with the following code:

    --script----
    //Setup the event listener
    document.addEventListener("DOMContentLoaded", function(event) {
    jQuery("head link[rel='stylesheet']").last().after(
    '<link href="3ac5cdc12bd8c60052ec3ea3b4da1509.cssdbx?" rel="stylesheet" type="text/css" />'
    );
    });
    --script----

     

    UI script

  5. Try to print the homepage using the Export to PDF button.

    Export fails with "Export failed. An unexpected error has occurred. Please see the instance logs for more details"

    The localhost shows: "Exit with code 1 due to network error: "ContentNotFoundError: no thrown error".

    NOTE: The browser will show a call HTTP 404: Not found to /3ac5cdc12bd8c60052ec3ea3b4da1509.cssdbx

    error on the page loaded

Workaround

To print homepages using Export to PDF, fix and/or remove a broken link from your home pages, for example, deactivate the UI script loading the missing CSS style sheet.

 

 

 


Related Problem: PRB1073171

Seen In

Istanbul

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-07-10 08:48:52
Published:2017-07-19