最新消息: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)

tinymce - Strange wp-admin problem for all usersadminstrators except the original one?

matteradmin5PV0评论

I don't get this but for all wp admin users except the original main user i get a strange error which causes the visual editor to fail:

load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,w&load[]=ord-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plupload,wp-mediaelement,wp-api-req&load[]=uest,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check&ver=4.9.5:690 Uncaught TypeError: Cannot read property 'hasClass' of undefined
    at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,w&load[]=ord-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plupload,wp-mediaelement,wp-api-req&load[]=uest,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check&ver=4.9.5:690)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:9)
    at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:3)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:2)
    at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:2)
    at a.fn.init.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable,moxiejs,&load[]=plupload&ver=4.9.5:3)
    at Object.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,w&load[]=ord-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plupload,wp-mediaelement,wp-api-req&load[]=uest,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check&ver=4.9.5:48)

I have given All users (4) the same role administrator, but only the "main" user with Amdinistrator rol has the correct visual editor.

Now with some trial and error i notice selecting the button 'Disable the visual editor when writing' for an user the visual editor seem to appear correctly. I know the qtranslate has been edited as it doesn't work with WP 4.9.x anymore. But how can i check the qtranslate files for specific conditional statements for Administrator user

My conclusion is the old plugin qtranslate causes the problem, how can i make it to work with the other users as well???

"documentBaseUrl" is set for Administrator user but not for all other users?

Is it possible to add Adminstrator role to another user so I have 2??

Any tips?

(btw: stuck to WP 4.9.5)

Post a comment

comment list (0)

  1. No comments so far