Title: Error on save
Last modified: November 4, 2019

---

# Error on save

 *  Resolved [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/)
 * (@tofuschnitzel)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/)
 * upon saving “Error” is displayed
    PHP Error log: 404 POST /wp-json/metaslider/
   v1/slideshow/save HTTP/2.0
 * Browser Console:
 * MetaSlider: Saving… app-3-15-1.js:1:516625
    MetaSlider: undefined app-3-15-1.
   js:1:517338 notifyError [https://xxxx/wp-content/plugins/ml-slider/admin/assets/js/app-3-15-1.js?ver=3.15.1:1](https://xxxx/wp-content/plugins/ml-slider/admin/assets/js/app-3-15-1.js?ver=3.15.1:1)
   t [https://xxxx/wp-content/plugins/ml-slider/admin/assets/js/app-3-15-1.js?ver=3.15.1:1](https://xxxx/wp-content/plugins/ml-slider/admin/assets/js/app-3-15-1.js?ver=3.15.1:1)
 * ​any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12097083)
 * Hi [@tofuschnitzel](https://wordpress.org/support/users/tofuschnitzel/)
 * Do you happen to see any errors in your server PHP log files?
 * Also, you might find a better error on the network tab. See here:
 * Network tab: [https://prnt.sc/ppytfu](https://prnt.sc/ppytfu)
 *  Thread Starter [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/)
 * (@tofuschnitzel)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12097992)
 * Hi,
    the only error in the php log is the 404 error mentioned above. the network
   tab yielded this error:
 * XHRPOST
    [https://www.xxxx/wp-json/metaslider/v1/slideshow/save](https://www.xxxx/wp-json/metaslider/v1/slideshow/save)[
   HTTP/2.0 404 Not Found 523ms]
 * JSON
    code rest_no_route message Es wurde keine Route gefunden, die mit der URL
   und der Request-Methode identisch ist. data {…} status 404 Response payload
 * 1
 * {“code”:”rest_no_route”,”message”:”Es wurde keine Route gefunden, die mit der
   URL und der Request-Methode identisch ist.”,”data”:{“status”:404}}
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12098029)
 * Hi,
 * Can you check a few things?
 * 1. Look in the plugin files for `ml-slider/admin/routes/api.php` and at the bottom
   you will see a list of all the routes. The error is suggesting that `/slideshow/
   save` does not exist, so check in this file to see if it’s registered (perhaps
   the file got corrupted).
 * 2. Check the endpoints. Go to
 * [https://www.xxxx/wp-json/metaslider/v1/](https://www.xxxx/wp-json/metaslider/v1/)
 * Then look for the listed routes.
 * Here’s from my dev site: [https://prnt.sc/psnc6j](https://prnt.sc/psnc6j)
 * You might want to use this Chrome extension to make it readable: [https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa](https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa)
 * Let me know what you find.
 *  Thread Starter [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/)
 * (@tofuschnitzel)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12098208)
 * PHP file is fine, endpoint also gets registered
    [https://ibb.co/jT2TsTz](https://ibb.co/jT2TsTz)
   but if I try to post to the save url “[https://xxxx.at/wp-json/metaslider/v1/slideshow/save](https://xxxx.at/wp-json/metaslider/v1/slideshow/save)(
   using insomnia) will yield the “rest_no_route” error
 * but I figured it out. I switch to apache instead of nginx and not it works. so
   it seems somthing in the nginx config prevented this url to be correctly interpreted(
   plesk)
    -  This reply was modified 6 years, 8 months ago by [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/).
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12098230)
 * Hi [@tofuschnitzel](https://wordpress.org/support/users/tofuschnitzel/)
 * Thank you for the feedback. I’ll mark this as resolved. Could you share your 
   nginx config file so I can take a look and see if there’s a possible solution?
   There have been a few similar reports lately and it would be good to be able 
   to provided others with an easy copy/paste fix. Thanks
 *  Thread Starter [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/)
 * (@tofuschnitzel)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12098282)
 * I’ve been using this in the “Additional NGINX directives” in plesk to make permalinks
   etc work.
 *     ```
       if (!-e $request_filename){
       	rewrite ^(.*)$ /index.php break;
       }
       ```
   
 * with the recent plesk upgrade to obisian this was not necesary anymore for the
   permalinks to work but it seems whatever plesk added to the nginx config for 
   the permalinks does not make the json endpoints work.
 * after adding the above mentioned code it works again also with nginx.
 * I will later have a look at the config that obsidian generates and maybe we can
   find a clue as to why permalinks work but json and ajax endpoints dont.
    (I will
   probably also create a post at the plesk forums)
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12098305)
 * Thanks, that will be very helpful.
 *  Thread Starter [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/)
 * (@tofuschnitzel)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12104034)
 * I posted the issue on the plesk forum
    [https://talk.plesk.com/threads/wordpress-permalinks.354103/](https://talk.plesk.com/threads/wordpress-permalinks.354103/)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error on save’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3568997)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [tofuSCHNITZEL](https://wordpress.org/support/users/tofuschnitzel/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-save-6/#post-12104034)
 * Status: resolved