I am unable to complete the installation because of PHP Notices. Past the initial screen that allows me to choose an installation profile, my screen is filled with a lot of this:

Notice: Constant MARK_READ already defined in /Sites/drupal-7.x-dev/includes/theme.inc on line 24 Notice: Constant MARK_NEW already defined in /Sites/drupal-7.x-dev/includes/theme.inc on line 29 Notice: Constant MARK_UPDATED already defined in /Sites/drupal-7.x-dev/includes/theme.inc on line 34 ...

Is this a known issue? I couldn't find any other issues reporting this.

Comments

Magnity’s picture

What version of PHP are you using?

dboulet’s picture

PHP 5.2.11 on MAMP.

eMPee584’s picture

..just ran into this aswell, seems to be called by strange APC behaviour if apc.include_once_override=1 is set (will presumably become unnecessary with PHP5.3 anyways). If indeed you have APC enabled with this, try setting apc.stat_ctime=1 aswell and relaod your apache conf. See http://pecl.php.net/bugs/bug.php?id=15356 for reference...

dboulet’s picture

Title: APC's Include Once Override breaks install » PHP 'Constant already defined' notices break install

Thanks eMPee584, yes I think that this could be a bug with APC, I think that it was causing theme.inc to be included twice. Setting apc.stat_ctime=1 did not solve the issue, but turning off APC completely did get ride of the warnings, though I was still seeing this:

Warning: Invalid argument supplied for foreach() in /Users/user/Sites/drupal-7.x-dev/includes/database/database.inc on line 1430 Warning: Cannot modify header information - headers already sent by (output started at /Users/user/Sites/drupal-7.x-dev/includes/database/database.inc:1430) in /Users/user/Sites/drupal-7.x-dev/includes/bootstrap.inc on line 1003 ...

A separate issue?

Edit: see #671366: Installer is broken for more about this warning.

dboulet’s picture

Title: PHP 'Constant already defined' notices break install » APC's Include Once Override breaks install

I think that last warning was caused by the absence of a settings.php file, a separate issue.

So is there anything that we can do about this? Or is this purely an APC bug?

dboulet’s picture

Title: PHP 'Constant already defined' notices break install » APC's Include Once Override breaks install
Status: Active » Fixed

According to http://pecl.php.net/bugs/bug.php?id=15356, include_once_override is an experimental feature with known issues, so I supposed that the solution is to turn off this feature.

apc.include_once_override=0

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.