Support » Plugin: Just Map It! » [Plugin: Just Map It!] can't get JMI to work

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Author socialcomputing

    (@socialcomputing)

    Hi Thierry,

    Can you please include the url of the website on which you installed the Just Map It! plugin ?

    We are going to make some investigations on your installation.
    Could you please re-enable the JSON-API and JMI plugins on your wordpress blog ?

    Thank you.

    The same here! I already filled in the form and sent it to you. My url is http://thomas-leisner.de

    Thanks! Thomas

    Plugin Author socialcomputing

    (@socialcomputing)

    Hi Thomas,

    Thanks for your feedback.
    We received your form submission and we are investigating on this issue.

    Plugin Author socialcomputing

    (@socialcomputing)

    Thomas,

    The plugin didn’t work as expected because it couldn’t construct the JSON API root URL properly with your installation. You configured WordPress to have a home URL that is not the same as your main URL (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)

    You also added a redirection from http://thomas-leisner.de/ to
    http://thomas-leisner.de/en/ preventing access to JSON API from http://thomas-leisner.de/

    We made a fix to get the JSON API root URL from WordPress site url instead of WordPress home URL which seems more appropriate.

    You can download a JMI plugin version with the fix here : downloads.wordpress.org/plugin/jmi.2.0.2-jsonurl.zip

    Can you please test it and confirm that it works for you, so that we make it available for other plugin users ?

    Thanks

    Thank you for the quick reply.

    I tried the new version, but it still doesn’t work for me. Can I leave the API base as is (http://thomas-leisner.de/api) in my case or should I change it?

    Regards, Thomas

    Plugin Author socialcomputing

    (@socialcomputing)

    You can leave the API base default value.

    Can you please open the file named “jmi.php” of Just Map It! plugin through your blog administration section (plugins -> editor menu) and confirm that you have the following value on line 22:

    $this->jsonURL = site_url('/index.php?json=jmi.');

    Regards,
    Jonathan

    Yes, I have got the same on line 22:

    $this->jsonURL = site_url('/index.php?json=jmi.');

    (Copied this from my installation)

    Best, Thomas

    Plugin Author socialcomputing

    (@socialcomputing)

    Ok,

    Then we need more information.
    Can you please paste here the values set for WordPress address and Site address options ? You can find them on the administration section, under Settings -> Global.

    Moreover can you explain how you configured url rewriting for your website ?

    Thanks,
    Jonathan

    Hi Jonathan,

    I have WordPress adress and Site adress at top level, that is: http://thomas-leisner.de. I have chosen the option “day and name” in permalink settings (is that what you mean by url rewriting?), that is: http://thomas-leisner.de/2012/08/24/sample-post/.

    I am using the plugin “Polylang” to split my site into german and english parts. I deactivated it, but that also didn’t solve the problem. In case you want to look at it you can find the plugin page here.

    Thanks for checking this,

    Thomas

    Plugin Author socialcomputing

    (@socialcomputing)

    Hi,

    We made a fresh install of WordPress with the “Polylang” plugin enabled and it worked out of the box with the Just Map It! plugin. We created 2 languages and several pages and posts and the map was successfully generated and displayed at the bottom of blog posts.

    The only difference I see in your case is that calling JSON Api at your blog root URL does not work. you should be able to access it when JSON API and Just Map It! plugins are both enabled : try http://thomas-leisner.de/index.php?json=jmi.last_posts&id=869&max=30 for example.

    Can you please post the content of the .htaccess file ?
    Which version of WordPress and of the JSON API and Just Map It! plugins are you using ?

    Thanks.
    Jonathan

    Hello Jonathan,

    I have 1.07 for JSON API, 2.0.2 for Just Map It! and 3.4.1 for WordPress. This is the content of my .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # BEGIN Audiobar
    
    <IfModule mod_headers.c>
    <FilesMatch "\.(mp3|ogg|oga|flac|wav)">
    	Header set Content-Disposition attachment
    </FilesMatch>
    </IfModule>
    
    # END Audiobar

    Does it matter that I have several domains on my server, so some kind of “URL rewriting” on the server side (don’t understand much of this, just an idea)?

    Best regards, Thomas

    Plugin Author socialcomputing

    (@socialcomputing)

    Hi

    It must be related to URL rewriting somehow.
    http://thomas-leisner.de/index.php?json=jmi.last_posts&id=869&max=30 is redirected to http://thomas-leisner.de/en/ with an HTTP 302 code (temporary redirect)

    Do you have access to the blog configuration server side ? (web server configuration files (apache ?))

    Could please also post all activated plugins on you blog with their version ?

    Regards,
    Jonathan

    Hi Jonathan,

    I don’t think I can access the blog configuration server side. The webspace is hosted by a big german telecom company (1und1.de) and I make adjustments via their website. I couldn’t find anything looking like access to configuration files there.

    I have activated the following plugins (latest version each):

  • Artiss YouTube Embed
    Bad Behavior
    CodeMirror for CodeEditor
    Collapsing Categories
    Easy Admin Color Schemes
    Easy FancyBox
    Hide Admin Icons
    JSON API
    Just Map It!
    NextGEN Gallery
    Polylang
    Scroll To Top
    Souncloud is Gold
    Unattach
  • I use a theme called “The Frances Wright”.

    I guess the redirection is done by Polylang, as it organizes URLs into german (/de) and english (/en) (in my case) and automatically directs german users to the german part and others to the english part. I guess that an unknown address will be directed to the homepage instead, but I have no idea how that works. As you tested Polylang on a clean install that shouldn’t be the problem.

    Best, Thomas

Plugin Author socialcomputing

(@socialcomputing)

Hello Thomas,

Thanks for all that information, it sure helped.
I was able to reproduce the issue on a clean install of WordPress 3.4.1 and the latest polylang plugin.
Playing with the polylang settings lead me to the same situation, experiencing a redirection when calling the JSON API URL.

A new fix is available for download here: http://downloads.wordpress.org/plugin/jmi.2.0.2-polylang.zip

Can you please test it and give some feedback ?
Thank you.

Regards,
Jonathan

Hi Jonathan,

sorry to say that, but it still doesn’t work. (Btw., I think I made this thread explode with my list somehow and don’t know how to fix it, sorry for that.)

Thomas

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘[Plugin: Just Map It!] can't get JMI to work’ is closed to new replies.