• Resolved breeakpoint

    (@breeakpoint)


    While clicking on a button that is not related to flouristone plugin I get the following error from the flouristone javascript file that loads globally.

    florist-one-flower-delivery-public.js?ver=1.10.1:201 Uncaught TypeError: Cannot read property 'substring' of undefined
        at florist-one-flower-delivery-public.js?ver=1.10.1:201
        at dispatch (jquery.js?ver=1.12.4-wp:3)
        at r.handle (jquery.js?ver=1.12.4-wp:3)
        at Object.trigger (jquery.js?ver=1.12.4-wp:3)
        at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
        at jquery.js?ver=1.12.4-wp:3
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
        at Object.trigger (jquery.history.js?ver=1.10.1:1)

    I am not familiar with history.js but I assume the action property does not exist on the state.data object. Maybe an additional check to see if the action property exists before attempting a substring() call should occur?

  • The topic ‘Cannot read property ‘substring’ of undefined’ is closed to new replies.