duanruoyu6675 2017-04-19 13:28
浏览 403
已采纳

Wordpress编辑器JS错误“TypeError:无法读取属性'获取'未定义”

The Issue: When editing pages or posts, tinymce doesn't load because of this error.

editor.min.js?ver=4.7.3:1 Uncaught TypeError: Cannot read property 'get' of undefined
    at Object.d [as go] (editor.min.js?ver=4.7.3:1)
    at HTMLAnchorElement.<anonymous> (editor.js?ver=4.7.3:43)
    at HTMLAnchorElement.dispatch (jquery.js?ver=1.12.4:3)
    at HTMLAnchorElement.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 HTMLAnchorElement.<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)

Install Notes:

  1. Wordpress 4.7.3
  2. Church & Events Theme (Latest Version, fresh installed)
  3. All Plugins up to date

Plugins Installed (All Deactivated)

+-------------------------------+----------+--------+---------+
| name                          | status   | update | version |
+-------------------------------+----------+--------+---------+
| akismet                       | inactive | none   | 3.3     |
| check-email                   | inactive | none   | 0.5.2   |
| contact-form-7                | inactive | none   | 4.7     |
| duplicate-post                | inactive | none   | 3.2     |
| duplicator                    | inactive | none   | 1.2.4   |
| easy-wp-smtp                  | inactive | none   | 1.2.5   |
| gravityforms                  | inactive | none   | 1.9.19  |
| groupsengine_plugin           | inactive | none   | 1.0.9   |
| hello                         | inactive | none   | 1.6     |
| iwp-client                    | inactive | none   | 1.6.3.2 |
| layerslider                   | inactive | none   | 6.3.0   |
| limit-login-attempts          | inactive | none   | 1.7.1   |
| login-security-solution       | inactive | none   | 0.56.0  |
| vamtam-love-it                | inactive | none   | 1.0.0   |
| wysija-newsletters            | inactive | none   | 2.7.9   |
| wp_migration-master           | inactive | none   | 1.2     |
| prayerengine_plugin           | inactive | none   | 1.7.5   |
| seamless-donations            | inactive | none   | 4.0.20  |
| seriesengine_plugin           | inactive | none   | 1.8.4   |
| the-events-calendar           | inactive | none   | 4.4.5   |
| the-events-calendar-filterbar | inactive | none   | 4.4     |
| events-calendar-pro           | inactive | none   | 4.4.5   |
| vamtam-push-menu              | inactive | none   | 2.0.11  |
| vamtam-sermons                | inactive | none   | 1.1.0   |
| varnish-http-purge            | inactive | none   | 4.1     |
| woocommerce                   | inactive | none   | 3.0.3   |
| wordpress-importer            | inactive | none   | 0.6.3   |
| wp-database-backup            | inactive | none   | 4.3.7   |
| wp-retina-2x                  | inactive | none   | 4.8.0   |
+-------------------------------+----------+--------+---------+

Debugging:

  1. Disabled all plugins
  2. Fresh install of Theme
  3. Fresh install of wordpress
  4. Switched to default theme (no more error)
  5. Contacted theme author (said they could not reproduce)

Additional Notes: The only thing I can think of is its something in the db itself that's causing the issue? Are there any other debugging steps I can try?

I'm using this same theme on other site and it doesn't have the error. So its something specific to the site in question. But a fresh wordpress install, fresh theme, and no plugins puts me at a loss as to how to track it down. Thanks in advance for any tips/help!

Updated 4/19/17 On a whim I started with a fresh wordpress install, with only the church and event theme installed. No errors. So one by one I copied the tables from the production site to the new wordpress install using this query

DROP TABLE IF EXISTS dev_db.wp_users;
CREATE TABLE dev_db.wp_users LIKE production_db.wp_users;
INSERT INTO dev_db.wp_users SELECT * FROM production_db.wp_users;

After copying each table, I refreshed the page editor to see if the error happened. As soon as I copied the wp_users and wp_usermeta tables the error happened. So something in one of those tables is causing a js error on the front end? Hmmm..

  • 写回答

1条回答

  • dongweng9474 2017-04-19 15:04
    关注

    My user not having a nickname is what was causing the issue. Going to 'Your Profile' entering a nickname and saving fixed the issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路