Closed qomhmd closed 1 year ago
having too many includes is only way you can get this error.
Dear @canewsin
having too many includes is only way you can get this error.
I removed almost all files from the directory and the data.json
, by base64 encoding and embedding; however, other problems and errors persist.
@qomhmd IMBW but one can loose track of which errors do you mean, that is why it is handy to keep these mentioned in original posts(OP)/first post of this issue for example or link to a log file that you uploaded (i am usually using expired paste at https://bin.disroot.org/) where i exclude unrelated lines so developer spend less time. Also your post is missing ZNX version number and operating system, python version. BTW. after changes in site file/s are signed, i may restart ZN.
@slrslr Thank you for your recommendation. I don't know yet whether the log file encompasses any errors, or I am supposed to check the browser console also. Nothing resolved after restarting ZN. Now is it better to edit the OP or start a new issue?
@qomhmd try checking next_post_id in data.json, sometimes this causes issue to not add new post.
@qomhmd try checking next_post_id in data.json, sometimes this causes issue to not add new post.
The id was correct beforehand; my last post_id
is 449 and the next_post_id
is 500.
May the problem be related to the discrepency of post_id
s and date_published
between posts? For instance there are:
id = 449
and time = 1660491060
, andid = 448
and time =1662049200
(as it was the modified date in the previous blogging system).
As you see the id1 > id2
but the time1 < time2
.This log is selected from the original log file while ZeroNet was working in the offline mode, for a period following:
[ZeroBlog] Unknown command
).It seems that the culprit is adding images to the posts using markdown which would prevent us from adding new posts; if one deletes the related content, the functionality returns!
Edited: I reduced the number of includes by base64 encoding and embedding most of the pictures into
data.json
. But the other problems persist.I should mention that I have added posts to
data/content.json
manually.Nothing is shown after I click on the "add a new post" button but in browser console:
When I edit an existing post:
Meanwhile, my browser console says:Also, after some lines about loading image file: