Support » Plugin: Greenhouse Job Board » Error while using the plugin with Elementor

  • Resolved tysoncete

    (@tysoncete)


    I’m getting this error in my console while using this plugin with Elementor:

    Uncaught TypeError: Cannot read property 'length' of undefined
        at greenhouse_jobs (greenhouse-job-board-public.js?ver=2.7.3:698)
        at HTMLDivElement.<anonymous> (greenhouse-job-board-public.js?ver=2.7.3:11)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at HTMLDocument.<anonymous> (greenhouse-job-board-public.js?ver=2.7.3:10)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at Function.holdReady (jquery.js:2)
        at editor.min.js?ver=2.5.13:2

    My shortcode is just [greencode], nothing special about it.

    Also getting this:

    {status: 404, error: "Job not found"}
    error: "Job not found"
    status: 404
    __proto__: Object

    Any ideas about this??

    • This topic was modified 1 year, 6 months ago by tysoncete.
Viewing 9 replies - 1 through 9 (of 9 total)
  • My wordpress version is actually the last one.. for which this plugin hasn’t been tested: 5.1.1

    Plugin Author brownbagmarketing

    (@brownbagmarketing)

    Try [greenhouse] for your shortcode.

    Sorry for the typo above. I do use [greenhouse] already. I’m looking at the plugin code itself now, but I’m not that familiar with PHP 😀

    Do you have any advices to debug it? Should it work in wordpress 5.1.1?

    Thanks

    Plugin Author brownbagmarketing

    (@brownbagmarketing)

    It looks like you’re not returning any jobs. Can you set a breakpoint on line 698 in greenhouse-job-board-public.js and tell us if you have any jobs in json.jobs?

    Or do you have a link to your dev site?

    Thanks for replying. Yeah, it looks like it’s not returning jobs, but I’m not sure why exactly. It’s able to create the estructure but the json is actually empty for some reason. We are trying to implement it here:
    https://circuscode.wpcomstaging.com/careers/

    and we are actively using it here:
    https://www.bagelcode.com/careers

    I believe, the token and everything is the same, so it should work.. but it doesn’t.
    Cheers

    Hi again, by looking at the code of the original website (the one we are replicating now in WordPress), I can see that the code is:

    <div id="grnhse_app"></div>
    <script src="https://boards.greenhouse.io/embed/job_board/js?for=bagelcode"></script>
    <script>Grnhse.Iframe.load();</script>

    It might be that the last bit is missing. I’m trying that out now.

    Yep, it’s working now.

    Thanks guys, it helped me actually, I was hitting some brick walls with this.

    Just to mark it as resolved

    Plugin Author brownbagmarketing

    (@brownbagmarketing)

    Glad you got it worked out.

    FYI, the token is only used for POST to the Greenhouse API, like an application submittal. The jobs are publicly available via the API so no need for a token to GET the jobs.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error while using the plugin with Elementor’ is closed to new replies.