Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 22. Nov 2024, 11:05

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: 27. Jul 2017, 04:50 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
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


Top
 Profile  
 
PostPosted: 27. Jul 2017, 12:48 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 27. Jul 2017, 16:14 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
I have now updated and there is still an issue.


Top
 Profile  
 
PostPosted: 27. Jul 2017, 16:40 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You mean the links inside the map? How do they get there?

Best, Michael


Top
 Profile  
 
PostPosted: 27. Jul 2017, 18:57 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
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


Top
 Profile  
 
PostPosted: 27. Jul 2017, 19:01 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
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?


Top
 Profile  
 
PostPosted: 27. Jul 2017, 21:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 27. Jul 2017, 21:55 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
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..?


Top
 Profile  
 
PostPosted: 27. Jul 2017, 22:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I only see config error here: https://www.legstadaleit.hafdal.dk/database

Best, Michael


Top
 Profile  
 
PostPosted: 27. Jul 2017, 22:17 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
what does that mean?


Top
 Profile  
 
PostPosted: 27. Jul 2017, 22:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you see the error? your shortcode is in a wrong format! src is e.g. wrong
check the " " if they are correct.

Best, Michael


Top
 Profile  
 
PostPosted: 27. Jul 2017, 23:01 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
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 :?:


Top
 Profile  
 
PostPosted: 28. Jul 2017, 09:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 28. Jul 2017, 10:09 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
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.


Top
 Profile  
 
PostPosted: 28. Jul 2017, 12:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
https://www.hafdal.dk/legstadaleit/gagnagrunnur/?lang=is also gives me a 404 now :(.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy