Local subfolder based install creating mixed content issues

What issue or error are you experiencing?

I’ve been having some issues using the Pattern Library feature in the Generateblocks Pro plugin within a local dev environment. This feature sends a request out to their servers to pull in template patterns, but it’s seemingly unable to connect if the Local site install is setup within in a subfolder. It will work fine if all the core files are moved back to the default path.

I have already contacted Generate support and they have said it is an issue with Local, as it seems to work fine in other local dev environments. I have also seen similar unresolved posts on here where a seemingly random port is append to some queries.

Here are some of the console errors:

Mixed Content: The page at 'https://test-gb-patterns.local/wp/wp-admin/post_php?post=2&action=edit' was loaded over HTTPS, but requested an insecure frame 'http://test-gb-patterns.local:10053/wp/?gb-template-viewer=1'. This request has been blocked; the content must be served over HTTPS. post-php: 1

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure frame '‹URL>'. This request has been blocked; the content must be served over HTTPS.

Initially because a lot of the console errors are mixed content or SSL related, I’ve assumed up to this point it has been an SSL/cors/browser related issue – but after testing everything I recently found the cause to be that this error only seems to happen if I have WP core files installed within a subfolder (ie. /wp/wp-admin etc), which I typically tend to do. If I switch the structure back to default and re-test, the library will load instantly.

I have sites running in production that have a similar subfolder structure, and the library works fine – it just seems that things break when doing it with Local.

Thanks for any help in advance,


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Create a fresh install, install GB+GB Pro, add SSL, update site path to subfolder, move files (ie. /wp/wp-admin etc).

Go to a new page and try to open GB Pattern Library, watch console for errors. Will not connect, and shows http connection attempts and appends a random port number.

If I switch the structure back to default and re-test, the library will load instantly.


System Details

  • Local Version: Version 9.0.5+6706

  • Operating System (OS) and OS version: Mac Sonoma 14.5

I have local SSL setup/trusted. Testing on fresh installs of WP 6.6 with only GB & GB Pro plugins installed, stock 2024 theme, tried on both Nginx and Apache server types. Tried flushing permalinks and clearing all the cache, different browsers etc and no luck.


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

Link to latest log file here


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.