Make WordPress Core

Opened 11 years ago

Last modified 3 years ago

#23487 new defect (bug)

is_blog_installed gives erroneous result on moved database

Reported by: kjeld-flarup's profile Kjeld Flarup Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Upgrade/Install Keywords: needs-patch dev-feedback
Focuses: Cc:


I resently moved my blogs to a new database, but when I tried it out, on of the blogs wanted a new install. Of course I did not want to do an install and overwrite my blog.

I indirectly found the reason in is_blog_installed, which suppresses database errors. Thus I did not see this error.

SELECT command denied to user 'techblog'@'localhost' for table 'wp_options'

Of course it was my fault, but I virtually had to take the wordpress code apart to find out why my migration failed.

Of course this is not a big problem on new installs, but very likely to happen on moving databases.

Change History (3)

#1 @SergeyBiryukov
11 years ago

  • Component changed from General to Upgrade/Install

#2 @chriscct7
9 years ago

  • Keywords needs-patch dev-feedback added
  • Severity changed from trivial to normal

Perhaps log a credentials don't work in the PHP error logs? Though it looks like it does that already

#3 @SergeyBiryukov
3 years ago

  • Summary changed from is_blog_installed gives errorneus result on moved database to is_blog_installed gives erroneous result on moved database
Note: See TracTickets for help on using tickets.