Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1303: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1304: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4290: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4292: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4293: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4294: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
argh!!. thanks vectra-mods. yes, the MOD team changed it for the release and I'd say they thought the path was to the config.php instead of the phpbb_config table set in the ACP. !!vectra-mods wrote:Just tested this on version 3.0.7-PL1 fresh install, and enabled debug ,get the error below ,in viewtopic,memberslist,ucp.php etc etcCode: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1303: Undefined variable: phpbb_root_path [phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1304: Undefined variable: phpbb_root_path [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4290: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4292: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4293: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4294: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
Code: Select all
/**
* Get user country flag
*
* @param int $user_flag the current stored users country flag id
* @param string &$flag_country the country name will be stored here after execution
* @param string &$flag_code the country code will be stored here after execution
* @param string &$flag_img the country flag image as full img tag is stored here after execution
* @param string &$flag_img_src the country flag image source is stored here after execution
*
*/
function get_user_flag($user_flag, &$flag_country, &$flag_code, &$flag_img, &$flag_img_src)
{
global $flags, $config;
if (empty($flags))
{
global $cache;
$flags = $cache->obtain_flags();
}
if (!empty($user_flag))
{
$flag_country = (isset($flags[$user_flag]['country'])) ? $flags[$user_flag]['country'] : '';
$flag_code = (isset($flags[$user_flag]['code'])) ? $flags[$user_flag]['code'] : '';
$flag_text = $flags[$user_flag]['country'] . ' (' . $flags[$user_flag]['code'] . ')';
$flag_img = (!empty($flags[$user_flag]['image'])) ? '<img src="' . $config['flags_path'] . '/' . $flags[$user_flag]['image'] . '" alt="' . $flag_text . '" title="' . $flag_text . '" />' : '';
$flag_img_src = (!empty($flags[$user_flag]['image'])) ? $config['flags_path'] . '/' . $flags[$user_flag]['image'] : '';
}
}
You want this MOD changed for an outdated style?Redy wrote:Oh God...this is a disaster ... the style revolution is not on version 3.0.6 and there is no update, so I choose a different style and set it on my MODs, etc., just for one MOD with the flags? This is not a way fix this bug otherwise?
still the same debug error with that new peice of code.oddfish wrote:thanks modernist.
argh!!. thanks vectra-mods. yes, the MOD team changed it for the release and I'd say they thought the path was to the config.php instead of the phpbb_config table set in the ACP. !!
please change the edit to includes/functions_display.php to the following :Code: Select all
/** * Get user country flag * * @param int $user_flag the current stored users country flag id * @param string &$flag_country the country name will be stored here after execution * @param string &$flag_code the country code will be stored here after execution * @param string &$flag_img the country flag image as full img tag is stored here after execution * @param string &$flag_img_src the country flag image source is stored here after execution * */ function get_user_flag($user_flag, &$flag_country, &$flag_code, &$flag_img, &$flag_img_src) { global $flags, $config; if (empty($flags)) { global $cache; $flags = $cache->obtain_flags(); } if (!empty($user_flag)) { $flag_country = (isset($flags[$user_flag]['country'])) ? $flags[$user_flag]['country'] : ''; $flag_code = (isset($flags[$user_flag]['code'])) ? $flags[$user_flag]['code'] : ''; $flag_text = $flags[$user_flag]['country'] . ' (' . $flags[$user_flag]['code'] . ')'; $flag_img = (!empty($flags[$user_flag]['image'])) ? '<img src="' . $phpbb_root_path . $config['flags_path'] . '/' . $flags[$user_flag]['image'] . '" alt="' . $flag_text . '" title="' . $flag_text . '" />' : ''; $flag_img_src = (!empty($flags[$user_flag]['image'])) ? $phpbb_root_path . $config['flags_path'] . '/' . $flags[$user_flag]['image'] : ''; } }
nice. you can adjust it yourself with accesss to your database and one edit.azzurri wrote:I find the code thing a bit annoying. I remove flags to put in team logos instead and I have a couple of hundred logos. Since the "code" is only 2 characters I can go up to 99 and then I have to use various combinations like a1, a2, a3 and so on. Hard to keep track because if you add two of the same codes it will mess up your logos. It would be much, much better if the codes where 3 or 4 characters so I could go up to at least 999.
Code: Select all
ALTER TABLE `phpbb_flags` CHANGE `flag_code` `flag_code` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
ALTER TABLE `phpbb_users` CHANGE `user_flag` `user_flag` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
Code: Select all
<dd><input name="flag_code" type="text" id="flag_code" value="{FLAG_CODE}" maxlength="2" /></dd>
Sorry, I can't reproduce the error with the code change.vectra-mods wrote:... still the same debug error with that new peice of code.
Code: Select all
/**
* Get user country flag
*
* @param int $user_flag the current stored users country flag id
* @param string &$flag_country the country name will be stored here after execution
* @param string &$flag_code the country code will be stored here after execution
* @param string &$flag_img the country flag image as full img tag is stored here after execution
* @param string &$flag_img_src the country flag image source is stored here after execution
*
*/
function get_user_flag($user_flag, &$flag_country, &$flag_code, &$flag_img, &$flag_img_src)
{
global $flags, $config;
if (empty($flags))
{
global $cache;
$flags = $cache->obtain_flags();
}
if (!empty($user_flag))
{
$flag_country = (isset($flags[$user_flag]['country'])) ? $flags[$user_flag]['country'] : '';
$flag_code = (isset($flags[$user_flag]['code'])) ? $flags[$user_flag]['code'] : '';
$flag_text = $flags[$user_flag]['country'] . ' (' . $flags[$user_flag]['code'] . ')';
$flag_img = (!empty($flags[$user_flag]['image'])) ? '<img src="' . $config['flags_path'] . '/' . $flags[$user_flag]['image'] . '" alt="' . $flag_text . '" title="' . $flag_text . '" />' : '';
$flag_img_src = (!empty($flags[$user_flag]['image'])) ? $config['flags_path'] . '/' . $flags[$user_flag]['image'] : '';
}
}
Code: Select all
$phpbb_root_path
Somebody slap me !cisco007 wrote: ... don't exactly know if i should of replaced it but if it worked for the previous version, seems to be working here!
pls plsRedy wrote:God damn it...I uninstall this MOD, edit all files back, clear cache and users names still isnt in his placehow can i fix it plssss??