# Blueprints not working

**URL:** <https://community.localwp.com/t/blueprints-not-working/11567>\
**Category:** Support\
**Created:** [March 15, 2019, 4:07pm UTC](https://community.localwp.com/t/blueprints-not-working/11567 "2019-03-15T16:07:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabowles](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pabowles](https://community.localwp.com/u/pabowles)\
**Post date:** [March 15, 2019, 4:07pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/1 "2019-03-15T16:07:39Z")

</div>

I’m on MacOS Mojave and using the latest version of Local. Trying to use the blueprints feature but when I create a site from a blueprint, it doesn’t actually load the site when I go to view it or go to admin area. Instead, it just loads the php in the browser. See screenshot. I’ve tried creating new ones but they all have the same result. Any advice on how to fix this?

 ![36%20PM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/9/94f6d4957e26c2f3da462ae5ccda5a195f239758.png)

---

<div class="post-metadata">

**Author:** ![andypeters](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/andypeters/32/4469_2.png) [@andypeters](https://community.localwp.com/u/andypeters)\
**Post date:** [March 18, 2019, 4:58pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/2 "2019-03-18T16:58:44Z")

</div>

@pabowles

I’m sorry to see this error when using blueprints. Could you tell me some more details on the environment you are using for this site and the original site you created the blueprint from? Have you tried restarting the newly created site? Another suggestion would be to try and restart the Local Machine (navigate to Help, then select “Restart Local Machine”).

If none of that helps you there, could you post the Local logs and the site log files? [How do I retrieve Local's log file?](https://local.getflywheel.com/community/t/how-do-i-retrieve-locals-log-file/3720)

---

<div class="post-metadata">

**Author:** ![pabowles](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pabowles](https://community.localwp.com/u/pabowles)\
**Post date:** [March 18, 2019, 7:20pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/3 "2019-03-18T19:20:29Z")

</div>

Attached is the log file. I’ve tried restarting the computer, re-installing the site from scratch, even a new url/site name. Anything I create normally will work fine. However, if I create a new site in Local with a blueprint then it does this.  
[local-by-flywheel.log](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/a/a13157a7a0980d3736412a254691a167dd91a214.log) (440.2 KB)

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [March 18, 2019, 8:17pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/4 "2019-03-18T20:17:13Z")

</div>

@pabowles,

Thanks for the log file!

According to the log, it looks like your Blueprint is using the Custom environment. Is that correct?

* * *

Does the original site that the Blueprint is based on load correctly?

If so, can you try exporting the site and then re-importing it? You can export the site by right-clicking on it in the sidebar and then going to “Export…”. Once the site is exported, you can re-import it by dragging and dropping the resulting zip from the export onto Local’s main window to initiate the import.

---

<div class="post-metadata">

**Author:** ![pabowles](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pabowles](https://community.localwp.com/u/pabowles)\
**Post date:** [March 18, 2019, 8:30pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/5 "2019-03-18T20:30:32Z")

</div>

Yes the original site loads and works fine. I’ve tried cloning it and that doesn’t work. I just tried exporting and importing as you suggested and that does not work either.

![](https://gml.email/v3.2/t/image/MTU1Mjk0MDg4NmMxNzIzZjRjYTVjNmVkZGNhNDMwMjc0NDc4MDM5NTRlJm1haWxAcGhpbGlwYm93bGVzLmNvbSZsb2NhbC1yZXBsaWVzK2M2NmEyZGNhMTE4MTI0MjhiMzFjNWVlMDdhYjg2NDdlQGdldGZseXdoZWVsLmNvbQ.gif)

---

<div class="post-metadata">

**Author:** ![slafrenaye](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/slafrenaye/32/7930_2.png) [@slafrenaye](https://community.localwp.com/u/slafrenaye)\
**Post date:** [July 20, 2019, 12:06pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/6 "2019-07-20T12:06:21Z")

</div>

I have the same exact issue. If i use a site Blueprint on the same environment, i then end up only seing a php file after clicking ‘see site’. It also use a custom environment…

Please guide on how we can resolve this bummer. Thx.

 ![33%20PM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/6ff3875a8cc108e3b86999dacde252b8542c46be.png) [local-by-flywheel.log](https://community.localwp.com/uploads/short-url/8FAQK3zDbgbUgGhxwQnYayzEgp3.log) (102.1 KB)

---

<div class="post-metadata">

**Author:** ![slafrenaye](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/slafrenaye/32/7930_2.png) [@slafrenaye](https://community.localwp.com/u/slafrenaye)\
**Post date:** [July 20, 2019, 12:12pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/7 "2019-07-20T12:12:06Z")

</div>

BTW, i also tried without success to export / re-import the site (under differant name). Same result : [http://mydefaulttemplate2.local/wp-admin/](http://mydefaulttemplate2.local/wp-admin/) will display a PHP file instead of the actual WP dashboard. And if i try to ‘view site’, i see a php blank:

 \<?php /\*\* \* Front to the WordPress application. This file doesn't do anything, but loads \* wp-blog-header.php which does and tells WordPress to load the theme. \* \* @package WordPress \*/ /\*\* \* Tells WordPress to load the WordPress theme and output it. \* \* @var bool \*/ define( 'WP\_USE\_THEMES', true ); /\*\* Loads the WordPress Environment and Template \*/ require( dirname( \_\_FILE\_\_ ) . '/wp-blog-header.php' );

---

<div class="post-metadata">

**Author:** ![slafrenaye](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/slafrenaye/32/7930_2.png) [@slafrenaye](https://community.localwp.com/u/slafrenaye)\
**Post date:** [July 20, 2019, 12:14pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/8 "2019-07-20T12:14:18Z")

</div>

This is my environment : OS Majave 10.14.5 with Local 3.2.1. I use Chrome Version 75.0.3770.142 (Official Build) (64-bit).

UPDATE:  
I’ve also noticed that if - instead of using blueprint - i use CLONE, then it seems to create a clone properly… So seems that there is an issue with Local scripts when using Blueprint on Mac Mojave using custom dev.

Please reply on guidance and suggestion. Thx.

@ben.turner  
Here is the related post as asked.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [July 22, 2019, 9:00pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/9 "2019-07-22T21:00:22Z")

</div>

Hey @slafrenaye and @pabowles –

Thanks for your patience with this. We were having some trouble replicating this until we started using an older version of PHP.

When using less than PHP 5.6 here’s what we’re seeing:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/b/b6ee23f0eafb3c6c665ab5a773a6ab00006c62ac.jpeg)

Note the error about WordPress 5.2.2 not working on older versions of PHP.

Can you let me know a few things about the site that was used to create the Blueprint?

- What version of PHP was the original site?
- What version of WordPress was used for the original site?

I’m thinking that this is what’s going on. Can you try updating to a newer version of PHP and see if that helps fix things?

---

<div class="post-metadata">

**Author:** ![slafrenaye](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/slafrenaye/32/7930_2.png) [@slafrenaye](https://community.localwp.com/u/slafrenaye)\
**Post date:** [July 23, 2019, 5:29pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/10 "2019-07-23T17:29:51Z")

</div>

Hello @ben.turner -

Thanks for your reply. FYI, i did use PHP 7.0.3 / MySQL 5.5 and WP 5.2.2. to face this issue.  
I now will install a new site using all the latest version available and will inform you when done.

- Stephane

---

<div class="post-metadata">

**Author:** ![slafrenaye](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/slafrenaye/32/7930_2.png) [@slafrenaye](https://community.localwp.com/u/slafrenaye)\
**Post date:** [July 23, 2019, 5:37pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/11 "2019-07-23T17:37:29Z")

</div>

@ben.turner @pabowles -

Just created a new dummy site using this time PHP 7.3.2 / MYSQL 5.6.34 / WP 5.2.2 \> saved a blueprint using the new site \> re-created a new site using this new BP this time \> all worked.  
Thank you for your tips.

PS: This error seems to be related to MySQL version… After many test, Blueprint seems to be only working when MySQL version = 5.6.34 (with PHP 7.2.0 + and WP 5.2.2 +)

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [July 23, 2019, 10:33pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/12 "2019-07-23T22:33:05Z")

</div>

Thanks for that feedback and work on this issue @slafrenaye – I’m glad you got it working!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:36pm UTC](https://community.localwp.com/t/blueprints-not-working/11567/13 "2020-08-25T18:36:35Z")

</div>


