Preview in Safari

Hi there, I’m new here and getting started - when I first loaded Elements, I could preview but now I keep getting this a message saying that Safari can’t open the page and to try later, but this never works now..

Any help greatly appreciated!

Andy

Try Chrome instead

Have you checked you security settings? Is this address being blocked?

Thanks - I can’t see this being an issue looking at the settings

New here as well. Welcome. :^)
Could you post the error dialog?

Curious if Safari or Elements is throwing the error.
If in Safari, what is the URL?
Typically something like: http://127.0.0.1:57768/pages/starter/
where the port number varies.

bring up Terminal and try:
lsof -nP -iTCP@127.0.0.1 -sTCP:LISTEN

One of the resulting lines should look like:
php-8 2575 [yourAccount] 4u IPv4 0x41b3247da811ea84 0t0 TCP 127.0.0.1:57768 (LISTEN)

This is the process that serves the html to your browser.

1 Like

Many thanks! In terminal I receive this: lsof: illegal process ID: -iTCP@127.0.0.1

lsof: unknown -s protocol: “TCT:LISTEN”

@Andy_C There are new security settings in Safari that can affect preview… Can you confirm if the preview works in Chrome (or similar), or is it just Safari that’s affected?

@Andy_C

ah, my fault on the command line. Corrected above and here below. New to this comment system and not sure why it inserts that little ‘envelope’. This time I copied from here and tested. (wipes egg from face :^)

What Dan said is probably closer to the issue. I’m still curious which app is throwing the error, Elements or Safari?

lsof -nP -iTCP@127.0.0.1 -sTCP:LISTEN

1 Like

Hi Dan

It doesn’t work in Chrome either.

Hiya, I used your code and this is the result

Adobe\x20 1139 andrewcrowley 22u IPv4 0x6edcd20266a41f8d 0t0 TCP 127.0.0.1:15292 (LISTEN)

Adobe\x20 1139 andrewcrowley 36u IPv4 0x2fed6a1b26bd7bac 0t0 TCP 127.0.0.1:15393 (LISTEN)

Adobe\x20 1139 andrewcrowley 46u IPv4 0x9c2e78b730eff6a8 0t0 TCP 127.0.0.1:16494 (LISTEN)

php-7 1517 andrewcrowley 4u IPv4 0xb523ad67a5a47320 0t0 TCP 127.0.0.1:49323 (LISTEN)

Creative 3087 andrewcrowley 20u IPv4 0xc2c05479312be2b9 0t0 TCP 127.0.0.1:49818 (LISTEN)

Creative 3087 andrewcrowley 21u IPv4 0x406cb45c81857343 0t0 TCP 127.0.0.1:49819 (LISTEN)

Creative 3087 andrewcrowley 25u IPv4 0xe97f18bfef5f773d 0t0 TCP 127.0.0.1:45623 (LISTEN)

Creative 3087 andrewcrowley 26u IPv4 0x6bd99ddec5bb7ddb 0t0 TCP 127.0.0.1:50054 (LISTEN)

Hi @Andy_C,

Are you running any network blockers like LittleSnitch or Bitdefender? If you are, I’d try switching them all off.

If you’re not, can you try restarting your Mac and see if the Preview starts working again.

I’m sure we’ll get you back up running shortly, hang in there…

@Andy_C
A screenshot of the error dialog could be helpful.
<cmd><cntl><shift>-4
drag a rectangle, and paste here.

Regarding the output from the terminal command. The line with php-N is the background server process. Note the port number in the IP address.

To be more surgical:

  1. reboot Mac
  2. launch Elements
  3. Preview in any Browser (this launches the php-N background process)
  4. run command: lsof -nP -iTCP@127.0.0.1 -sTCP:LISTEN
  5. build your own URL with the port number with results from step #4
    http://127.0.0.1:<port_num_from_php>
  6. paste that URL into Brave, Vivaldi, and Safari, and er… Chrome

@Andy_C

My above procedure works in 1.6.3.

In Beta 2.0.0 beta 6, using the command: lsof
I haven’t figured out how to find the open port.

My motivation was to see if the issue was whether Elements had launched the server, and could any browser open the local host address 127.0.0.1:

In Beta 2.0.0 beta 6, it’s a little more complicated as I can’t find the lsof magic incantation. The following works though a little obscure.

  1. Launch Activity Monitor
  2. search for ‘php’
  3. double click the entry php-n (n=some number)
  4. click on the tab Open Files and Ports.
  5. last line has the port number

Sample reply. Your port will be different.

/Users/hainline/Library/Containers/com.realmacsoftware.rapidweaverelements/Data/tmp/RapidWeaver/39058/RWDocumentPagePreview/document-CBB11336-49FF-434B-8B75-57A9FF807259
/Applications/Elements.app/Contents/MacOS/php-8
/Library/Preferences/Logging/.plist-cache.Q01SBv04
/usr/lib/dyld
->0x4a3cdac1e59de17f
->0x77e5d1b3e543b352
->0xa2ed2a7674d82f7f
/dev/urandom
*:5363

OK, I’ll give this a try. Interestingly, if I begin a new project, the preview works perfectly..

This is what I get: /Users/andrewcrowley/Library/Containers/com.realmacsoftware.rapidweaverelements/Data/tmp/RapidWeaver/2975/RWDocumentPagePreview/document-E5ACAD92-917B-42B8-8ADE-C15F32DAA738
/Users/andrewcrowley/Desktop/Elements.app/Contents/MacOS/php-8
/Library/Preferences/Logging/.plist-cache.QK1UDwgs
/usr/lib/dyld
->0x64beb2073c95edfd
->0x6a960bca40848849
->0xc538fb817659fedd
/dev/urandom
*:50127

Can you share the project you’re having issues with via Elements Cloud? That way we can tale a look and see what’s stopping it from previewing!

Thanks Dan, I have used the upload to support, correct?

@Andy_C, I don’t think you clicked the option to include the document, so it wasn’t attached.

You could also just upload it via Elements Cloud and paste the link here.

As soon as I have the project I can take a look for you.

1 Like

I’ve attached now, sorry about that. Andy

Elements can’t export the site to preview because you’ve removed the file name from your site logo. If you give this a name “logo.jpg” your site then previews just fine.

1 Like