Error 403 Forbidden "AccessDenied"

Hi WixCode

I got this error since yesterday on my live website - www.mytravedu.com. All codes not working and strange thing is most of the time I am unable to save/ publish my work from wix editor.

I can only save/ publish website approx. within 10 mins from opening the wix editor. Tried following the instruction to log in (though I am still log in) and opening new editor and save it but still didnt work.

It says AccessDenied and database on the page is set for everyone (public). Browser history deleted and tried using incognito - still not working.

Note: Renewal of Premium Plan is not yet paid as website not ready but that shouldn’t be a problem for saving/publishing website or using database and wixcode. right?

Please advise.

Thanks,
DA

This has to be controlled by someone from the Wix Code team. @yisrael-wix or @liran-kurtz-wix maybe?

Hey Andreas, I sent this on to QA to see what they say. Hopefully they can let us know what’s going on.

Note: Renewal of Premium Plan is not yet paid as website not ready but that shouldn’t be a problem for saving/publishing website or using database and wixcode. right?
Totally not a problem here.

DA, currently I didn’t get the 403 on www.mytravedu.com . Can you try to save/publish and update us if it still exist on your end?

Hi Gentlemen

I can save/ publish my work now anytime. When I click on “View Site” after doing some updates and publishing it, the site load and code works fine but whenever I refresh it or open it in new tab even in incognito it does not work and it says the same thing “Error 403”

Tried using other desktop and it has the same outcome.
Mobile view is not yet properly organize but it seems to be working fine.

Appreciate much your good help.

Thanks,
DA

@alexander-jdanov is a gentleman. I’m just a guy. :smiling_face:

What happens if you refresh a couple times? Does it eventually display? What browser are you using?

Hi @yisrael-wix

You’re a guy who has big heart for people like us. :blush:

Did refresh it many times and im using Google Chrome Version 70.0.3538.110
Some of the pages are working even though the consolse says the same error like;

https://www.mytravedu.com/search-tourpackages
https://www.mytravedu.com/contact-us
https://www.mytravedu.com/travel

Site Preview from editor is working fine.
I dont think so it is on my codes as it dont show any red error.

When I click home (logo on my header) which has wixLocation.to(‘/’) link from those pages mentioned above, it navigate me to home page and its working fine.

DA

@darken-angel I try my best. :sparkling_heart:

I took a look at your site in the Editor and noticed that you have two onReady() event handlers in the page code for many of your pages. This is incorrect and will cause problems. Only one onReady() event handler can be defined - more than one is invalid.

In your case, to handle mobile/desktop, you should do something like this:

$w.onReady(function () {
    if (wixWindow.rendering.env === "browser") {
        let formFactor = wixWindow.formFactor;
        if (formFactor === "Mobile") {
            // code for mobile
        }
        if (formFactor === "Desktop") {
            // code for desktop
        }
    }
});

I hope this helps. Maybe if we’re lucky we found the source of your problem.

Hi @yisrael-wix

I corrected it as you said and seems to fix the issue but i am still getting the same error (403 Forbidden - AccessDenied) on the console.

Now that’s a proof you have big heart. :wink:

DA

Other than the 403 and 404 that I can see in the console for the Live sites, does the site work correctly? Do you see any problems on the pages or in the site navigation?

I want to report this to QA and I need more information before I bother them. The 403/404 might be nothing, and it might be something.

Thanks

I just noticed that on the search-tourpackages page, you have 4 onReady() functions. This will definitely not work correctly. You will need to check that all of your pages have valid code. Otherwise you’ll have many problems.

@yisrael-wix

Hi Big Heart Guy

I corrected most of the pages to make it with only one OnReady Function. I am still getting the error on my console, code works but not all the time.

I will keep observing the performance and be in touch.

Thanks,
DA

Hi there
Any news on this issue ?
I am currently facing it and can’t find a way out…

Hi, Please create a new post with more information about your specific case, code, screenshots, etc. As this is a very old post it will now be closed