Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #732374

    Hi!

    I have a website which the Avia Layout Builder does not load. The error message is: Failed to load resource: the server responded with a status of 403 (Forbidden): wp-admin/admin-ajax.php
    On all other sites the Layout Builder works.

    I’ve tried everything but can not get it to work.

    I would appreciate if you could take a quick look

    #732377

    Hi luckylobo10!

    Please contact your hosting provider as they are blcking the execution of the script.

    Thank u

    Best regards,
    Basilis

    #732620

    I have now been in contact with the hosting company and they can not see anything that blocks the file or what causes it.
    The strange thing is that this only is on ONE page (there is around 30 pages on this website).

    Would be great if you could take a quick look.

    Thanks!

    • This reply was modified 7 years, 10 months ago by luckylobo10.
    #732992

    Hi,

    Thanks for the login details, I get the same problem though. I’m not sure what could be causing it, could you try rebuilding the page in question maybe?

    Best regards,
    Rikard

    #733544

    Hi!

    I have now found out the reason for 403 on /admin-ajax.php.
    If a link like this “goo.gl/xxxxx” is present on a page, the server (or website?) blocks /admin-ajax.php.

    Strange stuff. I’ve contacted the ISP regarding it.

    Kind regards,
    Knut

    #733880

    Hi Knut,

    Ok, thanks for the feedback. Not sure why that would be to be honest, it’s probably due to some kind of security setting.

    We’ll keep the thread open in case you should need any further help.

    Best regards,
    Rikard

    #798773

    For anyone else experiencing this issue, I have found the root cause, and it isn’t any plugin or link within the page (but only if you are having issues with the Avia advanced layout editor — and it’s not showing anything)

    It’s the WordPress Memory Limit set via PHP and/or .htaccess!

    In .htaccess, add the following:

    php_value post_max_size 512M
    php_value upload_max_filesize 512M
    php_value max_input_vars 5000
    php_value max_execution_time 300
    php_value max_input_time 300
    php_value memory_limit 512M

    In wp-includes folder, navigate to default-constants.php, scroll down to around line 35 and change “64M” and “40M” to reflect your new .htaccess memory limits.
    e.g;

    	// Define memory limits.
    	if ( ! defined( 'WP_MEMORY_LIMIT' ) ) {
    		if ( false === wp_is_ini_value_changeable( 'memory_limit' ) ) {
    			define( 'WP_MEMORY_LIMIT', $current_limit );
    		} elseif ( is_multisite() ) {
    			define( 'WP_MEMORY_LIMIT', '512M' );
    		} else {
    			define( 'WP_MEMORY_LIMIT', '256M' );
    		}
    	}

    This will force WordPress to use 256MB of Memory on a single-site installation, and 512MB of Memory on a Multi-site installation.

    Note: Some hosting providers do not allow you to change this or have smaller limits, so consult them if you can’t modify .htaccess and/or default-constants.php

    Cheers, Jenkins

    #798794

    Hi @Jenkins87,

    Thanks for sharing, much appreciated!

    Best regards,
    Rikard

    #804391

    @Rikard,
    I’m now experiencing the same problem, on the same website, with the increased memory limits as posted earlier.
    Again, this is happening with just 1 page (a different one to last time). The higher resource limits fixed the page I initially had issues with, but now, a different page has the same problem of the Avia layout builder not loading.

    I’ve dug deeper into the problem, and every creative solution I’ve tried hasn’t restored access to the Avia layout building inside the page in question.

    Chrome console tells me:
    VM8950:1 POST http://www.####.com.au/wp-admin/admin-ajax.php 403 (Forbidden)

    I’ve noticed that if I visit this page too much, my hosting firewall automatically blocks my IP, which I then have to go and manually Unblock from the hosting portal (I’m a reseller so I have this kind of access)

    Furthermore, I’ve seen a couple of posts online that say that WordFence can sometimes block a connection to this file (wp-admin/admin-ajax.php) as a false positive, but I have disabled WordFence and the problem still persists.

    I also tried disabling a plugin called “Cache External Scripts” thinking it might be the culprit, still no luck.

    I then tried disabling my caching plugin, even though the POST request from admin-ajax.php is set to no-cache, I thought it might be causing issues. Still, nothing, didn’t make a difference.

    Finally, I disabled ALL plugins on the site, and the problem is still happening.

    I can confirm that the server is indeed using the higher resource limits set in default-constants.php and in .htaccess as well.

    My permission structure is as follows;
    public_html (web root) – 0750
    \ wp-admin – 0755
    \ wp-admin \ admin-ajax.php – 0644

    Also note, even though I have disabled all plugins, some settings still remain (.htacess etc) I have whitelisted my IP address and also made sure that my IP isn’t being blocked by the host server.

    I’m really lost as to what the solution might be.

    I’ve noticed as well, this has happened a couple of times when adding a “Fullwidth button” in the Avia layout builder, as well as “Icon” elements. After saving, the page will then reload as normal, but the Avia editor doesn’t fully load. Animated icon for the Avia editor spins infinitely.

    I can also see that the POST method is sending the raw Avia shortcode to admin-ajax.php but is being blocked for some reason…

    The weirdest part is… When I “restore” a revision from before I’ve added or changed whatever it was to make the layout editor break (with the blocked admin-ajax.php), it works! But in some cases, this can mean losing hours of work, plus the hours spent trying to diagnose the problem.

    Basically I have to then avoid making the same changes (such as adding an icon with a link) to something like, adding an image with the same link, in order to not repeat the same steps and potentially break the page again. Incredibly frustrating and thankfully I have full control over the design of my client’s websites but this issue has only come up in the last couple of versions of Enfold. Everything prior to v4 never did this.

    Some insight would be nice, or maybe this a deeper bug that has come up in the last couple of versions? I’m not a PHP or Ajax developer so I can’t fully debug the problem.

    For anyone else with this issue, try restoring your page to earlier Revision and see if that helps, even though you’ll probably lose a lot of work, it has been the only consistant solution for me with this particular issue, apart from higher server resource limits, which you should always do anyway :P

    Cheers, Jenkins

    #804403

    I had this problem earlier and it was a special LINK to another website that caused it. A minified link of some kind.
    Maybe that helps :)

    • This reply was modified 7 years, 5 months ago by luckylobo10.
    #847204

    I am experiencing the same, or similar problem, with the Avia page builder in Enfold.

    WordPress version 4.8.1
    Enfold version 4.1.2
    PHP version 7.0

    Symptom:
    Open existing web page that contains existing text boxes. The webpage looks fine initially when viewed live or in preview mode. Try to edit the text block in Enfold Advanced Layout Editor and nothing shows up in the edit box or in the new preview panel to the right. Editing the same using the default editor also shows nothing (i.e. no text or html is visible). Note that I can create a new text box on the same problem webpage, then save it, then edit it as expected — that works fine. It seems to be something related to saving the webpage and then revisiting it to edit it a day or more later. The problem occurs only on some of the text boxes on the page. These are “normal” text boxes, no links or fancy formatting.

    Attempts at fixing this:
    I deactivated all my plugins and the problem remains.
    Reloaded the page and problem remains.
    Flushed browser cache (Shift + refresh in Chrome) and problem remains.
    Tried different versions of PHP, problem remains…
    Contacted my hosting service and they see no access restrictions or problems on their end of things…

    Read many posts on the Kries support forums about the same problem, occurring for what seems like many years, and implemented suggested fixes, …, problem remains…

    The stack trace is:
    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,utils,backbone,wp-util,&load[]=wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-mediaelement,media-views,jquery-ui-position,jquery-ui-menu,wp-a11y&load[]=,jquery-ui-autocomplete,quicktags,jquery-ui-tooltip&ver=4.8.1:4 POST https://inlightofnature.com/wp-admin/admin-ajax.php 403 (Forbidden)
    send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,utils,backbone,wp-util,&load[]=wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-mediaelement,media-views,jquery-ui-position,jquery-ui-menu,wp-a11y&load[]=,jquery-ui-autocomplete,quicktags,jquery-ui-tooltip&ver=4.8.1:4
    ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,utils,backbone,wp-util,&load[]=wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-mediaelement,media-views,jquery-ui-position,jquery-ui-menu,wp-a11y&load[]=,jquery-ui-autocomplete,quicktags,jquery-ui-tooltip&ver=4.8.1:4
    fetch_ajax_content @ avia-modal.js?ver=0.9.5:165
    create_html @ avia-modal.js?ver=0.9.5:146
    set_up @ avia-modal.js?ver=0.9.5:46
    $.AviaModal @ avia-modal.js?ver=0.9.5:35
    (anonymous) @ avia-builder.js?ver=0.9.5:254
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,utils,backbone,wp-util,&load[]=wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-mediaelement,media-views,jquery-ui-position,jquery-ui-menu,wp-a11y&load[]=,jquery-ui-autocomplete,quicktags,jquery-ui-tooltip&ver=4.8.1:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,utils,backbone,wp-util,&load[]=wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-mediaelement,media-views,jquery-ui-position,jquery-ui-menu,wp-a11y&load[]=,jquery-ui-autocomplete,quicktags,jquery-ui-tooltip&ver=4.8.1:3

    #847605

    I’m also experiencing this – just checking to see if anyone has found a solution for this so far?

    When adding text blocks on a couple of pages I click Save then Update and immediately get a 403 error. Doesn’t happen on other pages so not sure what’s going on here.

    #847855

    Hi,

    @databuzz
    we could assist better if you opened a new ticket detailing this with a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

    #861940

    Has this issue been resolved? I have the same problem – Post Link: https://kriesi.at/support/topic/blank-text-block/#post-861835

    #863003

    Hi,

    I guess as I can see Nikos reply, the issue has been solved.

    Best regards,
    Basilis

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Failed to load resource: the server responded with a status of 403 (Forbidden)’ is closed to new replies.