iFrame code not loading

I am using the following code to publish a HTML5 document, but nothing is previewing on the page.

Code:

<iframe src="http://foursquaremissionspress.org/wp-content/uploads/pubs/co" width="612" height="792"><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span></iframe>

X Theme Page on site:

What am I missing? I have tried placing the code in the context box in Cornerstone and also tried placing it in the text tab on the page (when editing)

Hi there,

The page that you are trying to display on the iFrame doesn’t see to exist:

http://www.foursquaremissionspress.org/wp-content/uploads/pubs/co

Kindly make sure you are embedding the correct page.

I have checked and I don’t see what is missing in the link. From Filezilla, I have copied the link to the directory.
sftp://pressadmin@foursquaremissionspress.org/var/www/html/wordpress/wp-content/pubs/co

I have created similar iframe codes on other websites I manage. But the site I am having an issue is this one with X Theme.

Hi There,

If you go to the iFrame URL, you should be able to see content. In your case, the link is incorrect. Can you try adding your page to a subdomain or different path of your server and see whether you can load the content first, so that you can use it in your iFrame.

Thanks!

Thanks, but I am still puzzled. I have the same sample file on two sites. The one that uses X Theme is not working.

Works
https://www.cgbox.org/wp-content/uploads/other/bush

Does not work
http://www.foursquaremissionspress.org/wp-content/uploads/other/bush

I am asking all over the place to find a resolution.

Hello There,

Please make sure that you have the same files in the directory or that all the files existed in the directory. You can easily compare it by logging in to your ftp and browse into that folders.

Kindly let us know how it goes.

Yes, I copied the same folder into both directories, as a test. And it does not work on the site with X Theme.

Hi,

Try adding a text file in your directory and see if you can access it from the url.

http://www.foursquaremissionspress.org/wp-content/uploads/other/bush/test.txt

If that doesn’t help, please provide ftp login in secure note.

Thanks

Yes, I can create a test.txt file at the following URL using the directory.
http://www.foursquaremissionspress.org/wordpress/wp-content/uploads/other/bush/test.txt

But still, I am unable to view the HTML publication at this same directory. It is unresponsive.
http://www.foursquaremissionspress.org/wordpress/wp-content/uploads/other/bush

I have the exact, same sample HTML publication on another website and is working fine.
https://www.cgbox.org/wp-content/uploads/other/bush

Hi There,

It might be the permission issue.

Could you please change the folder permission to 755 or 750 and the files to 644 or 640?

https://codex.wordpress.org/Changing_File_Permissions

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.