Forum: Geo Job Manager

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Geo Job Manager premium extension please open a new premium support ticket.

Geo Job Manager plugin throwing error

Forums Geo Job Manager Geo Job Manager plugin throwing error

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
  • #30943

    I have installed GEO Job Manager to display google map. but it is showing Javascript Syntax error ” }); “.
    Here is below link for your reference.

    Please let me know anything require from my side.



    Thank you for the purchase Sembisoft.

    Looking at the error in the console it seems that there are

    tags that being automatically generated most likely by the theme that you are using.

    Would you please change the theme you are using to a default WordPress theme and tell me if the problem is gone?

    Thank you



    You are right, it is something to do with the theme. I switched to the twenty fourteen theme and it works fine.

    On closer inspection, with our theme, it seems that there are some <p> tags being inserted into the google maps script by the theme. Do you know how we can stop this? I tried to use the Disable Automatic p Tags plugin ( but this did not stop them being inserted into the google maps script.

    Would really appreciate any help you can give on troubleshooting this.



    Try the below:

    1) Open the file geo-job-manager/includes/gjm-funcitons.php

    2) replace the lines 988 – 1006 which should be :

    with the below:

    3) save and test


    Hi Eyal,

    Thanks for the quick reply, you are a star! That code didn’t quite work, p tags were still being inserted, but you got me pointed in the right direction. I removed all line breaks from the script so the code is now:

    That now works.

    Thanks very much for your help, much appreciated.


    Makes sense. I guess that in the lines break is where the theme “injects” the P tags.

    I am glad I could help.

    I will either add the fix above or a different fix for the next official release.


    Hi Eyal,

    I have another JS issue unfortunately.

    I have removed the line breaks as per the previous issue from the function javascript_trigger in includes/gjm-functions.php so that the code is now:

    After removing the line breaks, I am no longer getting the ‘invalid token’ error, but I am now getting the following error:

    You can see the issue at the following url:

    Job Listing

    Any idea on how we can resolve this?



    This JavaScript can be a bit tricky to manager this way.

    Have you tried adding the below to the functions.php file of your theme?


    Hi Eyal,

    Thanks for that. I have added those lines to functions.php and the auto p tag insertion is gone, I’ll save that one for the future too.

    I have reverted the function back to the original code as well now.

    But unfortunately the JS error remains:



    looks like the code is messed up a bit:

    the characters #038;& should be &&


    Hi Eyal,

    Where were you seeing the #038? I checked the includes/gjm-functions.php file and it has && in that line of code. I even removed the && and added in again. Could you please point me to where you are seeing the #038; please?



    Hi Eyal,

    Ok, I found it, saw it in the page when I went to ‘view source’. I removed the following line from my themes functions.php

    add_filter('the_content', 'wptexturize', 15);

    That seems to have sorted it out.

    Thanks for your help with this. Much appreciated.


    This is what I see in the console.



    You are welcome.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.