See the image attached. When you get an error during installation something is wacked with the ajax/something or other/messaging something wrong.

Comments

jensimmons’s picture

Oh, to be clear — this error was caused by something I wrote while making a patch. There's no need to fix the error that's talked about in the text.

The problem is the way the page LOOKS. The layout is broken, and presumably, will be broken every time any error is given.

jensimmons’s picture

In order to reproduce this problem, modify an install file with a parse error. Like replace a comma in an array with a semicolon in default.install and then attempt and installation— that should throw an error for you.

jensimmons’s picture

Status: Active » Needs work

Ah, I think I mis-marked this as "active", when it should be "needs work".
Still learning how the culture of the issue cue works.
"active" = ignored? I think so.

And oh look. I now have the power to embed this image. :)
And the addiction begins....

this is crazy broken

bleen’s picture

Version: 7.x-dev » 6.x-dev
StatusFileSize
new53.92 KB

I'm pretty sure (based on the screenshot) that you are experiencing this issue in D6, not d7 (Drupal 7 uses the new admin theme "SEVEN" during the install; not Garland)... That said, just to be sure I followed your reproduce instruction on D7 and the error appeared as intended: see attached.

To be clear, I havent tested this in D6 so I'm not sure if this is reproducible

jensimmons’s picture

Version: 6.x-dev » 7.x-dev

No this was in D7, for sure.

The problem occurred was *before* Seven was set to be the installer theme. And the problem is not the error message itself (that specific error was caused by the still-broken D7 patch I was writing) — the problem was the layout. This layout mess happened several times, even as the error messages were changing.

The question now really is:
Is there a problem (when using Seven) with the layout for the installer when any error message is thrown.
Perhaps not since the theme has changed. But perhaps there still is.

bleen’s picture

Status: Needs work » Closed (won't fix)

I understand that the problem is with the layout and not the error .. I did this:

  • created a blank DB and downloaded a fresh copy of d7 from head
  • edited default.install by adding a ';' in the middle of a random line
  • ran install

The result of this was the error you can see in #4...

Please provide precise instructions on how to reproduce this error and I will look again. Until then I need to mark this as "wont fix" because it cannot be reproduced.

Also, I don't believe you can get as far in the install process as you got (passed "setup database") without seeing the SEVEN theme. I didn't even think you can get to the first page where you choose your profile without seeing the SEVEN theme. Hmmmm... maybe I'm wrong about this

David_Rothstein’s picture

Priority: Critical » Normal
Status: Closed (won't fix) » Active

I've seen this before and can reliably reproduce it by putting code like this in default_install():

db_query('abc');

I'm guessing the issue has to do with the type of exception that is being thrown for the error? Perhaps some types of exceptions trigger the correct error behavior, and others trigger the one with the messed-up layout.

See http://drupal.org/node/156119 for a description of issue statuses. This one should be "active" since there is no patch yet.

aspilicious’s picture

This still relevant?

bleen’s picture

Status: Active » Closed (won't fix)

I have still not been able to reproduce this error. I don't see a function called "default_install()" anywhere, but i tried putting db_query('abc') in sever different places within install.php and within profiles/standard/standard.install. I certainly got errors, but the page layout was never compromised.

I'm going to mark back to "won't fix" until someone can post some precise steps to follow to reproduce this error.

David_Rothstein’s picture

Title: Crazy layout bug for errors during installation » Errors during installation include part of the page's HTML in them
Status: Closed (won't fix) » Active
StatusFileSize
new56.04 KB

Yes, default_install() is now standard_install() - and it seems the bug sort of still occurs, although not as bad as it used to. Using db_query('abc') as mentioned above (and just putting it as the first line in standard_install()) and then installing using the Standard profile, I don't see the crazy layout anymore, but the error message is still spitting out part of the HTML from the rest of the page (see attached screenshot, and note the list of installation tasks within the red message).

And it looks even weirder on a command-line installation, since that is now spitting out all the page's HTML vs just catching and printing the exception as plain text like it normally would.

bleen’s picture

Status: Active » Fixed

I believe this issue has been fixed somewhere along the way...

I just checkout out a fresh copy of D7, stuck a parse error in the standard_install() function and I got an error displayed properly:

Only local images are allowed.

David_Rothstein’s picture

Status: Fixed » Active

A parse error is different. But if I do an invalid database query like before, I still get a screenshot similar to #10.

I think it must be an issue with how the AJAX is interacting with exceptions thrown on the PHP side. (Parse errors might not go through Drupal's exception handler - that might be why they're different.)

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.