By Espen on Monday, 05 October 2015
Posted in General Issues
Likes 0
Views 553
Votes 0
Hi.

I just installed EB. I have two issues so far.

Error 1

Failed to load resource: the server responded with a status of 404 (Category not found) . [Error] (syntaxhighlighter.js, line 0). The file dosn´t exist under the media folder.

Error 2

You have included the Google Maps API multiple times on this page. This may cause unexpected errors. Is there any way to turn this api off? The Google maps api is included in my jreview setup.
Hey Espen,

I am sorry that delay of this reply,

I have checked our code, it seems like that was different with Easydiscuss so can't use the same method to solve this.

Currently only have to commented a few line of code in this file as what i did before -> JoomlaFolder\administrator\components\com_easyblog\includes\maps\maps.php

We will see if we can find out the better solution with this in the future.
·
Thursday, 08 October 2015 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Espen,

I am sorry that delay of this reply,

May i know how to reproduce with your first error in your site?

By the way, can you provide us with your Joomla backend and FTP access so we can help you check on this?
·
Monday, 05 October 2015 10:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.

I have attached a link under optional information. If you inspect the page you will see the error in the console. I have checked, and the file syntaxhighlighter.js dosn´t exist in the media folder.
·
Monday, 05 October 2015 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Espen,

I am still investigate on this, it seems like this `content - Easydiscuss` plugins causing the conflict issue.

By the way, Regarding with your first issue, I already applied some fix in this file JoomlaFolder\plugins\content\easydiscuss\tmpl\default.scripts.php, it should work fine now.
·
Monday, 05 October 2015 16:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Espen,

I have temporary commented out some of the code in this file -> JoomlaFolder\administrator\components\com_easyblog\includes\maps\maps.php

After clear your site cache from backend and now getting this error : Uncaught TypeError: window.google.maps.Load is not a function

Also do you know any component or plugins also trigger the Google maps script in your site?
·
Monday, 05 October 2015 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.

jreview is using the Google Maps integration. I guess it is loaded since the live search is using the maps api for its location service. It's not possible to turn this script off (see https://forum.jreviews.com - search Google Maps).

PS: The lastest changes you made breks jreview functionality. Using location search on EB pages dosn't work anymore.
·
Monday, 05 October 2015 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Espen,

I am sorry that delay of this reply,

I've checked in your site, but I am not really sure what causing this error shown on console tab -> Uncaught TypeError: window.google.maps.Load is not a function

I believe this error will not causing any issue in your site.
·
Tuesday, 06 October 2015 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.

After you made a change to this file: JoomlaFolder\administrator\components\com_easyblog\includes\maps\maps.php the jreview location service is not working on EB blog post pages (see attachment). Could you please revert the changes? I think it is possible to detect if the Google API js is loaded before so it won't try to load it twice.
·
Tuesday, 06 October 2015 19:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi again.

The error is avoided by turning the location service off in EasyDicuss. The core problem is that the google maps api is trying to load several times. If you are using booth jreview and ED/EB this issue is likely to occur. Disabling it works great as a workaround, but hope that you could find a permanent solution to this issue.

Please let me know if you find a solution to this. For now on i´ll keep the location service off, and keep the changes that you made to the map.php file
·
Wednesday, 07 October 2015 00:06
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Espen,

I am sorry that delay of this reply,

I already applied some better solution in this script file -> JoomlaFolder\media\com_easydiscuss\scripts\location.js

After compiled, it work fine now. What I fix is detect if the page already load Google map API script then no need load second time, can you give it a try now? (By the way, I already enabled back all the location settings from your Easydiscuss backend)
·
Wednesday, 07 October 2015 16:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks - this solve the ED Google map API issue

There is still a load issue on EB posts that has Google Maps attached (see link under optional information). Is it possible to add the same logic in the EB scripts as you did in ED?

Hope this fix will be included in the next update so it won't break again during updates
·
Wednesday, 07 October 2015 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.

I have a little bit lost here, do you mean that post page you mentioned is it still hitting this error?

You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

Because I checked the console tab do not show any similar with this error, but what i notice is this warning : GeoMaps: Google Maps Places API not loaded
·
Wednesday, 07 October 2015 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
The error: You have included the Google Maps API multiple times on this page. This may cause unexpected errors is now gone, but on EB posts where you have added a Google Map, you will see this error in the console: GeoMaps: Google Maps Places API not loaded

It might be jreview related, but it only happens on EB pages where you have added a Google Map. This cause the search (top left menu) not to work 100% correctly.
·
Wednesday, 07 October 2015 19:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for great support
·
Friday, 09 October 2015 02:49
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Friday, 09 October 2015 02:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post