Title: Multisite  &#8211; external workaround
Last modified: August 31, 2016

---

# Multisite – external workaround

 *  Resolved [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/)
 * 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?
 * [https://wordpress.org/plugins/advanced-iframe/](https://wordpress.org/plugins/advanced-iframe/)

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/multisite-340/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/multisite-340/page/2/?output_format=md)

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015171)
 * 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
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015178)
 * 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/ostelloaquileiait/cosafare/)
   [http://artefvg.org/turismo/ostelloaquileiaen/cosafare/](http://artefvg.org/turismo/ostelloaquileiaen/cosafare/)
   [http://artefvg.org/turismo/ostelloaquileiapl/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](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
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015180)
 * 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
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015191)
 * 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/](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
    Paolo
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015197)
 * Close the browser.
 * than only open
    [http://artefvg.org/turismo/ostelloaquileiapl/cosafare/](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
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015200)
 * 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/](http://artefvg.org/turismo/ostelloaquileiait/cosafare/)
   Hope will be clearer
 * Best regards
    Paolo
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015201)
 * The 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
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015210)
 * 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](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](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
    Paolo
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015237)
 * The 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
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015269)
 * See
 * [https://validator.w3.org/check?uri=http%3A%2F%2Fturismo.artefvg.org%2FAreaModuliMiniOutDiv.asp%3Fid_area%3D39&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices](https://validator.w3.org/check?uri=http%3A%2F%2Fturismo.artefvg.org%2FAreaModuliMiniOutDiv.asp%3Fid_area%3D39&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices)
 * 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.
 * on [https://validator.w3.org/check?uri=http%3A%2F%2Fturismo.artefvg.org%2FAreaModuliMiniOutDiv.asp%3Fid_area%3D25&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices](https://validator.w3.org/check?uri=http%3A%2F%2Fturismo.artefvg.org%2FAreaModuliMiniOutDiv.asp%3Fid_area%3D25&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices)
 * where is working the div is closed properly.
 * Best Michael.
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015276)
 * 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](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
    Paolo
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015279)
 * ERROR:
    [http://turismo.artefvg.org/areaWideOutdiv.asp?lingua=ITA](http://turismo.artefvg.org/areaWideOutdiv.asp?lingua=ITA)(
   ENG) (POL)
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015280)
 * Seems your server is not there. You should check this.
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015283)
 * Now looks ok
 *  Thread Starter [paolo54](https://wordpress.org/support/users/paolo54/)
 * (@paolo54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/#post-7015348)
 * 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](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/ostelloaquileiait/cosafare/)
   [http://artefvg.org/turismo/ostelloaquileiaen/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

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/multisite-340/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/multisite-340/page/2/?output_format=md)

The topic ‘Multisite – external workaround’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

 * 23 replies
 * 2 participants
 * Last reply from: [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/multisite-340/page/2/#post-7015362)
 * Status: resolved