Common Issues With phpBB 3.0.3

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10346
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Common Issues With phpBB 3.0.3

Post by Noxwizard » Mon Nov 24, 2008 7:22 am

In order to keep the updating process as smooth as possible, the most common errors have been compiled in this topic. If you have any questions or require further assistance, please open a new support topic.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10346
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Common Issues With phpBB 3.0.3

Post by Noxwizard » Mon Nov 24, 2008 7:23 am

Error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2405: array_fill() [function.array-fill]: Number of elements must be positive
[phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2405: array_merge() [function.array-merge]: Argument #2 is not an array
[phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2408: vsprintf() [function.vsprintf]: Too few arguments
Solution:
Open:
includes/functions_admin.php

Find:

Code: Select all

if (substr_count($log[$i]['action'], '%') - sizeof($log_data_ary)) 
Replace With:

Code: Select all

if ((substr_count($log[$i]['action'], '%') - sizeof($log_data_ary)) > 0) 
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10346
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Common Issues With phpBB 3.0.3

Post by Noxwizard » Mon Nov 24, 2008 7:24 am

Error:

Code: Select all

Fatal error: Call to undefined function get_user_avatar() in /includes/ucp/ucp_groups.php on line 441
Solution:
Open:
includes/ucp/ucp_groups.php

Find: (Around line 416)

Code: Select all

$group_id    = request_var('g', 0); 
After, Add:

Code: Select all

include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 
Find and Remove: (Around line 461)

Code: Select all

include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10346
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Common Issues With phpBB 3.0.3

Post by Noxwizard » Mon Nov 24, 2008 7:26 am

Error:

Code: Select all

PHP Fatal error: Call to undefined function phpbb_chmod() in /includes/acm/acm_file.php on line 96
Solution:
Open:
includes/acm/acm_file.php

Find: (Around line 94)

Code: Select all

            @flock($fp, LOCK_UN);
            fclose($fp); 
After, Add:

Code: Select all

            if (!function_exists('phpbb_chmod'))
            {
                global $phpbb_root_path;
                include($phpbb_root_path . 'includes/functions.' . $phpEx);
            }
 
Find: (Around line 198)

Code: Select all

                @flock($fp, LOCK_UN);
                fclose($fp); 
After, Add:

Code: Select all

                if (!function_exists('phpbb_chmod'))
                {
                    global $phpbb_root_path;
                    include($phpbb_root_path . 'includes/functions.' . $phpEx);
                }
 
Find: (Around line 417)

Code: Select all

            @flock($fp, LOCK_UN);
            fclose($fp); 
After, Add:

Code: Select all

            if (!function_exists('phpbb_chmod'))
            {
                global $phpbb_root_path;
                include($phpbb_root_path . 'includes/functions.' . $phpEx);
            }
 
Since there are mutliple Find/Replaces that are almost identical, please check the repository for reference, to make sure you made the edits correctly:
http://code.phpbb.com/repositories/diff ... p?rev=9073
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

Locked

Return to “[3.0.x] Support Forum”