Talk:Adding pages
From phpBB Development Wiki
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)
Include Errors
A really stupid one. I have my forum code unzipped to a 'devbb' folder in the webserver's root directory. In this case I had to change the line
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
to
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './devbb/';
As I said, a really simple one
