$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>posts - Many buttons not functioning in WordPress dashboard (as admin)|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

posts - Many buttons not functioning in WordPress dashboard (as admin)

matteradmin9PV0评论

I am having issues with many functions in the dashboard of one of my sites. For example, when I try to click on a tab in any of my plugins (e.g. to change settings), it doesn't do anything. Also, when I click on any of the "edit" buttons (e.g. to change status of a post), they don't do anything.

I'm intermittently getting this error in the console, though I'm not sure if it's related:

Uncaught TypeError: Cannot read property 'hasClass' of undefined
at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.0.2:1)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)
at Object.trigger (jquery.js?ver=1.12.4:3)
at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4:3)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at a.fn.init.trigger (jquery.js?ver=1.12.4:3)
at Object.<anonymous> (heartbeat.min.js?ver=5.0.2:1)

which is coming from this file: wp-auth-check.min.js?ver=5.0.2:1

Also, when I navigate anywhere in the dashboard, this appears once in the console:

Uncaught TypeError: Cannot read property 'createElement' of undefined
at SGPBGutenbergBlock.init (gutenbergBlock.min.js?ver=3.1.4.1:9)
at HTMLDocument.<anonymous> (gutenbergBlock.min.js?ver=3.1.4.1:170)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)

which is from this file: gutenbergBlock.min.js?ver=3.1.4.1:9

Not sure why this started happening and can't seem to find a solution after Googling around for quite some time.

As I said the first error just happens intermittently; when I click one of the non-functioning tabs/buttons, nothing appears in the console.

I'm guessing there is some sort of error with jQuery/AJAX? Please let me know if any more information is needed -- I'm not very experienced with this stuff. Any help is appreciated.

Thanks!

Post a comment

comment list (0)

  1. No comments so far