$.timepicker is undefined

Support General $.timepicker is undefined

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1179
    CouponsComCouponsCom
    Participant

    I'm getting this js error ("$.timepicker is undefined") when I activate recent versions of the Meta Box plugin (tested with 4.5.4, 4.5.5 and 4.5.6). I also see 404 errors for /meta-box/css/jqueryui/jquery-ui-timepicker-addon.css and /meta-box/js/jqueryui/jquery-ui-timepicker-addon.js.

    I tried duplicating/renaming the minified versions of those two files and that fixed the 404 errors but resulted in a new js error: "ReferenceError: RWMB_Datetimepicker is not defined".

    I've disabled all other plugins but still get the error. Switching to the twentyfifteen theme makes the error go away, so I'm guessing the plugin is expecting my theme to load something it's not loading. My theme is for a customized CMS that outputs posts in json format so I don't load any js or css other than what WordPress loads by default.

    Any suggestions will be greatly appreciated. Thanks!

    Ira

    #1180
    CouponsComCouponsCom
    Participant

    I reverted back to the older version of meta-box that I was using (4.4.1) and I don't see the problem there.

    #1198
    Anh TranAnh Tran
    Keymaster

    How did you integrate Meta Box into your theme? It's quite important here as the twentyfifteen still works. Can you provide more details on that?

    Thanks.

    PS: Here is the documentation on how to include Meta Box in themes/plugins: https://metabox.io/docs/include-meta-box-plugin-themes/

    #1214
    CouponsComCouponsCom
    Participant

    Hi Anh,

    Thank you for your reply. I haven't included the meta-box plugin itself in my theme--I'm just using the plugin downloaded from your site. In my theme, I have standard code like "new RW_Meta_Box( $meta_box )".

    Also, I was able to narrow the problem down to something changed in version 4.4.2 of the plugin. 4.4.1 works fine but 4.4.2 gives me the error.

    Thanks!
    Ira

    #1220
    Anh TranAnh Tran
    Keymaster

    Hmm, can you please update the plugin to the latest version and use this way to register meta boxes? It's important to note that the way you register meta boxes is old and it causes some problems (as mentioned in the link above).

    Thanks.

    #1223
    CouponsComCouponsCom
    Participant

    Ok, I'll give it a try. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘$.timepicker is undefined’ is closed to new replies.