Error when enabling

B747 - May 23, 2009 - 19:25
Project:960 Robots
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Rhino - May 24, 2009 - 13:45

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?

#2

jbrauer - May 24, 2009 - 18:41

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

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

#3

Rhino - May 25, 2009 - 08:44

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

Pretty theme too.

#4

B747 - May 25, 2009 - 13:44

I can confirm this works.

#5

plastique - May 27, 2009 - 19:43

Another confirmation, the fix works!

#6

ericatkins - May 29, 2009 - 03:59
Status:active» reviewed & tested by the community

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

#7

jjeff - May 29, 2009 - 12:15

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.

#8

jjeff - May 30, 2009 - 16:17
Status:reviewed & tested by the community» fixed

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

#9

Rhino - June 1, 2009 - 10:14

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

#10

hypatia7777 - June 1, 2009 - 16:47
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

#11

jjeff - June 1, 2009 - 17:01
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.

#12

Stefanos Karagos - June 1, 2009 - 19:01

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

#13

jjeff - June 1, 2009 - 20:31

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

#14

jjeff - June 5, 2009 - 20:47
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.