I had my woocommerce website hosted on a domain, after hosting it on my xampp local server it shows this error:
我把我的WooCommerce网站托管在一个域上,在我的XAMPP本地服务器上托管后,它显示了这个错误:
Fatal error: Uncaught WC_Data_Exception: Invalid billing email address
更多回答
优秀答案推荐
After googling for hours these processes worked. This type of error is coming usually when you run the backup on the local server using plugin like All In One Migration Tool
在谷歌搜索了几个小时后,这些过程奏效了。当您使用像All in One迁移工具一样的插件在本地服务器上运行备份时,通常会出现此类错误
- Go to the
wp_options
(your prefix might be different)
- change the
admin_email
to a real email
- Come back to your dashboard and refresh the page
- Go to
Setting > General Setting > Administration Email Address
(Now the Administration Email Address is what you put in the database)
- Now you are here (Setting > General Setting > Administration Email Address) don't change anything just hit the save changes button at the bottom.
- Now from your dashboard go to
User > Edit Admin
if the email box is not updated automatically change the email here also.
- Scroll down to the bottom and click Update Profile
I resolved it by changing woocommerce from email and admin email.
我解决了这个问题,将WooCommerce从电子邮件和管理电子邮件改为。
I was getting this error on localhost after migrating (with the All In One Migration plugin) a live website to a local environment. So, locally my administrator email changed to admin@localhost
. This error was not fixed even after changing the administrator email address to the actual email.
在将实时网站迁移(使用All in One迁移插件)到本地环境后,我在本地主机上收到此错误。因此,在本地,我的管理员电子邮件更改为admin@localhost。即使在将管理员电子邮件地址更改为实际电子邮件后,也未修复此错误。
Solution: I fixed this error by using Find and replace option in phpmyadmin
on wp_woocommerce_sessions
table. Also attached the screenshot.
解决方案:我通过在wp_WooCommerce_SESSIONS表的phpmyadmin中使用查找和替换选项修复了这个错误。还附上了截图。
更多回答
where can i see it on database?
我可以在数据库的什么地方看到它?
Go to wp_options
change admin_email
to your email.
转到wp_Options,将admin_mail更改为您的电子邮件。
我是一名优秀的程序员,十分优秀!