Find Jobs
Hire Freelancers

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

$2-12 USD / hour

취소됨
게시됨 6년 이상 전

$2-12 USD / hour

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: [login to view URL] It will point you to here [login to view URL] 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': '[login to view URL]' is not a suffix of '[login to view URL]'. at [login to view URL]:1237:49 This error only happens when I select the domain [login to view URL] 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 [login to view URL] as primary ALL the above errors go away. I have located the below code in a file named [login to view URL] file. <script type="text/javascript"> [login to view URL] = '[login to view URL]'; [login to view URL] = function() { fetchCart(); } 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 [login to view URL] 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.
프로젝트 ID: 15777449

프로젝트 정보

3 제안서
원격근무 프로젝트
활동 중 6년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다

고객에 대한 정보

국기 (UNITED STATES)
Thornwood, United States
4.8
147
결제 수단 확인
6월 10, 2013부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.