OneBox not appearing... troubleshooting steps?


(Stephen Ronan) #1

On a new forum I am administering I tried posting a sentence or two together with a link that I hoped would create a OneBox popout. But it didn’t appear. Tried a couple of times with a couple of different links. Both show popups just fine when I put them in iframely. Any troubleshooting list I can go through? Here’s one of the links, on its own line with no space like in the posts I made on the site:
https://goodfoodcities.org/press-release-d-c-public-schools-to-become-first-on-east-coast-to-adopt-good-food-purchasing-program/


(Stephen Ronan) #2

And this link was used in the other failed attempt:
https://foe.org/news/friends-earth-applauds-d-c-council-increasing-healthy-sustainable-food-options-schools/


(Stephen Ronan) #3

After posting both messages I went to settings for OneBox and put a checkbox next to both of these options:
enable flash video onebox
enable inline onebox on all domains

But still no preview.


(Simon Cossar) #4

The site at https://foe.org/ is hosted by WP Engine. WP Engine blocks requests from user-agents that they are not familiar with. This prevents Discourse oneboxes from displaying for many WP Engine hosted sites.

This has come up a few times in the past. The way to get it resolved is for the owners of the WP Engine hosted site to contact WP Engine and ask them to allow the Discourse Forum Onebox User Agent. If you are an owner of https://foe.org/ it would be great if you could contact WP Engine and ask them to do this.


(Stephen Ronan) #5

Thanks! Would that also be true of the other site at goodfoodcities.org? How can I can I tell if a site is hosted by WP engine?


(Simon Cossar) #6

The site at goodfoodcities.org doesn’t appear to be hosted by WP Engine. The meta data required for creating a onebox exists on that site, but when I try to create one on a live site, the request to the website is returning 404 Not Found. On my local dev site, oneboxes for goodfoodcities.org are created without a problem. This suggests that the problem is that the Discourse Forum Onebox user-agent is being blocked.

To check if a site is hosted on WP Engine, I view the source of the page and search for ‘wpengine’.