While doing a fresh install. Fresh code from CVS. Fresh database.

On the Install Profile step I get:

An HTTP error 500 occurred. 

I click on the error page link and at the bottom of pages and pages of an INSERT statement is this:

 Array ( ) SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "," at character 366 in _menu_router_build() (line 2611 of /var/www/localhost/htdocs/drupal/includes/menu.inc).

I am running the latest Drupal from CVS
PostgreSQL 8.0.15
Apache 2.2.10
PHP 5.28
Gentoo

CommentFileSizeAuthor
#4 database_version_check.patch3.01 KBberdir

Comments

chx’s picture

Title: An HTTP error 500 occurred. » PostgreSQL required version check broken

Better error message should come from #361833: Check required database version during installation. However, you should note that PostgreSQL 8.0 is not supported so you should not be able to get this far.

burningdog’s picture

Title: PostgreSQL required version check broken » PostgreSQL (and MySQL) required version check broken

Drupal doesn't install on MySQL versions prior to 5 - there should be a check for this too.

berdir’s picture

Title: PostgreSQL (and MySQL) required version check broken » Check required database version during installation
Status: Active » Needs review
StatusFileSize
new3.01 KB

Ok, attaching a first patch...

- Note that the error messages are only displayed with the patch at #807396: Remove old error handling from theme_update_page() applied
- Every driver can now specify the required version and if set, DatabaseTasks will automatically check it.
- I wasn't sure what to put there for SQlite, I couldn't find anything on http://drupal.org/requirements
- We can only check the version when we have an open connection to the database, so we can only check it when the user has already entered the database information.

retester2010’s picture

#4: database_version_check.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, database_version_check.patch, failed testing.

superspring’s picture

Status: Needs work » Active

Looking in includes/install.inc I can see a few functions which look very similar to this
- an abstract minimumVersion for each engine to overwrite
- a function named checkEngineVersion which checks against the given minimum version

devtrash is this bug still valid?

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.