christophfranke on "[Plugin: Locatoraid - Store Locator Plugin] missing infobox.js"

ساخت وبلاگ

christophfranke
Member
Posted 5 days ago #

Hi everyone,

This plugin has a dependency on the url http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js, which is not available anymore due to Google closing their code hosting service.
The problem is quite easy to fix and I have developed a fix for it. Is there a way to submit it to the project, so you can ship a quick update to your 1k users, whose dependency has also broken?

Thanks!
Christoph

https://wordpress.org/plugins/locatoraid/

Deborah Johnson
Member
Posted 4 days ago #

Hi Christoph,

My map is broken as well. Is there another forum where you could post your fix if it can't be posted here. I've got a site I did for a client and I'm urgently looking for a solution.

Thanks.

Deborah

Tim Laurence
Member
Posted 4 days ago #

I would also be interested in the fix.

Thanks,
Tim

grumpiersam
Member
Posted 4 days ago #

So here's the quick solution meanwhile the plugin get's an update.

On the plugin directory:

  1. Copy this file content and put in on your server on a .js file
  2. Then search for the 4 files that have this reference:
    http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js
  3. Change that links reference to the file you have just created

Deborah Johnson
Member
Posted 4 days ago #

Hi grumplersam, thanks for your help. I can't find that reference. Would you be able to post the names of the files where this is found?

I'm almost a beginner with WordPress so not really sure where I should be looking. I have the version of the plugin before this one if that makes a difference?

Thanks,

Deborahj

grumpiersam
Member
Posted 4 days ago #

I don't think so.

There you go the name of the files:

  • applicationcontrollersload.php
  • applicationviewstemplate.php
  • applicationviewsadmininstall.php
  • applicationlibrarieslocatoraid_base.php

jasonfarran
Member
Posted 4 days ago #

A quicker (not as clean) fix is to (similar to what Grumpiersam said):

  1. Copy .js
  2. Save in your template directory
  3. Enqueue script in your functions file

example: wp_enqueue_script('locator-script', get_stylesheet_directory_uri() . '/js/infobox.js', array('jquery'),'1.1', false);

I'm sure the developer will release an update soon.

Thanks Google! Ugh!

Deborah Johnson
Member
Posted 4 days ago #

Hey thanks - finally got it to work. Awesome support from everyone. Thanks again.

Deborah

christophfranke
Member
Posted 3 days ago #

Hi all,

I was hoping to get an answer by the developers. However, I've created a bitbucket repository with the fixed source. You can clone it from [email protected]:christophfranke123/locatoraid-fork.git or just visit the bitbucket page at https://bitbucket.org/christophfranke123/locatoraid-fork/ and download it there somewhere, I guess..

It basically contains the minified version of the lost dependency infobox.js and includes it at the four source files mentioned before. I could not test all code paths though, so installing might fail with this code, but it works nicely in production.

Have a nice weekend!
Christoph

jblackbu
Member
Posted 3 days ago #

Thanks so much for the fix grumpiersam! Fixed for now on our site...

Hello everyone,
sorry for this issue, we've fixed the reference to the infobox file in the latest 2.6.6 version.

Hello everyone,
sorry for the issue, we've made a fix for this in the latest 2.6.6 version.

jasonfarran
Member
Posted 19 hours ago #

Awesome. Thanks for the update.

christophfranke
Member
Posted 9 minutes ago #

Thanks for the quick update!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 249 تاريخ : سه شنبه 28 ارديبهشت 1395 ساعت: 19:27