Sign in

New install on machine resulting in “Javascript Error in main process”

  • This topic has 5 replies, 2 voices, and was last updated 9 months, 1 week ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6960
    Avatar photoRedBeeCC

    I decided to do a clean install of publii after experiencing various problems. I was successfully able to install it on a different machine so went back to my original one. I’m running Windows 10, 64 bit version.

    I uninstalled and erased files/folders from:

    • my documents folder
    • C:\Users\clarkc11\AppData\Local
    • C:\Users\clarkc11\AppData\Roaming

    then did a search for any files including “publii” and erased those as well.

    Restarted machine.

    Downloaded Publii-0.38.3.exe and installed. Got the following error:

    A JavaScript error occurred in the main process
    Uncaught E\ception:
    Error: UNKNOWN: unknown error, stat
    '\\redbeemedia.net\ukuserdata\Home.WCS\clarkcH\Personal\Publii\themes\simple1 at statSync (fs.js:1020:3)
    at Object.e.statSync (electron/js2c/asar_bundle.js:5:4264) at Object.statSync
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:34) at getStatsSync
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:21) at Object.checkPathsSync
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:33) at copyDirltem
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:29)
    at
    C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\fs...:39 at Array.forEach (<anonymous>) at copyDir
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:23) at onDir
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:10) at getStats
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:37) at startCopy
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:10) at handleFilterAndCopy
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:10) at Object.copySync
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\node_modules\...:10) at App.checkDirs
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\back-end\app.js:94:... at new App
    (C:\Users\clarkc11\AppData\Local\Programs\Publii\resources\app.asar\back-end\app.js:60:...

    I’ve checked other threads and things that have not worked are:

    • unticking option to create desktop shortcut on install (option does not exist)
    • uninstall/reinstall as above

    I’ve tried several times and it seems to always dislike something about the theme???

    Please help.

     

    C.

    #6961
    Avatar photoRedBeeCC

    I’ve managed to get it to install without a javascript error by running the installation whilst connected to my work network. Now I can’t restore my sites. I have the back up file in the backup directory, backup directory path is set in the app settings, I go to tools, back up, click restore and nothing happens. The restore button is greyed out and there’s a swirling circle in the top right as if something is happening, but that’s how it stays. My site is only 8MB so it normally only takes a few seconds. Now it’s been over ten minutes. Other actions are still firing javascript errors.

     

    Help, please!

    #6962
    Avatar photoBob

    Unzip the backup file e.g. MY_SITE-02-18-2022-14-25-41.zip and move the MY_SITE folder to the following location: ‎⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME)

    Run the app. I hope it will help.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6969
    Avatar photoRedBeeCC

    Thanks, Bob.

    The back up file is a .tar – when I unzip it, I end up with a file folder named exactly as the original tar file.

    When I try to move the file folder to the folder you suggest, there is no input folder. The YOUR SITE folder is empty.

    Am I doing something wrong?

    #6970
    Avatar photoBob

    when I unzip it, I end up with a file folder named exactly as the original tar file

    Rename the unzipped folder, truncating anything that is not your site’s name, for example, the my_site-02-18-2022-14-25-41 folder to my_site .

    Now copy this folder to the following location:  Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩
    Run the app.

    PS: my fault, I showed you the wrong path in the reply above (I used a canned reply :))

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6971
    Avatar photoRedBeeCC

    Thanks, Bob. I think we’re getting there! I’ve managed to restore the first site without Javascript errors.

    One problem persists – when I click preview changes, I get an error:

    <hr />

    Rendering process failed
    An error occurred during rendering process:

    EEXIST: file already exists, mkdir ‘\\redbeemedia.net\ukuserdata\Home_WC$\clarkc11\Personal\Publii\sites\vault-help-external\preview\tags\re-open’

    <hr />

    And when the preview opens, the content is not properly rendered.

    The published version displays just fine.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.