Uncaught TypeError: window.csGlobal.stickyBarsFindTopOffset is not a function

Hi there,

The latest update broke our on-page links.

Test here: https://clevermessenger.com/live/new-salespage/

Most of the links in the header will link to a section on the page. But since the update, it doesn’t anymore. If we take a look in the console we see the following error:

x.js?ver=1635754519:1 Uncaught TypeError: window.csGlobal.stickyBarsFindTopOffset is not a function
    at Object.<anonymous> (x.js?ver=1635754519:1)
    at cs.bb9cc16.js?ver=1635754519:1
    at Array.reduce (<anonymous>)
    at Object.apply (cs.bb9cc16.js?ver=1635754519:1)
    at offset (cs.bb9cc16.js?ver=1635754519:1)
    at l (cs.bb9cc16.js?ver=1635754519:1)
    at HTMLBodyElement.<anonymous> (cs.bb9cc16.js?ver=1635754519:1)

Also, I’m getting emails from my WordPress installation that something is wrong with the site.

Here are the details:

WordPress version 5.8.1
Current theme: X (version 9.1.2)
Current plugin: (version )
PHP version 7.1.33

And here is the error detail

Error Details

An error of type E_PARSE was caused in line 268 of the file /var/www/vhosts/clevermessenger.com/httpdocs/wp-content/themes/x/framework/functions/x/migration.php. Error message: syntax error, unexpected ‘)’

So far I already tried to clear cache, and debug multiple cases by switching off plugins, but that didn’t work. I’m also in touch with the team over at WProcket to see if their plugin is conflicting, but from looking a the errors here it seems to be pointing to the theme.

Thanks, looking forward to your reply.

Hi @stefanvandervlag,

Thanks for reaching out!

I saw a similar issue about the error details you’ve mentioned above and it has something to do with the PHP version. I suggest that you update your PHP version from 7.1.33 to 7.4 or up.

Hope that helps and let us know how it goes.

Thanks Marc for your reply.

Did some digging, and the PHP version is up to date though, the one I grabbed is from the WordPress email I received, but my plugin tells me this:

The issue still persists.

Thanks @marc_a

Latest update fixed the issue. This can be closed. Thanks guys!

Hi @stefanvandervlag,

We’re glad that the new update fixed your issue! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.