Unable to add images in post
- This topic has 9 replies, 2 voices, and was last updated 3 days, 6 hours ago by .
- April 14, 2021 at 5:42 am #5616m.sehatvan
I am unable to add images in my posts. I have around 80 posts. Using paid editorial theme.
I have a two user setup on another computer with dropbox. I have updated publii to 0.38.1 on both computers.
it keeps stuck on loading after i select an image from browsing in my computer.
Also I get this error when i try to save the post – however i do get the post saved notification.
SyntaxError. Unexpected token }n JSON at position 1222,
at IpcMainimpl.emit (events,s:315:20)
at IpcMainimpl.EventEmitter.emit (domain s:483:12)
at Object.<anonymous> (electron/js2c/browser_initjs:157:9051)
at Object.emit (eventsjs:315:20)
‘at Object.EventEmitter.emit (domainjs483:12)
Things I have tried:
- I have tried using png and jpg.
- backup my site. install publii on a different windows user and then restore the back up. – doesnt work
You must be logged in to access attached files.April 17, 2021 at 5:33 pm #5629Tomasz Dziuda
Please try to go to the App Settings and change the image resize engine from “sharp” to “jimp” and then please check again.April 18, 2021 at 2:21 am #5631m.sehatvan
Please try to go to the App Settings and change the image resize engine from “sharp” to “jimp” and then please check again.
Thanks for the reply. I tried it but it didnt solve it.
- tried added image in gallery mode – its stuck on ‘loading’
- tried to add a single image – it’s not taking any ‘source’
- when i exit the post, i get the attached error.
You must be logged in to access attached files.April 18, 2021 at 2:52 am #5634m.sehatvan
Other things I have tried:
- opening the ‘site’ backup in version 0.37.3 (the last one on downloads page)
- resetting all the theme settings by cloning the site
but the same problem continues.
Also this error only happens with this particular ‘site’ project. all the other test ‘sites’ in publii are working alright. I am using theme override for custom css.
So my guess is the problem is somewhere in the files of this particular site.
Is there some way I can create a new site and import all the posts there? the site backup option doesnt work.April 18, 2021 at 10:53 am #5635Tomasz Dziuda
Could you provide me a config.json file from your theme? Maybe there is a problemApril 18, 2021 at 5:20 pm #5639m.sehatvan
Thanks. Will the attached file work?
5640 is from “inputthemeseditorial-override”April 22, 2021 at 3:27 pm #5659Tomasz Dziuda
It seems that this file is correct. It must be something wrong in one of the JSON files of your website.
Could you share with me a backup of your website? I suppose that it can be caused by manual changes in the files.April 22, 2021 at 3:55 pm #5660m.sehatvanThis reply has been set as private.April 26, 2021 at 12:44 pm #5678m.sehatvan
How do you wish for me to share the project backup with you?May 3, 2021 at 6:06 am #5714m.sehatvan
I was able to fix the error. Thanks for the hint! It was an extra in one of the json files. Damn! Thankfully I found it.
I wasnt using git with publii files. Lesson learnt!
First thing now i did was setup the git.
thank you and good luck!
- The topic ‘Unable to add images in post’ is closed to new replies.