Skip to content

[ticket/17607] Add missing COULD_NOT_COPY language key#6968

Open
ECYaz wants to merge 1 commit into
phpbb:3.3.xfrom
ECYaz:ticket/17607
Open

[ticket/17607] Add missing COULD_NOT_COPY language key#6968
ECYaz wants to merge 1 commit into
phpbb:3.3.xfrom
ECYaz:ticket/17607

Conversation

@ECYaz

@ECYaz ECYaz commented Jun 22, 2026

Copy link
Copy Markdown

The convertor's copy_file() (includes/functions_convert.php) calls sprintf($user->lang['COULD_NOT_COPY'], ...) when a file copy fails during a board conversion, but the COULD_NOT_COPY key was missing from language/en/install.php, producing a broken/empty error message. This restores it.

Checklist:

  • Correct branch: 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17607

@github-actions

Copy link
Copy Markdown

The attempt to merge branch 3.3.x into master has completed after considering the changes in this PR.

  • Merge result: Success ✅

This PR is ready to be merged.

Comment thread phpBB/language/en/install.php Outdated
// Common converter messages
'CONVERT_NOT_EXIST' => 'The specified convertor does not exist.',
'DEV_NO_TEST_FILE' => 'No value has been specified for the test_file variable in the convertor. If you are a user of this convertor, you should not be seeing this error, please report this message to the convertor author. If you are a convertor author, you must specify the name of a file which exists in the source board to allow the path to it to be verified.',
'COULD_NOT_COPY' => 'Could not copy file <strong>%1$s</strong> to <strong>%2$s</strong><br /><br />Please check that the target directory exists and is writable by the webserver.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use <br>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, switched to <br>. Thanks for the review!

copy_file() in includes/functions_convert.php references
$user->lang['COULD_NOT_COPY'] when a file copy fails during a board
conversion, but the key was missing from language/en/install.php,
producing a broken/empty error message. Restore it with the
%1$s/%2$s source/target placeholders copy_file() passes.

PHPBB-17607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants