Spinning Wheel Instead Of Content

Had an issue with the white label license not working.

Updated to latest version and now my clients when viewing the job on the portal see a spinning black and red circle.

Any Ideas?

Hi,

Are there any errors in the browser console or in storage/logs?

Theres a lot of code in the log!!!

[2023-09-29 16:44:30] production.INFO: https://[REDACTED]3?phantomjs_secret=[Redacted]
[2023-09-29 16:44:32] production.INFO:

@import url(https://fonts.googleapis.com/css2?family=Open+Sans&display=swap);
:root {
    --primary-color: #7e1717;
    --secondary-color: #9e9e9e;
    --line-height: 1.6;
}

html {
    width: 210mm;
    height: 200mm;     
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: Open Sans, Helvetica, sans-serif;
    font-size: "16px !important;";
    zoom: 80%;
}

@page {
    margin-left: 6.35mm;
    margin-right: 6.35mm;
    margin-top: 0;
    margin-bottom: 0;
    size: letter portrait;

CONTINUES

<p>Net</p>
<p>$4,348.50</p>
<p></p>
<p>$0.00</p>
<p></p>
<p>$0.00</p>
<p></p>
<p>$0.00</p>
<p></p>
<p>$0.00</p>
<p>HST 13%</p>
<p>$565.31</p>
<p>Total</p>
<p>$4,913.81</p>
<p>Paid to Date</p>
<p>$2,916.00</p>
<p>Balance Due</p>
<p>$1,997.81</p>

Thank You For Your Business

    <script>
        // Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
        document.addEventListener('DOMContentLoaded', () => {
            let tables = [
                'product-table', 'task-table', 'delivery-note-table',
                'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
                'statement-invoice-table-totals', 'statement-payment-table-totals', 'statement-aging-table',
                'client-details','vendor-details'
            ];

            tables.forEach((tableIdentifier) => {
                console.log(document.getElementById(tableIdentifier));

                document.getElementById(tableIdentifier)?.childElementCount === 0
                    ? document.getElementById(tableIdentifier).style.setProperty('display', 'none', 'important')
                    : '';
            });
        });
    </script>

It goes on and on lots of code on every entry starting from the day we updated the app from ver v5.5.89-C109 to version v5.7.11-A123

Looks like the content that is supposed load in browser is ending up in the Log.

Are there any errors in the browser console?

@david may have some suggestions.

Console:

SessionStore: The session file is invalid: TypeError: state.windows[0] is undefined SessionStore.sys.mjs:1229:19

initSession resource:///modules/sessionstore/SessionStore.sys.mjs:1229

onBeforeBrowserWindowShown resource:///modules/sessionstore/SessionStore.sys.mjs:2187

Also keep in mind this is the same installation that wont load logos in the pdf- logos show as broken links- they may be unrelated issues.

Is the PDF viewable from the admin side?

yes- this affects the client portal only

Try running in pivate mode = without any browser, if any, addons turned on.

Yup. If i open incognito tab, and retry the link it loads the content.

So is this a stale session thing? How do we fix this. This was not an issue before at all.

Multiple clients complaining abt this.

1 Like

I would try to update the app first to the latest, they are pushing updates constantly, current is v5.7.27-C125 I think.
But if it works in incognito - I would investigate the browser, first shut off extensions one by one, it is possible that some AdBlock or other popular extension got a weird record in the block list or something along the lines.

Check the browser console when viewing that page. are there any errors there?

1 Like

Console:

SessionStore: The session file is invalid: TypeError: state.windows[0] is undefined SessionStore.sys.mjs:1229:19

initSession resource:///modules/sessionstore/SessionStore.sys.mjs:1229

onBeforeBrowserWindowShown resource:///modules/sessionstore/SessionStore.sys.mjs:2187

This is not practical, I can’t go over this with every client who cant see their PDF.

@david I understand this may not be a priority, but sincerely, with every update I seem to lose basic functionality.

First My logos, then issues whitelabeling and now clients cant see their PDFs.

I replied with the session errors that were already posted previous, at this point I need some direction.

The console log is not showing any meaningful errors.

If you are seeing widespread errors with logos etc, then the most likely cause is the system is unable to resolve the paths to the logo files used for the PDF generation.

What are these paths and where can I hack this to display the logo.
tell me more about what files control the company logo being inserted?

I think this is an issue running this in a folder, but its new cause last year I didnt have any issues with the logo not appearing

what did you guys change that would make running in a folder problematic?

how can I debug this??

running now v5.7.33-C125