CUSTOM PHP SITE Error:Uncaught DOMException: Failed to set the 'domain' property on 'Document'

I have a Multisite Wordpress Domain for 1 client. He has asked me to create multisite network so we can create domain for each of the stores that buy from us so that they can have website with up to date inventory of fish, and be able to sell fish to their customers as if main company was invisible

If you go to this website: [url removed, login to view]

It will point you to here [url removed, login to view]

Because I have mapped the domain using a WPMU Domain Mapping plugin..

Problem is when I do this 3 things happen. The logo, the stores address in the footer, and adding products to cart becomes un-functional.

Try to go to any category page on menu and add 1 fish to cart. You will see the fish doesn't add at first, BUT then try and reload page, and you will see the fish in your cart.

Error that is showing in inspector is:

Uncaught DOMException: Failed to set the 'domain' property on 'Document': '[url removed, login to view]' is not a suffix of '[url removed, login to view]'. at [url removed, login to view]:1237:49

This error only happens when I select the domain [url removed, login to view] as the PRIMARY domain for remysreef.exoticreefimports.com. This is a setting inside of the MU Domain Mapping Plugin.

If I set this back to [url removed, login to view] as primary ALL the above errors go away.

I have located the below code in a file named [url removed, login to view] file.

<script type="text/javascript">

[url removed, login to view] = '[url removed, login to view]';

[url removed, login to view] = function() {



The script appears to be hard coded in our checkout code files pointing to the main site domain which normally works fine, but in this cases when we active domain mapping this starts to cause the [url removed, login to view] error whenever adding a fish to cart. Also the pages theme files dont seem to know where the correct domain is cause its having issues showing the logo, and the store's address in footer.

Kemahiran: HTML, MySQL, PHP, Sistem Admin, Wordpress

Lihat lagi: plesk backup failed deployment domain, magento developer set domain, set quickbooks property management free book, php, mysql, html, wordpress, system admin, set rental property quickbooks pro, failed deployment domain, prototype ajax set domain work, plesk set domain key, whm set domain, phplist set domain keys, set imagebutton property aspnet server site, set domain server 2003 smtp, set domain user limited users, set domain key email, set domain key, set domain key dns

Tentang Majikan:
( 79 ulasan ) Elmsford, United States

ID Projek: #15777449

6 pekerja bebas membida secara purata $8/jam untuk pekerjaan ini

$7 USD / jam
(17 Ulasan)

Hi There, I have read your job description and understand your needs.I am expert wordpress developer and ready to fix all the issue in your website.I would like to discuss your project with [login to view URL] kindly ping me when Lagi

$12 USD / jam
(12 Ulasan)
$7 USD / jam
(7 Ulasan)

Hello, I have 6+ years of experience. I have reviewed your project requirement and ready to start the discussion in order to clarify the queries. I have done similar kind of work in past. I have all the skill set req Lagi

$7 USD / jam
(4 Ulasan)
$7 USD / jam
(1 Ulasan)
$5 USD / jam
(0 Ulasan)