Troubleshoot infinite loading in the cloud library

Sometimes when inserting page or pattern from the cloud library the insert function gets stuck in a loop. See screenshot. In most cases, it can be solved by updating settings on your site or server.

Infinite loading example

Why does it happen?


Something is preventing the code or image insertion from functioning correctly.

How to resolve it

Investigate error messages which indicate permission issues.


Use the browser console to "inspect" and look for any errors and you might see something like "You are not authorized to upload this file type."


Check server settings (Apache, Nginx, etc.)

Possible causes:

  • File type restrictions in WordPress
  • User role lacking file upload permissions
  • Strict rules enforced by security plugins
  • Server settings restricting certain file types/sizes (JSON, webp etc.)

Take these resolution steps:


  • Check 'Settings' > 'Media' for allowed file types
  • Modify user roles to enable file uploads
  • Configure or temporarily disable restrictive security plugins
  • Contact hosting about server restrictions

If issues persist, try additional troubleshooting:


  • Test theme/plugin compatibility by deactivating one by one
  • Reduce conflicts by removing unnecessary plugins

As a last resort, consider adding this code to wp-config.php to allow uploading blocked file types.

define('ALLOW_UNFILTERED_UPLOADS', true);

Here's a step-by-step guide to add the code safely to your wp-config.php file:


Backup your wp-config.php file


Before making any changes, it's essential to create a backup of your wp-config.php file. This will ensure that you can revert to the original file if something goes wrong.


Step 1: Access your wp-config.php file


You can access your wp-config.php file using an FTP client (e.g., FileZilla) or a file manager in your hosting control panel (e.g., cPanel).


Step 2: Download a copy of the file


Download a copy of the wp-config.php file to your local machine. This will be your backup.


Step 3: Open the file in a code editor


Open the downloaded wp-config.php file in a code editor (e.g., Notepad++, Sublime Text, or Atom).


Step 4: Add the code


Add the following code at the end of the file, just before the /* That's all, stop editing! Happy publishing. */ line:

define('ALLOW_UNFILTERED_UPLOADS', true);

Step 5: Save the file


Save the updated wp-config.php file.


Step 6: Upload the updated file


Upload the updated wp-config.php file to your website, overwriting the existing file.


Verify the changes


After uploading the updated file, verify that the changes have taken effect. You should now be able to upload files that were previously blocked.


Remember to exercise caution when modifying your wp-config.php file, as it's a critical file for your WordPress installation. If you're not comfortable making these changes, consider consulting with a developer or a WordPress expert.


Contact support via email if you need further assistance resolving similar issues.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us