For every page it generates, vBulletin needs to connect to the database.
If there is no database connection, vBulletin will give a database error message.
(The programmed php code executes as expected, and gives programmed feedback when it encounters a problem).
Those are completely different from error messages generated by PHP itself.
(The programmed php code cannot be executed, and PHP itself gives an error).