• Hi guys,

    So i just moved my website to a different webhost, everything went smoothly, the site is working.. except the backend of my theme.. i`m using Elegant Themes Divi with no other modifications.

    Since i moved, i can`t seem to update the current pages, after i hit the update button it takes me to the 404 page…

    – I tried every fix i found googling the 404 permalinks problem.. but still doesn`t work (tried the save changes in permalinks, added the code to .htaccess.. etc)

    – Its not server related, because i made a fresh wp+divi install on a different domain i have hosted on the same webhost and it works fine.

    – I can make new content, use the divi builder, save the new pages.. everything works fine.. so as a workaround i`ll just have to rebuild the pages i usually edit…. and delete the old pages/posts that are now “locked” in this 404 problem… thats partially done… i think

    The MAIN PROBLEM is that i cant save the divis main settings, when i hit the SAVE CHANGES button, the wheel spins forever…
    Also i can`t save the widget section… these are my biggest problems right now

    Digging some code, i found an admin-ajax.php 404 error on the pages with my problems..

    How can i fix this ? ??

    screenshots of the admin-ajax.php 404 errors in the console

    View post on imgur.com

    • This topic was modified 6 years, 4 months ago by SoulSearcher.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello Alios,

    I think the hosting provider may block the admin-ajax.php file due to too many request, hence it may cause issue.

    Please just check it with your server Admin if they are blocking this url or not?
    Hope this helps.
    Thank you

    Thread Starter SoulSearcher

    (@alios24)

    thanks for the reply

    i also suspected the webhosts settings, but i made a fresh WP+divi instalation on a secondary domain, and it doesnt have any problems

    • This reply was modified 6 years, 4 months ago by SoulSearcher.

    Ok.
    WordPress Address Url and Site Address Url are set as same?
    Have you tried to deactivate the autoptimize plugin and then save data.

    Thanks
    Suman W.

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL of front-end pages (AO is not active on /wp-admin/).

    if the problem is not there at that point, unticking the “also optimize for logged in users” might fix the problem.

    hope this helps debugging,
    frank (ao dev)

    Thread Starter SoulSearcher

    (@alios24)

    @sumanm i tried that, i disabled all my plugins, i also have a custom permalinks plugin and a redirection plugin, i read about how they could intervine in the permalinks 404 errors… but there was no fix after that, ive spent like 20 hrs on friday before admiting defeat ??

    @frank also i disabled the autoptimize plugin, and i also have the unticked customize for logged in users, but nothing happens.

    im suspecting a problem in the main ET Divi theme :( im still waiting some kind of answer from them

    Ok. Understood your point.:) thats a nice try.I cannot suggest.Without accessing backend of website.
    This type of error is due to 2-3 points:
    1.Site has been hacked.
    2.Caching issue due to which old data is cached and does not call new url.
    3.WordPress Address Url and Site address url is not set same.
    4.Proper Peramlink setting is not done.

    Hope you will get solution soon.

    Thanks
    Suman W.

    • This reply was modified 6 years, 4 months ago by Suman.
    Thread Starter SoulSearcher

    (@alios24)

    uh, thanks for your replies

    1. it was not hacked, i just moved the site from one webhost to another
    2. i disabled everything related to cache, i even removed the site from my old cloudflare account, deleted cache from the browsers.. etc
    3. first modifications i made to wp-config were the db credentials and the define values

    define( ‘WP_HOME’, ‘https://website’ );
    define( ‘WP_SITEURL’, ‘https://website’ );
    4. i don`t know what settings to do anymore for permalinks, at least by searching all the web about the WP permalink 404 issues ??

    steps i made.. maybe somebody sees the problem…

    1. 17 oct 2018 – on my newhost i copied the files and folders from my oldhost using the ftp
    2. 17 oct 2018 – i made a sql export from in phpmyadmin from my oldhost
    3. 18 oct 2018 – on my newhost i made a new database (different prefix for the db and the user, with a different password
    4. 18 oct 2018 – i imported the sql in phpmyadmin to my newhost
    5. 18 oct 2018 – i moved a secondary domain (not the primary) to my newhost
    5. 18 oct 2018 – i edited the wp-config with the new credentials and also defined the URL and Home string with the secondary domain (to test and see if the website is working on my newhost on a different domain name… i also edited the line in the phpmyadmin under the wp_options table with my alternative domain
    6. 18 oct 2018 – i accesed my website using the alternative domain, everything worked fine, pictures loaded.. etc
    7. 18 oct 2018 – i accesed the wp-admin and found the divi theme and 2 plugins (yoast seo and cost estimator wanted updates.. i did them, everything ok until here… so i decided i would move the nameservers early in the morning and basically move my primary domain to the newhost
    8. 19 oct 2018 – i moved my primary domain to the newhost and again edited the wp-config and changed the test domain with the primary domain strings
    9. 19 oct 2018 – some pictures links were broken and i fixed them manually… but the frontend loads perfectly now
    10. 19 oct 2018 – found out i cannot update a page/post/project.. hitting the update button sends me to the 404 page, also e ePanel in Divi doesn`t save the settings, the wheel just spins forever…

    at this point i started troubleshooting and searched for fixes for 12 hrs… nothing worked, i basically have a “stuck” backend, i can make new content (posts/pages/projects) i can use the divi builder, but i can`t use saved divi templates or save old pages… takes me to 404

    • This reply was modified 6 years, 4 months ago by SoulSearcher.
    • This reply was modified 6 years, 4 months ago by SoulSearcher.
    Thread Starter SoulSearcher

    (@alios24)

    its a server side hosting problem…
    its not WP related

    something in the firewall is blocking the admin-ajax.php acces and returns 404…

    now i just need for the hosting admins to figure it out.. or i`ll have to move the hosting…

    Thread Starter SoulSearcher

    (@alios24)

    finally some smart admin from the webhost decided to REALLY disable the Mod_Security

    now my website is 100% functional

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘admin-ajax 404 error’ is closed to new replies.