Blueprints not working

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?

@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?

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 (440.2 KB)

@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.

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.

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.

local-by-flywheel.log (102.1 KB)

BTW, i also tried without success to export / re-import the site (under differant name). Same result : 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' );

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.

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:

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?

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

@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 +)

1 Like

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