0

I tried to commit the changes to the “Filenames to latin” plugin and got the SVN error.

The error message:

Error: Commit failed (details follow): Error: Commit blocked by pre-commit hook (exit code 1) with output: Error: [Error output could not be translated from the native locale to UTF-8.] Error: This error was generated by a custom hook script on the Subversion server. Error: Please contact your server administrator for help with resolving this issue.

The latest code for the plugin I had issues with is in the GIT repo.

Does anyone know how can I solve this issue?

Thank you in advance.

3
  • 1
    You should contact [email protected] if you're having trouble with the repo. Commented Jul 9, 2019 at 12:28
  • Are you working on Windows? It might be worth trying to commit on something that's UTF-8 native e.g. a Linux VM or a Mac, if you have access to one (e.g. on one of your VMs where you host WordPress?) Get a fresh checkout from Git there and then try and commit to SVN. I'd guess the problem an odd interaction with the Windows version of SVN, so a Git Bash console on Windows probably wouldn't work unless you can get SVN built for it too. WSL might work, again if you can get native versions of Git and SVN inside that. Commented Jul 13, 2019 at 9:31
  • @Rup Yes, I am working on Windows and unfortunately dont have access to Linux or Mac right now. And thank you for the suggestion. I will think about this option too. Commented Jul 13, 2019 at 20:25

2 Answers 2

1
+50

Wow, your plugin is very useful. #@^%$@ -> rysunok. That's so amazing!!!

About your problem, I guess you copied and pasted the special characters from other into your php files, so it caused this error.

My solution:

Try opening the file in Notepad++, click on Encoding tab at top menu, you will see the current encoding of your file, choose Encode in UTF-8 to convert them into UTF-8 format.

Repeat the same action to all your files. Commit your WP project to see the result.

1
  • Thank you very much @Jamy for your reply. The issue was with missing comma actually. And your solution was helpful to debug it. Commented Jul 15, 2019 at 4:16
0

Finally solved the issue. The problem was with the missing comma in the key-value array. It took me some time to found it. The error message was misleading: "Error output could not be translated from the native locale to UTF-8." WordPress SVN repository is doing code analyse before using pre-commit hook. I hope this will be useful for someone else too.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.