• Resolved simonws

    (@simonws)


    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 7 years, 3 months ago by simonws.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author locateanything

    (@locateanything)

    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

    (@simonws)

    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

    (@locateanything)

    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

    (@simonws)

    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.