Error after Mapping domain [multisite permission denied error]

Author Posts

eiretv

Hello

I got this after I mapped a multisite domain:

Error: Error: Permission denied to access property “TvrExportVars

Cannot select or change anything now. How do I fix this please?

Thanks


Abland

Hi, eiretv,

That’s most likely your server security blocking what it interprets as cross domain activity. I always leave the blog’s url as the native sub directory or sub domain of the parent for editing, instead of setting the mapped domain as primary.

You can change that in the network admin on a per blog basis by changing the home and site url, but then it disrupts updating the network for the same cross domain reasons.

** The mapped domain can be primary when you’re not editing it. It doesn’t affect the edits.


Sebastian

Thanks for the specialist advice Abland. These multi-site issues are not my area of expertise unfortunately.


eiretv

Thank you Abland for that detailed explination…
It will take some digesting to follow your advice….

I have another problem now though…

EDIT

Getting a “Somethings Wrong” error and when I go into the Chrome console it tells me

GET http://xxxx/wp-content/plugins/microthemer/css/maps/styles.css.map 404 (Not Found) admin.php?page=tvr-microthemer.php:169
GET http://xxxx/wp-content/plugins/microthemer/js/min/maps/tvr-microthemer.js.map 404 (Not Found) admin.php?page=tvr-microthemer.php:8817
JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js?ver=1.4.1:2
Resource interpreted as Image but transferred with MIME type text/html: “http://xxxx.net/wp-content/uploads/2016/03/bg.png”. jquery.js?ver=1.12.4:5
GET http://xxxx/wp-content/plugins/microthemer/js/min/maps/jquery.overlay.js.map 404 (Not Found)

I take it this is because of Mapped domain issues too…

EDIT
I now notice that in the links to files that are not found there is no /map/ folder in the sequence.
So for intance the links to the files are as followsfile
GET http://xxxx/wp-content/plugins/microthemer/css/styles.css.map 404 (Not Found) admin.php?page=tvr-microthemer.php:169
GET http://xxxx/wp-content/plugins/microthemer/js/min/tvr-microthemer.js.map 404 (Not Found) admin.php?page=tvr-microthemer.php:8817
JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js?ver=1.4.1:2
Resource interpreted as Image but transferred with MIME type text/html: “http://xxxx.net/wp-content/uploads/2016/03/bg.png”. jquery.js?ver=1.12.4:5
GET http://xxxx/wp-content/plugins/microthemer/js/min/jquery.overlay.js.map 404 (Not Found)

What should I do to fix this??
Obviously the Domain mapping added the /map/ to the links


Abland

Sorry for the delay in getting back 🙂 The error is specific to Chrome.

Genady Sergeev at Telerik wrote:
“The problem is related with the Chrome devtools, which have an option named “Enable source maps”. When turned to on it will search for map files for the common JS libraries. You can take a look at the intro video for more information at the topic. In general, you can either disable the source maps or place source map files in your projects.”
http://www.telerik.com/forums/jquery-min-map-404-errors-showing-in-chrome-console
(about a 1/4 way down the page)

I’m getting those same notices, too. Not the image MIME type notice, though – not sure what that is.


eiretv

Sorry for the delay in the reply…..thought I would be notified about replies to my query but wasn’t…

I located and disabled source maps…..wiped the cache and trid it but without success.

The mapping plugin has obviously remapped the links to the files because it works on the main multisite domain which of course has the domain without remapping.

I really appreciate the time you took and the link.

Don’t know what to do now as Multisite is way more straightforward to manage all the websites I will be doing and of course domain mapping is important to those clients.

I would hate to have to give up Microthemer as it is invaluable and a real timesaver time and again…


eiretv

In the Error Console it is showing the page searching for the js files with this folder structure:

http://subdomain/wp-admin/admin.php?page=tvr-microthemer.php

Of course multisite sub domains do not lead you to this actual folder.

I enabled the source maps again and copied tvr-microthemer.js and jquery.overlay.js into a folder I created called maps…

This didn’t work either.

I notice on the console it has those files they are searching for as
tvr-microthemer.js.map and jquery.overlay.js.map

I changed the name of the files I put into the maps folder and still doesn’t work


Abland

I’ll have to think a bit more on this one. But for the paths to the file, subdomains work the same way as the parent so:
parent.dom/wp-content/…
and
sub.parent.dom/wp-content/…
are both valid in relation to their sites.

… hmmm, I’m just thinking again that it may be a cross domain issue again. Sometimes a 404 is because the server is blocking the file because it came from another domain. Another cup of coffee and I’ll see if I can puzzle it out.

You must login or register to reply to this topic.