Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
iframe not working correctly after https change https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4385 |
Page 1 of 1 |
Author: | xega [ 27. Jul 2017, 04:50 ] |
Post subject: | iframe not working correctly after https change |
Hi I really hope you can help. My website is: https://www.legstadaleit.hafdal.dk After some certificate issues (expired certificate) with my hosting provider, they now say everything is working correctly (no warning anymore). However, I am getting a 404 error on every item that is using the advanced iframe. My code is Code: [advanced_iframe securitykey="696a4ef4b85baxxxxxx5446cd18393" use_shortcode_attributes_only="true" src="https://www.hafdal.dk/tng/cemeteries.php?page={query-page}" width="100%" height="800" scrolling="auto" id="legstadaleit1" name="legstadaleit" map_parameter_to_url="page" add_iframe_url_as_param="same" resize_on_ajax_jquery="false" ] Can you see what might be wrong???? Thanks in advance Rakel |
Author: | TinyWebGallery [ 27. Jul 2017, 12:48 ] |
Post subject: | Re: iframe not working correctly after https change |
Can you please update to 7.5 first and test again? I have make a https fix for add_iframe_url. Make sure you don't use old bookmarks! 7.5 also covers this for some special cases.... Best, Michael |
Author: | xega [ 27. Jul 2017, 16:14 ] |
Post subject: | Re: iframe not working correctly after https change |
I have now updated and there is still an issue. |
Author: | TinyWebGallery [ 27. Jul 2017, 16:40 ] |
Post subject: | Re: iframe not working correctly after https change |
You mean the links inside the map? How do they get there? Best, Michael |
Author: | xega [ 27. Jul 2017, 18:57 ] |
Post subject: | Re: iframe not working correctly after https change |
If you look at f.ex the menupoint "Database" and under that "View database", that links to a page called "Database" and on that page there is this code: Code: [advanced_iframe securitykey="696a4exxxxxxxx5446cd18393" use_shortcode_attributes_only="true" src="https://www.hafdal.dk/tng/cemeteries.php?page={query-page}" width="100%" height="800" scrolling="auto" id="legstadaleit1" name="legstadaleit" map_parameter_to_url="page" add_iframe_url_as_param="same" resize_on_ajax_jquery="false" ] Before, when I clicked on "View Database", the page "https://www.hafdal.dk/tng/cemeteries.php" would show in an iframe. Now it just gives me a 404 error. When I was having issues with my hosting provider (certificate expired) asked me to add Code: define('WP_HOME','https://www.legstadaleit.hafdal.dk'); define('WP_SITEURL','https://www.legstadaleit.hafdal.dk'); to the file wp-config.php I don't that is causing this issue, but just wanted to mention it. Best regards Rakel |
Author: | xega [ 27. Jul 2017, 19:01 ] |
Post subject: | Re: iframe not working correctly after https change |
I just tested what would happen if I went directly to https://www.hafdal.dk/tng/cemeteries.php (which is the content of the iframe)- and now when it gets forwarded to the WP page with an iframe, that has the url: https://www.hafdal.dk/legstadaleit/gagnagrunnur/?lang=is&page=https%3A//www.hafdal.dk/tng/cemeteries.php& Does that look correct? |
Author: | TinyWebGallery [ 27. Jul 2017, 21:08 ] |
Post subject: | Re: iframe not working correctly after https change |
If I go to https://www.legstadaleit.hafdal.dk/database/ there is a 404. Not sure what the iframe has to do with this. But on your google maps I see: Go to... with e.g. http://www.hafdal.dk/legstadaleit/database/?page=www.hafdal.dk%2Ftng%2Fshowmap.php%3FcemeteryID%3D21%26tree%3DTree2 and there page=www - there is not https. You could add the https there OR src="https://www.hafdal.dk/tng/cemeteries.php?page=https://{query-page}" Best, Michael |
Author: | xega [ 27. Jul 2017, 21:55 ] |
Post subject: | Re: iframe not working correctly after https change |
I don't know what happened to make database page a 404, but I deleted the menu item and added it again and now it works. However, the map_parameter_to_url isn't working anymore, it just says undefined to I can't link to specific pages in the ifram anymore. F.ex.: https://www.legstadaleit.hafdal.dk/gagnagrunnur/?lang=is&page=undefined My code looks like this: Code: [advanced_iframe securitykey="696a4efxxxxxx8393" use_shortcode_attributes_only="true" src="https://www.hafdal.dk/tng/cemeteries.php?page={query-page}" width="100%" height="800" scrolling="auto" id="legstadaleit1" name="legstadaleit" map_parameter_to_url="page" add_iframe_url_as_param="same" resize_on_ajax_jquery="false" ] Any idea what I did wrong now..? |
Author: | TinyWebGallery [ 27. Jul 2017, 22:16 ] |
Post subject: | Re: iframe not working correctly after https change |
I only see config error here: https://www.legstadaleit.hafdal.dk/database Best, Michael |
Author: | xega [ 27. Jul 2017, 22:17 ] |
Post subject: | Re: iframe not working correctly after https change |
what does that mean? |
Author: | TinyWebGallery [ 27. Jul 2017, 22:44 ] |
Post subject: | Re: iframe not working correctly after https change |
you see the error? your shortcode is in a wrong format! src is e.g. wrong check the " " if they are correct. Best, Michael |
Author: | xega [ 27. Jul 2017, 23:01 ] |
Post subject: | Re: iframe not working correctly after https change |
I can't see what is wrong, I have checked all " to see if there is one too many or one missing, but everything looks okay. And the url https://www.hafdal.dk/tng/cemeteries.php works (on it's own but it gets redirected to a wrong url). Code: [advanced_iframe securitykey="696a4ef4xxxx46cd18393" use_shortcode_attributes_only="true" src="https://www.hafdal.dk/tng/cemeteries.php?page={query-page}" width="100%" height="800" scrolling="auto" id="legstadaleit1" name="legstadaleit" map_parameter_to_url="page" add_iframe_url_as_param="same" resize_on_ajax_jquery="false" scrolling="no"] I just can't see what is wrong |
Author: | TinyWebGallery [ 28. Jul 2017, 09:16 ] |
Post subject: | Re: iframe not working correctly after https change |
when I click on https://www.hafdal.dk/tng/cemeteries.php If i first get that you have an invalid certificate: SEC_ERROR_EXPIRED_CERTIFICATE Then I get redirected to https://www.hafdal.dk/legstadaleit/gagnagrunnur/?lang=is&page=https%3A//www.hafdal.dk/tng/cemeteries.php& and https://www.hafdal.dk/legstadaleit/gagnagrunnur/ does give me a 404. Who is doing the redirect? Best, Michael |
Author: | xega [ 28. Jul 2017, 10:09 ] |
Post subject: | Re: iframe not working correctly after https change |
Hi Michael I have contacted my hosting provider regarding the certificate - waiting for their answer now. I have added Code: <script> console.log('current url: ' + window.location.href); var iframe_redirect_url = "https://www.hafdal.dk/legstadaleit/gagnagrunnur/?lang=is&page=" + escape(window.location.href) + "&"; </script> <script src="https://www.hafdal.dk/legstadaleit/wp-content/plugins/advanced-iframe/js/ai_external.js"></script> to the footer.php of the contents of the iframe, so that when people go to https://www.hafdal.dk/tng/cemeteries.php, they get forwarded to the WP webpage with https://www.hafdal.dk/tng/cemeteries.php in an iframe. You helped me with this setup https://www.hafdal.dk/legstadaleit/gagnagrunnur/ gives a 404 error because it needs the language attribute, like this: https://www.hafdal.dk/legstadaleit/gagnagrunnur/?lang=is "gagnagrunnur" is "database" in Icelandic. |
Author: | TinyWebGallery [ 28. Jul 2017, 12:08 ] |
Post subject: | Re: iframe not working correctly after https change |
https://www.hafdal.dk/legstadaleit/gagnagrunnur/?lang=is also gives me a 404 now . |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |