• rajricki

    (@rajricki)


    The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

    The REST API call gave the following unexpected result: (404) <!DOCTYPE html> <html style=”height:100%”> <head> <meta name=”viewport” content=”width=device-width, initial-scale=1, shrink-to-fit=no”> <title> 404 Not Found </title></head> <body style=”color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;”> <div style=”height:auto; min-height:100%; “> <div style=”text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;”> <h1 style=”margin:0; font-size:150px; line-height:150px; font-weight:bold;”>404</h1> <h2 style=”margin-top:20px;font-size: 30px;”>Not Found </h2> <p>The resource requested could not be found on this server!</p> </div></div><div style=”color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;”> <br>Proudly powered by LiteSpeed Web Server<p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html> .

    Due to this error, All my site posts link redirecting to one post of my site.
    Kindly resolve this issue.

    Rajesh

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Kindly resolve this issue.

    I think you’re misunderstanding things here. WordPress is both built and supported for free by volunteers who do this on their free time.

    We don’t actually run your site or have any form of control over it in any way. So *you* must resolve your problem, because nobody here can do anything to your site, in any way whatsoever.

    If you want to try “real time” conversation, jump into the WordPress IRC channel. https://make.www.ads-software.com/support/irc-support-channel/

    If you can’t do the work yourself, you have the option of engaging a professional to assist you. If you want to follow that option and hire someone for this, then please try https://jobs.wordpress.net/ and do not accept any hire or direct access offers posted to these forums.

    Meanwhile try:
    – If you have access to your Dashboard’s Plugins page, try deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you don’t have access to your Dashboard’s Plugins page, try manually resetting your plugins (no Dashboard access required). Here is another tutorial: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/ . If that resolves the issue, reactivate each one individually until you find the cause. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Twenty, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).
    – If you don’t have access to your Dashboard’s Appearance page, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Alternately, you can remove other themes except the default theme (Twenty Twenty, etc.). That will force your site to use it.

    @rajricki what was the fix you determine for this on your Litespeed server?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The Rest API encountered an unexpected error’ is closed to new replies.