Unable to add images in post
-
April 14, 2021 at 5:42 am #5616
[anonymous]
Hello Friends,
Please help!
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.
——–
8 A JavaScript error occurred in the main process
Uncaught Exception:
SyntaxError. Unexpected token }n JSON at position 1222,(CAUsers\Madhur\AppData\Local\Programs\Publil\resources\app.asar\back-end\postj..:14)
at IpcMainimpl.<anonymous>
(CAUsers\Madhur\AppData\Local\Programs\Publil\resources\app.asar\back-end\event..:31)
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
April 17, 2021 at 5:33 pm #5629
[anonymous]
Hi,
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 #5631
[anonymous]
Tomasz Dziuda wrote:Hi,
Please try to go to the App Settings and change the image resize engine from “sharp” to “jimp” and then please check again.
Hello Tomasz,
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.
April 18, 2021 at 2:52 am #5634
[anonymous]
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 #5635
[anonymous]
Could you provide me a config.json file from your theme? Maybe there is a problem
April 18, 2021 at 5:20 pm #5639
[anonymous]
April 22, 2021 at 3:27 pm #5659
[anonymous]
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 #5660
[anonymous]
This reply has been marked as private.April 26, 2021 at 12:44 pm #5678
[anonymous]
Hello Tomasz,
How do you wish for me to share the project backup with you?
May 3, 2021 at 6:06 am #5714
[anonymous]
Hello Tomasz!
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!