duanfan1869 2019-03-22 01:31
浏览 360

Wordpress错误 - 抱歉,您无权访问此页面。 将网站从一个域迁移到另一个域后

I keep seeing the error - Sorry, you are not allowed to access this page. When trying to login to the website at the new hosting location and new domain.

What I have tried to far:

  • logged into PHP my admin created a new user in the wp_users table used md5() to set the password
  • went into the wp_usermeta and added wp_capabilities a:1:{s:13:"administrator";s:1:"1";}
  • added wp_user_level 10 to wp_usermeta table
  • created a new fresh .htaccess file
  • went into the wp_options table and updated template, stylesheet & active_plugins to use a twentyseventeen theme and plugins a:0:{}
  • I enabled WP_debug and only got the following errors:

[21-Mar-2019 23:22:42 UTC] PHP Notice:  Use of undefined constant is_transparent - assumed 'is_transparent' in /home/yarrasol/public_html/wp-content/themes/okab/framework/functions/admin/customizer/css-var/css_navbar.php on line 3
[21-Mar-2019 23:22:42 UTC] PHP Notice:  Undefined index: dima_body_background_image_repeat in /home/yarrasol/public_html/wp-content/themes/okab/framework/functions/admin/customizer/css-var/css_page.php on line 7
[21-Mar-2019 23:22:42 UTC] PHP Notice:  Undefined index: dima_body_background_image_position in /home/yarrasol/public_html/wp-content/themes/okab/framework/functions/admin/customizer/css-var/css_page.php on line 8
[21-Mar-2019 23:22:42 UTC] PHP Notice:  Undefined index: dima_body_background_image_size in /home/yarrasol/public_html/wp-content/themes/okab/framework/functions/admin/customizer/css-var/css_page.php on line 9
[21-Mar-2019 23:22:42 UTC] PHP Notice:  Undefined index: dima_body_background_image_attachment in /home/yarrasol/public_html/wp-content/themes/okab/framework/functions/admin/customizer/css-var/css_page.php on line 10 

There is more errors - but wasn't able to post them without getting flagged as spam.

Sorry for the long post, just trying to be as descriptive as possible thank you all in advance.

  • 写回答

1条回答 默认 最新

  • dtz8044 2019-03-22 02:22
    关注

    thank you your comments. I managed to figure out the issue. Due to the database tables in the original hosting server having a different prefix, I should have updated the wp-config.php file to the updated prefix. However I updated all the database tables to match the prefix shown in the config file, I noticed this issue as I dropped the wp_options table and loaded one in from a different wp install and it worked.

    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站