Vote Up/Down v7.x-1.0beta1
Drupal 7.54
PHP 5.6.30

HTTP Error 500 when loading a nodes' "Voting details" page.
error_log says:

PHP Fatal error: Cannot use object of type stdClass as array in /home/XXX/public_html/XXXX/includes/theme.inc on line 1071

Suggested Fix:
File vud_node.module, line 257:
theme('username', $account),

Change to:
theme('username', array('account' => $account)),

Comments

gumanov created an issue. See original summary.

marvil07’s picture

Sounds right, would you like to provide a patch?
For reference, you can follow the instructions on Making a Drupal patch with Git

gumanov’s picture

Sorry, but I don't have experience with git, and do not have it installed.

marvil07’s picture

OK, I will apply the change manually.

For the next time you can also create a patch without git:

# first, create a copy
cp original-file modified-file
# now edit modified-file with the editor you use
# finally create the patch
diff -up original-file modified-file > you-created-a-patch.patch

  • marvil07 committed c1d7e72 on 7.x-1.x
    Issue #2873996 by gumanov: Error on node page - "Voting details"
    

  • marvil07 committed 25bf185 on 7.x-1.x authored by gumanov
    Issue #2873996 by gumanov, marvil07: Error on node page - "Voting...
  • marvil07 committed ee31145 on 7.x-1.x
    Revert "Issue #2873996 by gumanov: Error on node page - "Voting details...
marvil07’s picture

Status: Active » Fixed

Thanks!

PS: Sorry for the noise, I forgot to use the right attribution.

gumanov’s picture

Ah ok, I didn't realize I could do that. Thanks!

Status: Fixed » Closed (fixed)

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