Multisite – external workaround
-
I’m experiencing strange problems with the Multisite version of WP.
I have three sites with different languages.
I put the url with the inclusion directly on the shortcode in a page.
One site works ok but the other two first load the page with the correct height (using the external workaround with the correct path of the js).
The two others open correctly with the full page then they are refreshed at height 600px. No way to correct this behaviour.
Any suggestion?
-
Have all sites different domains?
Than you need to include the ai_external.js for each domain. Otherwise the cross domain restrictions do apply.
Best, Michael
Hello Michael,
the domain is the same and the external page with the js inclusion is the same.
Give a look to these three links with the shortcode applied and the different behaviour:
http://artefvg.org/turismo/ostelloaquileiait/cosafare/
http://artefvg.org/turismo/ostelloaquileiaen/cosafare/
http://artefvg.org/turismo/ostelloaquileiapl/cosafare/
The first page (URL) works OK!
The second and the third one opens OK then shrinks to height 600px…
I tried various options but nothing to do.
I tried also to modify the path to reach the js file in
http://artefvg.org/turismo/wp-content/plugins/advanced-iframe/js/ai_external.js (real path) but the behaviour is the same.
What you think about?Best regards, paolo
Can you verify the following: It seems to work for me if I open each link in a browser with one tab only.
I have your behavior if I open 2 links. Than one of them is not working anymore.
It this also the case for you?
Best, Michael
Hello Michael,
I tried to understand your question …
I opende a new session of Chrome. I copied the first URL and it works!
http://artefvg.org/turismo/ostelloaquileiait/cosafare/
Just to test … I modified only the two letters defining languages (ostelloaquileia+(it)(en)(pl)) and the behaviour is like I told you.
The page called from the different link is the same with a variable in the url defining what language I want.
The called page has the js on top after the <body> tag as required.
Just for test I closed and reopened Chrome and I tried the second URL but the problem of behaviour still persist (first the page opens correctly then shrinks). The same for the third URL.
For me all links are working but only the first shows correctly the workaround.
LAST very strange thing …. if you click a link in the page with the wrong behaviour (height=600px) a new page opens with a “goback” symbol (that is correct). If you click the history back symbol ….. THE PAGE REOPENS AND BEHAVE CORRECTLY!….. . Can’t understand …
Hope will be clear and you can solve better than me the problem.Best regards
PaoloClose the browser.
than only open
http://artefvg.org/turismo/ostelloaquileiapl/cosafare/For me this works. I think the problem with 2 tabs are that if the size is sent back to the parent the browser does not know which parent to resize and it picks one of them but not both!
Does it still not work if you only have the 3rd link in browser with one tab only?
Best, Michael
Hi Michael and sorry to bother you.
In all my browsers and PC the link you submitted first opens the page correctly and then shrinks it to 600px and show a partial content of the page.
All three links are a different sites in a Multilink site, not only pages.
So a user will open only one page not different tabs.
The only site that works properly for me is:
http://artefvg.org/turismo/ostelloaquileiait/cosafare/
Hope will be clearerBest regards
PaoloThe structure of the elements are different.
What have you changed in ai_external.js.
Because in the working solution there is a div elem_00 which sourounds everything.
In the other not working version there is a elem_00 and a elem_03 on the same level. And only the height of the first element is measured.If there are several divs on the first level I make my own wrapper which seems not to be created anymore.
Best, Michael
Hi Michael,
I did’nt change anything in ai_external but the path. I changed it with the absolute path to check a solution.
http://artefvg.org/turismo/wp-content/plugins/advanced-iframe/js/ai_external.js
instead of the virtual path
http://artefvg.org/turismo/ostelloaquileiapl/wp-content/plugins/advanced-iframe/js/ai_external.js
As I can understand you are saying that there is a <div> element not closed? I checked out my code but seems ok.Best regards
PaoloThe issue is that the html for me looks different when I click on the first icon.
On the site where it works there is only one surrounding div.
On the one where it does not work I see 2 divs there.I have to check the source code directly tonight to tell you more here.
Best, Michael
See
This is the page when I click on “La grande guerra”
There a div is not closed and also ai_external.js is included 2 times.
where is working the div is closed properly.
Best Michael.
Hi Michael.
the main page called from the shortcode (to be checked with the w3c validator) is:
http://turismo.artefvg.org/AreaWideOutDiv.asp?lingua=it (en) (pl).
It seems the code is quite OK apart two errors that I cannot understand and I’m triing to correc.
The other links are called from that page and are not involved in the problem.Hope it’s useful
Best regards
PaoloERROR:
http://turismo.artefvg.org/areaWideOutdiv.asp?lingua=ITA (ENG) (POL)Seems your server is not there. You should check this.
Now looks ok
Hello Michael,
I’m back to the problem …..
I gave a look at the called pages that now are OK with W3C.
http://turismo.artefvg.org/areaWideOutdiv.asp?lingua=ITA (or ENG)
I gave a look to the two different sites in the Multisite and they are identical (originally cloned).
I focused on two sites:
http://artefvg.org/turismo/ostelloaquileiait/cosafare/
http://artefvg.org/turismo/ostelloaquileiaen/cosafare/Nothing to do …. The first works, no chance for the second.
I gave a look at the code with Firefox Analyzer …
No more ideas …
Any suggestion?Best regards
Paolo
The topic ‘Multisite – external workaround’ is closed to new replies.