我在Ubuntu16有一个WordPress网站。04 VPS。问题是,我无法编辑我的小部件区域customize.php
在我的WordPress网站中不起作用。我想这是因为谷歌没有验证我的服务器?我们对此不太确定。
我试图触发错误,并花了我的时间去做,因为这个错误在我的日志中有点疯狂。
下面是error.log
:
[Tue Jan 30 11:39:21.584827 2018] [:error] [pid 3369] [client 52.221.193.115:53650] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/edit.php
[Tue Jan 30 13:29:04.089561 2018] [:error] [pid 5059] [client 52.221.193.115:39534] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/post.php?post=2020&action=edit
[Tue Jan 30 13:29:35.960070 2018] [:error] [pid 5040] [client 13.229.239.178:57777] PHP Fatal error: Uncaught Error: Call to undefined function thrive_get_theme_options() in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/themes/focusblog/functions.php:689\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-hook.php(286): thrive_exclude_category(Object(WP_Query))\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-query.php(1634): do_action_ref_array(\'pre_get_posts\', Array)\\n#4 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-query.php(3222): WP_Query->get_posts()\\n#5 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/post.php(1704): WP_Query->query(Array)\\n#6 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-customize-manager.php(1036): get_posts(Array)\\n#7 /va in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/themes/focusblog/functions.php on line 689, referer: http://tipsforsurvivalists.com/wp-admin/themes.php
[Tue Jan 30 13:29:56.859829 2018] [:error] [pid 5038] [client 54.169.161.13:39340] PHP Fatal error: Uncaught Error: Call to undefined function thrive_get_theme_options() in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/themes/focusblog/functions.php:689\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-hook.php(286): thrive_exclude_category(Object(WP_Query))\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-query.php(1634): do_action_ref_array(\'pre_get_posts\', Array)\\n#4 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-query.php(3222): WP_Query->get_posts()\\n#5 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/post.php(1704): WP_Query->query(Array)\\n#6 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-customize-manager.php(1036): get_posts(Array)\\n#7 /va in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/themes/focusblog/functions.php on line 689, referer: http://tipsforsurvivalists.com/wp-admin/nav-menus.php
[Tue Jan 30 13:36:53.030902 2018] [:error] [pid 5040] [client 52.77.214.37:46626] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/index.php
[Tue Jan 30 14:39:22.636595 2018] [:error] [pid 6449] [client 34.228.140.92:39682] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/
[Tue Jan 30 14:40:44.035451 2018] [:error] [pid 6335] [client 34.235.165.206:56194] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/
[Tue Jan 30 15:14:15.004992 2018] [:error] [pid 6773] [client 54.169.185.149:35062] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/
[Tue Jan 30 15:14:20.068491 2018] [:error] [pid 6890] [client 52.221.193.115:39745] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: http://tipsforsurvivalists.com/wp-admin/
[Tue Jan 30 15:14:42.685040 2018] [:error] [pid 6903] [client 52.77.214.37:49346] PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: \'{\\n "error" : "invalid_grant"\\n}\' in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(\'1/glQXffm7BsvKU...\')\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Goog in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288
[Tue Jan 30 15:17:36.127515 2018] [:error] [pid 6946] [client 52.221.193.115:34401] PHP Fatal error: Uncaught Error: Call to undefined function thrive_get_theme_options() in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/themes/focusblog/functions.php:689\\nStack trace:\\n#0 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-hook.php(286): thrive_exclude_category(Object(WP_Query))\\n#1 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\\n#2 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\\n#3 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-query.php(1634): do_action_ref_array(\'pre_get_posts\', Array)\\n#4 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-query.php(3222): WP_Query->get_posts()\\n#5 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/post.php(1704): WP_Query->query(Array)\\n#6 /var/www/html/tipsforsurvivalists.com/public_html/wp-includes/class-wp-customize-manager.php(1036): get_posts(Array)\\n#7 /va in /var/www/html/tipsforsurvivalists.com/public_html/wp-content/themes/focusblog/functions.php on line 689, referer: http://tipsforsurvivalists.com/wp-admin/widgets.php
我试图重命名整个插件文件夹,但仍然没有工作,没有任何进展。我也是
dpkg-reconfigure tzdata
谷歌的身份验证很好,但没有进展。告诉我你们有没有解决这个问题的办法。