Notice: Undefined index: distribution_name în drupal_install_profile_distribution_name() (line 207 in /public_html/includes/install.inc).

CommentFileSizeAuthor
#2 drupal-1971068.patch472 bytessadashiv
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein’s picture

Component: profile.module » install system
Status: Active » Closed (duplicate)
sadashiv’s picture

FileSize
472 bytes

Hi @zet,

I faced the same issue after upgrading from drupal 6 to 7. On debugging I found that when we install drupal 7 as a fresh install then it makes a entry in system tables as a "standard" module installed with the path of installation profile so the code in install.inc loads it but when we upgrade from drupal 6 to 7 then the standard module status is 0 so it throws error, changing it 1 didn't fix my error.

I made the attached patch as a workaround.

Hth,
Sadashiv.

mskicker’s picture

drush rr
worked for me

Summit’s picture

Issue summary: View changes

Hi,
This is still not incorperated in Drupal 7.34 ... I do not see the duplicated issue somewhere linked to.
I will set this to active and tested by community if this is ok. Otherwise sorry to interfere.
Greetings, Martijn

Summit’s picture

Version: 7.22 » 7.34
Status: Closed (duplicate) » Reviewed & tested by the community
mspikes’s picture

When I apply this patch, I get a "Parse error: syntax error, unexpected T_IF in ~/docroot/includes/install.inc on line 207"

Ideas?

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: drupal-1971068.patch, failed testing.

David_Rothstein’s picture

The issue this is a duplicate of is mentioned in comment #1 (also linking it to it here now, so it's attached to the issue).

johnsonroots.com’s picture

I am a novice and having this same issue. How do I apply the patch. I have no idea.

dscoop’s picture

I am getting the same error in Drupal 7.50

Kris77’s picture

Run this command in phpmyadmin:
UPDATE system SET status=1 WHERE name='standard';

Its same to works.

ronald’s picture

What do I do if there's no row in the 'system' table where name = 'standard'?
Can I create it?

ronald’s picture

For the record and in case this helps anyone with the same issue.

What I did to fix this is:
* created a fresh Drupal 7 install, then
* copied the above record from the database (SELECT * from system WHERE name = 'standard';), and
* inserted it into the system table on my upgraded system.