phpBB

Development Wiki

Talk:Tutorial.Adding pages

From phpBB Development Wiki

Revision as of 18:12, 3 January 2008 by Highway of life (Talk | contribs)

Fatal error: Call to undefined function get_user_avatar() in C:\Program Files\xampp\htdocs\phpbb3\new_page.php on line 45

I received this error when I directly copied your code:

  Fatal error: Call to undefined function get_user_avatar() in C:\Program Files\xampp\htdocs\phpbb3\new_page.php on line 45

I thought others might be interested, the fix was found on phpbb.com by adding this line:

  include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
  AFTER this line:
  include($phpbb_root_path . 'common.' . $phpEx);

I really appreciate the tutorial. Thanks for your work! -B

Added, good catch. :) - Highway of Life (talk) 18:12, 3 January 2008 (UTC)