Title: Unserialize errors
Last modified: November 11, 2017

---

# Unserialize errors

 *  Resolved [simonws](https://wordpress.org/support/users/simonws/)
 * (@simonws)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/unserialize-errors/)
 * Hi again
 * As I’ve mentioned before I’m REALLY keen to use this plugin but I’m having problems
   with the particular site where I want to use it. When I try to add a map I get
   as far as seeing the “Preview not available yet message” and stall. I turned 
   on debugging in wp-config.php and got the following notices in the back end:
 * unserialize(): Error at offset 0 of 1 bytes in […] /wp-content/plugins/locateanything/
   admin/class-locate-anything-admin.php
 * for line 205, 175 and 120.
 * Any suggestion as to what might be the causing these errors would be really appreciated!
    -  This topic was modified 8 years, 4 months ago by [simonws](https://wordpress.org/support/users/simonws/).

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

 *  Plugin Author [locateanything](https://wordpress.org/support/users/locateanything/)
 * (@locateanything)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/unserialize-errors/#post-9677663)
 * Hi Simon
 * Could you please check in LocateAnything > Options that you have selected at 
   least one post type in “what do you want to localize”?
 *  Thread Starter [simonws](https://wordpress.org/support/users/simonws/)
 * (@simonws)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/unserialize-errors/#post-9706145)
 * Hi and thanks for the response!
 * No, I hadn’t any post types selected as I had originally been targeting custom
   post types created with a plugin, which I had disabled!
 * I changed the options to localize Posts.
 * Now after the “Preview not available yet” message I get a number of debugging
   errors in the preview pane:
 * Notice: Undefined index: locate-anything-marker-html-template in […]/wp-content/
   plugins/locateanything/public/class-locate-anything-public.php on line 676
 * Notice: Undefined index: locate-anything-marker-type in […]/wp-content/plugins/
   locateanything/public/class-locate-anything-public.php on line 686
 * Deprecated: Non-static method Locate_Anything_Public::remove_shortcodes() should
   not be called statically in […]/wp-content/plugins/locateanything/public/class-
   locate-anything-public.php on line 876
 * Deprecated: Non-static method Locate_Anything_Public::setup_shortcodes() should
   not be called statically in […]/wp-content/plugins/locateanything/public/class-
   locate-anything-public.php on line 883
 * Notice: get_author_name is deprecated since version 2.8.0! Use get_the_author_meta(‘
   display_name’) instead. in […]/wp-includes/functions.php on line 3831
 *  Plugin Author [locateanything](https://wordpress.org/support/users/locateanything/)
 * (@locateanything)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/unserialize-errors/#post-9706179)
 * Hello,
 * Those are notices, most of them don’t originate from the plugin. to make those
   notices disappear go to your wp-config.php file, mark the DEBUG constant to false
   and save it.
 *  Thread Starter [simonws](https://wordpress.org/support/users/simonws/)
 * (@simonws)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/unserialize-errors/#post-9706273)
 * Thanks for quick response!
 * Sorry I didn’t explain the problem I have very well, it is that the preview map
   is still not loading after making sure a post type is localized.
 * I switched debugging back on and I copied those notices as I thought they might
   be useful. As you can tell(!) I’m not a PHP developer so it’s hard for me to 
   tell what’s relevant…

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

The topic ‘Unserialize errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/locateanything_d9d9d9.svg)
 * [LocateAnything - Searchable map Plugin](https://wordpress.org/plugins/locateanything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/locateanything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/locateanything/)
 * [Active Topics](https://wordpress.org/support/plugin/locateanything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/locateanything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/locateanything/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [simonws](https://wordpress.org/support/users/simonws/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/unserialize-errors/#post-9706273)
 * Status: resolved