[Bug report] An error occurred during rendering process: "undefined" is not valid JSON #1419
-
Operating systemWindows 10 Publii version0.45.1 (build 16608) Issue typeApplication Bug descriptionHi, I can't sync my websites after upgrading to version 0.45.1 (build 16608)
Upgraded from 0.44.x as far as I remember. Any help? Steps to reproduceNo response Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 26 replies
-
Hi, Do you have anything under Tools -> Log Viewer for rendering-errors.log and rendering-process.log? |
Beta Was this translation helpful? Give feedback.
-
Just for info / reference, I was getting exactly the same issue on one website after upgrading to Publii 0.45.1 (build 16608) and displays the same error message when Previewing the local site. The rendering-process -related logs don't seem to show any problems (or are empty). I'm using Apple macOS operating system, latest Sonoma version at the time of writing. The site uses the latest Publii Art Gallery theme. Let's call this Site1. However, if I create a new 'clean' test site using the same version of Art Gallery theme, and then Preview the site, there are no errors: it all works as it should. Let's call this Site2. So ... yes, a bit weird. If a new, 'clean' website doesn't display this problem does that suggest the source problem is not a bug? Maybe the latest Publii version is more stringent in its checks compared to previous versions? I haven't yet had time to check out the Site1 website above, but I will asap. Site1 above does have theme overrides, Site2 does not have any theme overrides. So maybe that's a clue. I'll get back if I find anything new -- if the Publii dev wizards or anyone else hasn't already come up with a fix. |
Beta Was this translation helpful? Give feedback.
-
Checking logs, this is what I found new: rendering-errors.log
|
Beta Was this translation helpful? Give feedback.
-
Ok, downloaded Feather Icons plugin. Generating preview now throws this error Enabling plugin: same error |
Beta Was this translation helpful? Give feedback.
-
Same issue for me after upgrading, but not for all my websites |
Beta Was this translation helpful? Give feedback.
-
I haven't install this plugin. |
Beta Was this translation helpful? Give feedback.
-
Hi all, Have finally resolved the problem on this one Publii site that originally had this error message and which stopped the website from rendering in Publii. I temporarily replaced the existing db.sqlite with a known good / working test site db.sqlite that used the same theme, and then chose 'Preview your changes' button to preview the site. This worked: the site rendered normally. So that was my first clue. Next after reversing the db.sqlite change, I opened the Publii site and started looking at the content. After a while, I deleted all the draft pages and tested 'Preview ...' again. This worked: the site generation worked flawlessly. So in my instance, the problem seemed to be with one or more draft pages in Publii. After some more checking I found that if I deleted a specific 62 draft pages, 'Preview ...' and therefore rendering worked flawlessly, and of course the error message disappeared. Another test proved that the solution wasn't anything to do with just deleting any 62 draft pages: I had to delete specific pages. It turns out those were 3 groups of pages, each group had a kind of main index page and on each of their sub-pages I would just insert a 'Forward' and 'Back' links, that just provided a quick way for users to cycle through the sequence. All the changes were originally done in Publii. As far as I can tell, there was no extra code, javascript, etc., on these 62 pages: just all standard pages created within the previous versions of Publii. Plus, no problems with these 62 draft web pages on previous versions of Publii. So ... yes, a bizarre one. :-) Hope my experience helps others to resolve their problem too. PS: when I say 'delete' above, that means move the pages to the trash and then fully empty the trash in Publii. Just sending the 62 pages to the Publii Trash bin is not enough: they have to be fully deleted / empty the Trash bin to get Publii to update the db.sqlite database. PPS: update: even though the local site Previews okay and navigation appears to work normally, in the rendering-process.log, lots of pages (maybe all active pages) appear to show the same errors. Example from one page shown below: ERR SqliteError: no such column: [Title of page here - changed for privacy purposes] |
Beta Was this translation helpful? Give feedback.
-
When creating a new website using Publii version: 0.45.1 (build 16608), on latest Apple macOS (Sonoma 14.3.1), using the latest Art Gallery theme v1.9.0.0, although this test site of 8 Publii pages appears to render, so can be Previewed locally, and navigated normally, in the Publii Log Viewer, the rendering-errors.log shows: marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting The rendering-process.log looks okay (= no obvious problems), ditto for rendering-deployment-process.log though it appears to show 3 oddities: (i) Non-existing link: posts (185) |
Beta Was this translation helpful? Give feedback.
-
I think I got it! This happens specifically when a tag that was already set as the main tag in a post is removed. Guys, have you all removed the tag/s or is this just one possible reason? |
Beta Was this translation helpful? Give feedback.
-
In my instance Bob, no tags have been removed or changed, and no other changes made other than just upgrading Publii to the latest version, currently: 0.45.1 (build 16608) from the previous version: 0.44.4 (build 16557). Upgrading Publii seemed to be enough to trigger this 'unable to render' / Preview this particular site and display the stated error message. |
Beta Was this translation helpful? Give feedback.
-
I just encountered exactly the same error while running version 0.45.1 (build 16608), there's nothing useful in any of the log files and no errors on the developer console either. My blog is based on the Editorial-2 theme, I don't use any plugins and it's a relatively small blog (~100 MB uncompressed), @dziudek please let me know if you want me to send you an archive for further investigation. |
Beta Was this translation helpful? Give feedback.
-
@bobmitro @dziudek , and others Further information which may be helpful in finding the cause of this weird fault, when the problem happens on this Publii website that uses Art Gallery theme, when I check the rendering-process.log , as shown below, the rendering progress seems to stop, either at rendering 'content data' below, or it completes rendering 'content data', but is unable to complete the next stage of rendering, which in a normally working system would be 'common data'. CONFIG: 25.984ms |
Beta Was this translation helpful? Give feedback.
-
@internettips - it is for 100% related to removed main tags - that's why it stops after generating content data. It is connected with this line: c1969f1#diff-5b4a16da348a2a2554b48cc82f66229faec305cc592e51e14dca16177ff3a0a1R231 Hot fix is in progress. |
Beta Was this translation helpful? Give feedback.
-
FYI: Publii v.0.45.2 released and ready for download. |
Beta Was this translation helpful? Give feedback.
-
It works now ! Many thanks ! |
Beta Was this translation helpful? Give feedback.
-
Installed new version 0.45.2, getting new error
Installed and enabled plugin Dusqus, same error persists |
Beta Was this translation helpful? Give feedback.
FYI: Publii v.0.45.2 released and ready for download.