Okay
  Public Ticket #3571048
Critical Error
Closed

Comments

  • M. started the conversation

    When I use attached word template on a wptable, I get a critical WP error message.

    When I use the same table with one of your word templates (of course my column names) it's alright. The only difference is that your template has a table in the word template.

    Am I obliged to use a table in my word template. I hope not.

    Attached files:  new-report.docx

  •  1,845
    Miloš replied

    Hello,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    1. If you do not wish to use a Table as data source for your Report, in that case, you can not use a Template with Column Placeholders as you are trying now, with the Word Template you sent us.

    In your Template, you are calling Columns and rows from a table, like :

    ${aed.all}
    ${locatie.all}
    ${code.all}
    ${opmerkingen.all}

    If you use that kind of format for your variables, in this case, you need to choose a source Table, and you also need to modify this layout for it to work.

    Please check our Guide from this page , where we show details on how you can format your variables in the DOCX Template, depending on whether you have a source Table or not and depending on which Generation logic you pick - if you need everything in a single file - or each row separated on individual files.

    Generation logic – this section is visible only if you did choose a wpDataTable data source on previous step. The selection defines whether a report builder will generate a single file for all table rows or a separate file for each table row.

    1. If you are preparing a single MS Word DOCX report for all table’s rows, you can use repeating blocks for each row instead of a table. To do this use layout like:

    ${wpDataTable.row}
    Column1: ${column1.all}
    Column2: ${column2.all}

                    …
    ${/wpDataTable.row}

    Basically, block that you want to repeat for each row must be wrapped in ${wpDataTable.row}…{/wpDataTable.row}, and the cell reference is same as for the tables – ${column.all}.

    Please note that those loops have to be in new rows.(You can not use it like this in one row)

    ${wpDataTable.row} ${column1.all} ${/wpDataTable.row}

    2. Or, If you are generating a multi-file report with a separate file for each row, reference the column values just like:

    ${column}

    Where “column” is the target column’s original header (see above).

    (*That was in case if you wish to try with a Source Table)

    - If you don't wish to use a Table, then all variables (parts that should be dynamically inserted by WordPress Report Builder) start with a dollar sign and are wrapped in curly brackets, like this:

    ${variable}

    Using this layout Report Builder distinguishes static content from the parts that should be replaced dynamically.

    - Any kind of report can use additional variables.

     You can define any number of additional variables at the moment of report creation, and reference them in the template. 

    Please note if a variable will not be found in the incoming data, it is going to stay as is in the generated template: e.g. if you use ${myvar} variable in the template, but do not define it on WordPress site, it is going to stay ${myvar} in the generated reports.

    - All reports can use default pre-defined variables (username, today’s date, etc.). 

    See the full list here.

    Let me know if that helps, or if you still encounter any issues.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • M. replied

    Hello Miloš,

    I use a table (wpdatatable) as a source. That is not te problem. When I use a template that only has fields with a reference to this table, like ${AED} (which is the name of a column in the table), the report shows "${AED}" and not the value in the table. When I try ${AED.all} I get the attached message in Dutch which says: "There was a critical fault on this site. More information on a solution in Wordpress". There's my problem.

    Attached files:  critical fault.png

  •  2,572
    Aleksandar replied

    Hello there.

    This tends to happen for a few reasons. Please check the wpDataTables system info section:

    8410857690.png

    Check if there's anything listed as either not installed or requiring an update. The most common issue is the Zip extension. If that's the case, please contact your hosting provider to update or install it for you.

    If you don't see any issues here, Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we can log in and take a look ‘from the inside’ as that’s the most efficient way to see, and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables