Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
database system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2012 at 14:16 UTC
Updated:
11 Jul 2015 at 11:04 UTC
Jump to comment: Most recent
Comments
Comment #1
socialnicheguru commentedThis time I get it on this page:
admin/config/development/performance
Comment #2
liam morlandI am getting this when I try to use simpletest in D8:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: .../drupal/batch?id=29&op=do StatusText: Service unavailable (with message) ResponseText: Exception: theme() may not be called until all modules are loaded. in theme() (line 964 of .../drupal/core/includes/theme.inc).Comment #3
kbasarab commentedI get this same error as well. Mostly when trying to run simpletests on D8 against Bootstrap or Batch API.
Comment #4
liam morlandComment #5
dsteplight commentedJust a head's up for anyone who ran into this error message by changing a module. Make sure you don't break some array code by using a semi-colon instead of a comma at the end of your last array value e.g
array(
"foo" => "foo data",
"bar" => "bar data";
);
Make sure your last element looks like
"bar" => "bar data",
I'm using Version 7.16
Comment #6
Dharmendra.s commentedif you did't get any solution then goto the theme.inc file and comment this line
//throw new Exception(t('theme() may not be called until all modules are loaded.'));
now it's working fine...
Comment #7
Baroch Oren commentedThis also crashes the CiviCRM mail-send cronjob.
(Drupal 7.30; CiviCRM 4.2)
I get:
and after trying #6, I still get
Comment #8
avpadernoThis queue is not for support requests. Please open a support request in the appropriate forum.
Comment #9
socialnicheguru commentedhas it been fixed?
This was more than a support request.
I filed it as a bug/feature request against Drupal 7.
If there is an issue does an exception need to be thrown or can it just be an error:
//throw new Exception(t('theme() may not be called until all modules are loaded.'));
Comment #10
avpadernoAsk in the forums for support.
To file a bug report, you first need to check you can reproduce it on a fresh installation, and report what you were doing when getting the error message. I did it, and I cannot reproduce this bug. I doubt it's a Drupal core bug, since Drupal doesn't call
theme()when its bootstrap phase is not completed.Check also your site is not in maintenance mode.