Hi,

When trying to access any content with this theme enabled I get:

Fatal error: Call to undefined function profile_load_profile() in /home/heebie/public_html/blog/sites/all/themes/ninesixtyrobots/template.php on line 63

and nothing else loads.

Any ideas?

Thanks,

heebie.

Comments

Rhino’s picture

I tested it just to see what it lookeed like and get the exact same thing. Can one turn off the profile_real_name-feature somehow?

jbrauer’s picture

Untested but this should work if you change line 61 of template.php to:

if ($object->uid && $object->name && module_exists('profile')) {

Rhino’s picture

Yes! Tested that, and it works like a dream. Thank you.

Pretty theme too.

B747’s picture

I can confirm this works.

plastique’s picture

Another confirmation, the fix works!

ericatkins’s picture

Status: Active » Reviewed & tested by the community

Got the same error and #2's fix worked.

jjeff’s picture

Thanks for the fix!

This has been fixed in the 2.x development branch and will be included in the next release.

http://drupal.org/node/470132/release

p.s. We're keeping the 1.x branch as-is so that it matches up with the examples on the Drupal theming videos. The 2.x branch will contain all fixes and improvements for general use.

jjeff’s picture

Status: Reviewed & tested by the community » Fixed

Just rolled 2.0-beta1. This fix is included in this release.

Rhino’s picture

Thank you, it's a really nice looking theme and a great tutorial.

hypatia7777’s picture

Title: Fatal error: Call to undefined function profile_load_profile() » Fatal error: Can't use function return value in write context in .../sites/all/themes/ninesixtyrobots/template.php on line 64
Version: 6.x-1.x-dev » 6.x-2.0-beta1
Component: Miscellaneous » Code
Priority: Critical » Normal
Status: Fixed » Active

Lovely theme! Unforunately I got this error when I tried to activate it:
Fatal error: Can't use function return value in write context in .../sites/all/themes/ninesixtyrobots/template.php on line 64

jjeff’s picture

Title: Fatal error: Can't use function return value in write context in .../sites/all/themes/ninesixtyrobots/template.php on line 64 » Error when enabling
Status: Active » Fixed

Fixed.

Now rolling new release: 6.x-2.0-beta2.

Stefanos Karagos’s picture

I suppose that you have to create a new release for your DVD now?

jjeff’s picture

Ha! Actually, this problem was created as a result of a different "fix" to the theme.

jjeff’s picture

Status: Fixed » Closed (fixed)