Fatal error when using it as maintenance theme :
Fatal error: Call to undefined function node_get_types() in

The solution in my opinion in is to use another condition.
I tried !defined('MAINTENANCE_MODE') which seems to be a standard way but it doesn't work because Drupal tries to load all files before starting its core functions.
Then i tried this module_exists('menu') and it did the trick. finally i thought that it's much safer to use function_exists('node_get_types').
There was also a warning after which has been take care of in this patch.
Warning: in_array() [function.in-array]: Wrong datatype for second argument in site\sina\sites\all\themes\acquia_marina\template.php on line 164

I attached the patch. please have look.

maintenance_theme_fatal_error.patch1.01 KBsinasalek


sinasalek’s picture

Do u accept this kind of patches, or i'm wasting my time?

dddave’s picture

I think at the moment the maintainers are very busy because of the refracturing all their themes are undergoing. Normally the support is very good but in the last weeks they simply don't seem to have the time.

sinasalek’s picture

Oh, so i should wait for now. thanks.

sinasalek’s picture

jwolf’s picture

Assigned: Unassigned » sociotech
sinasalek’s picture

@jwolf, Thanks for 2.0 release, i'm about to try it if it worked for me i'll re-roll this patch against 2.0

sinasalek’s picture

Status: Needs review » Fixed

Just updated to 2.0, theme settings codes are all moved to a function so the issue no longer exists.


Status: Fixed » Closed (fixed)

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