Site preview error

the site i was building was working fine and suddenly now when i try the preview option it’s not working with the following types of error code:

Notice: fread(): Read of 8192 bytes failed with errno=21 Is a directory in **/private/var/folders/sd/rxfnt7jd1y7fp0s7cb5_9r440000gn/T/AppTranslo

Notice**: fread(): Read of 8192 bytes failed with errno=21 Is a directory in **/private/var/folders/sd/rxfnt7jd1y7fp0s7cb5_9r440000gn/T/AppTranslo

and trying to preview the home page just gives me
”safari can’t open the page”

I hope I haven’t lost everything I’d done, i’d basically finished :-(**

I’m now getting this message when I try to preview the home page:
Notice: fread(): Read of 8192 bytes failed with errno=21 Is a directory in /private/var/folders/sd/rxfnt7jd1y7fp0s7cb5_9r440000gn/T/AppTranslocation/568D233A-7E96-4CC4-A24F-DA89AF145EA3/d/Elements-3.app/Contents/Resources/RWWebServerLaunch.php on line 254

Can you try restarting your Mac, that should fix the issue for you.

Let me know how you get on.

P.S. Don’t worry, you won’t have lost anything in your project.

thx Dan, I’ve just restarted but it’s giving me the same error messages

Can you share your project with us via Elements Cloud? Post the link here and we’ll check your project for you!

Thx very much, I’ve uploaded and I think this is the link below:

elementsapp://downloadDocument/rpYFFrgpg8oT

This isn’t usually a problem, but it seems because you don’t have a web address set in the project settings it’s not rendering correctly in Preview :grimacing:

Add a web address and preview will start working again.

Let me know if that fixes the issue for you, (it did here), and we’ll get this properly fixed in a future build of Elements!

P.S. I’d also recommend resizing/optimising your images before adding them to the project, this will keep your project smaller, and make your website (and preview) load much faster!

I noticed some of your images were over 7MB! Large images should still be well under 1MB (ideally).

yes, great thank you very much, that has worked, pheww

and thanks for the tip, I definitely need to re-size those pictures.

Any other tips gladly accepted :slight_smile:

1 Like

Glad it’s all back working now :smiling_face:

Sites looking great btw, be sure to post it in the Built with Elements category once it goes live!