Title: Undefined error occurred
Last modified: August 11, 2020

---

# Undefined error occurred

 *  Resolved [chrisrarendt](https://wordpress.org/support/users/chrisrarendt/)
 * (@chrisrarendt)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-occurred/)
 * The issue can be found here: [https://staging1.ww5.cityofpasadena.net/water-and-power/wp-admin/admin.php?page=metaslider&id=42](https://staging1.ww5.cityofpasadena.net/water-and-power/wp-admin/admin.php?page=metaslider&id=42)
   
   The preview works: No It works with other themes: No It works when I disable 
   all other plugins: Haven’t Tried Meta Slider version: 3.16.4
 * I can’t save any slideshow anymore, even a new one. It used to work a while ago.
   I removed all the theme files and it doesn’t work. The preview does load but 
   it doesn’t reflect the content I provided.
 * Console error:
    app-3-16-4.min.js?ver=3.16.4:2 MetaSlider (save-error): undefined
   notifyError @ app-3-16-4.min.js?ver=3.16.4:2 (anonymous) @ app-3-16-4.min.js?
   ver=3.16.4:2 Promise.catch (async) (anonymous) @ app-3-16-4.min.js?ver=3.16.4:
   2 l @ app-3-16-4.min.js?ver=3.16.4:2 (anonymous) @ app-3-16-4.min.js?ver=3.16.4:
   2 forEach.t.<computed> @ app-3-16-4.min.js?ver=3.16.4:2 pt @ app-3-16-4.min.js?
   ver=3.16.4:2 a @ app-3-16-4.min.js?ver=3.16.4:2 (anonymous) @ app-3-16-4.min.
   js?ver=3.16.4:2 (anonymous) @ app-3-16-4.min.js?ver=3.16.4:2 save @ app-3-16-
   4.min.js?ver=3.16.4:2 (anonymous) @ app-3-16-4.min.js?ver=3.16.4:2 Ht @ app-3-
   16-4.min.js?ver=3.16.4:2 t.$emit @ app-3-16-4.min.js?ver=3.16.4:2 save @ app-
   3-16-4.min.js?ver=3.16.4:2 click @ VM1156:3 Ht @ app-3-16-4.min.js?ver=3.16.4:
   2 n @ app-3-16-4.min.js?ver=3.16.4:2
 * Network tab:
    save (blocked: mixed-content)
 * Request URL: [http://staging1.ww5.cityofpasadena.net/water-and-power/wp-json/metaslider/v1/settings/save](http://staging1.ww5.cityofpasadena.net/water-and-power/wp-json/metaslider/v1/settings/save)
   
   Referrer Policy: strict-origin-when-cross-origin Provisional headers are shown
   Accept: application/json, text/plain, */* Content-Type: multipart/form-data; 
   boundary=—-WebKitFormBoundaryeiKWsSShgFyiFvF9 Referer X-Requested-With: XMLHttpRequest
   X-WP-Nonce: f9ca419026 slideshow_id: 42 action: ms_update_all_settings settings[
   type]: flex settings[width]: 1920 settings[height]: 500 settings[effect]: fade
   settings[navigation]: false settings[center]: on settings[smartCrop]: disabled
   settings[carouselMargin]: 5 settings[hoverPause]: on settings[delay]: 3000 settings[
   animationSpeed]: 600 settings[direction]: horizontal settings[easing]: linear
   settings[prevText]: < settings[nextText]: > settings[cssClass]: settings[printCss]:
   on settings[printJs]: on settings[noConflict]: on

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

 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13236770)
 * Hi [@chrisrarendt](https://wordpress.org/support/users/chrisrarendt/)
 * Unfortunately the error message isn’t very helpful “MetaSlider (save-error): 
   undefined”. Does an error show when you try any other action? For example adding
   a slide, or searching for slideshows (from the top search bar)?
 * The slideshow also saves when previewing. Do you see an error during that action
   as well?
 * Do you know how to enable debugging in WordPress? A better error message might
   appear.
 *  Thread Starter [chrisrarendt](https://wordpress.org/support/users/chrisrarendt/)
 * (@chrisrarendt)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13236841)
 * I can search.
    I can not preview by clicking, but I can alt+p to preview. The
   click doesn’t do anything but the alt+p tries to save, which results in the same
   error for both the calls to save and preview.
 * What do you mean about enabling debugging in WordPress? I tried this but it didn’t
   give any errors for metaslider:
 * error_reporting(E_ALL);
    ini_set(‘display_errors’, ‘1’);
 * There was one error but I think it is unreleated:
    Notice: Undefined offset: 
   1 in /home/enter869/staging1/wp-content/plugins/reorder-my-sites/reorder-my-sites.
   php on line 38
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13236937)
 * Hi,
 * Perhaps unrelated but what about if you disable that plugin? Any change?
 * To enable debugging you need to navigate to the wp-config.php file and look for:
 * define(‘WP_DEBUG’, false);
 * Change this to:
    define(‘WP_DEBUG’, true);
 * You can try to set it up like this:
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       define( 'WP_DEBUG_DISPLAY', true );
       @ini_set( 'display_errors', 1 );
       define( 'SCRIPT_DEBUG', true );
       ```
   
 *  [StandOutSites](https://wordpress.org/support/users/standoutsites/)
 * (@standoutsites)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13244675)
 * Related to this issue. In addition to the error mentioned above. Another error
   is reported that I believe can help identify the problem in the code. Also, we
   did disable plugin Reorder My Sites and it didn’t resolve the problem.
 * `VM1363:1 Mixed Content: The page at 'https://staging1.xxxxxxx.net/water-and-
   power/wp-admin/admin.php?page=metaslider' was loaded over HTTPS, but requested
   an insecure XMLHttpRequest endpoint 'http://staging1.xxxxxx.net/water-and-power/
   wp-json/metaslider/v1/slideshow/single?action=ms_get_single_slideshow&id=7706'.
   This request has been blocked; the content must be served over HTTPS.`
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13244702)
 * Hi [@standoutsites](https://wordpress.org/support/users/standoutsites/)
 * That has to do with your WordPress configuration and probably the value of `home_url`
   in your settings. An SSL plugin might sove that issue for you.
 * Here’s the function we use to build that URL if you want to take a look under
   the hood: [https://developer.wordpress.org/reference/functions/get_rest_url/](https://developer.wordpress.org/reference/functions/get_rest_url/)
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13332570)
 * Hi,
 * I’ll mark this as resolved as we didn’t hear back, but feel free to reply if 
   needed or have any more questions.

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

The topic ‘Undefined error occurred’ 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/)

## Tags

 * [cant-save](https://wordpress.org/support/topic-tag/cant-save/)
 * [undefined error](https://wordpress.org/support/topic-tag/undefined-error/)

 * 6 replies
 * 3 participants
 * Last reply from: [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/undefined-error-occurred/#post-13332570)
 * Status: resolved