Skip to main content

How should I resolve the error "There has been an issue publishing the plugin, please try again. Unexpected server error: please report the code parameter to the team" when publishing my plugin?

Sofia Maconi avatar
Written by Sofia Maconi
Updated over 2 months ago

If you're experiencing difficulties publishing your plugin, it may be due to a minification error. This error occurs when we are unable to minify or obfuscate your plugin's code. In this article, we'll go over some steps you can take to resolve this issue.

Checking the "Obfuscate Client-Facing Code" Option

The first step in troubleshooting this issue is to check if the behavior persists when not selecting the "obfuscate client-facing code" option when publishing your plugin. This option is located in the plugin editor page, under the "Publish" tab. If the error does not occur when this option is unchecked, then the issue may be related to the obfuscation process.

Using the Console Command

If the error persists even when the "obfuscate client-facing code" option is unchecked, we recommend using a console command to bypass the minification process. This command is window.do_not_minify_plugin = true. Here's how you can use this command:

  1. Open up your plugin editor in a new tab or window.

  2. While in your plugin editor, right-click (or command-click on a Mac).

  3. Click "Inspect" in the context menu.

  4. Navigate to "Console".

  5. Within the console, enter the following command: window.do_not_minify_plugin = true.

  6. Press "Enter" on your keyboard.

If you're unsure how to open your browser console, you can refer to this resource for instructions.

Once the console command has been entered, try publishing your plugin again.

Did this answer your question?