playground-tools icon indicating copy to clipboard operation
playground-tools copied to clipboard

wp-now with blueprint not working (setSiteOptions step)

Open gaambo opened this issue 11 months ago • 8 comments

I wanted to use wp-now to test my blueprint.json for enabling the preview in the plugin repository. The blueprint file works and is valid, as can be tested by going to https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/goodwp/good-slider/main/.wordpress-org/blueprints/blueprint.json But when I run wp-now start --blueprint=dev/goodwp/plugins/slider/.wordpress-org/blueprints/blueprint.json it fails when running the setSiteOptions step:

'PHP Warning:  include(wordpress/wp-load.php): Failed to open stream: No such file or directory in php-wasm run script on line 2\n' +
    "PHP Warning:  include(): Failed opening 'wordpress/wp-load.php' for inclusion (include_path='.:') in php-wasm run script on line 2\n" +
    'PHP Fatal error:  Uncaught Error: Call to undefined function update_option() in php-wasm run script:5\n' +
    'Stack trace:\n' +
    '#0 {main}\n' +
    '  thrown in php-wasm run script on line 5\n'

If I remove the setSiteOptions step, the next step is the installPlugin I get an error about DOMParser is not defined which seems like #113. That issue seems fixed, but maybe it's just not released yet.

System/versions:

  • node v20.11.0
  • wp-now 0.1.65 (happens with installed binary as well as npx)
  • system: WSL with Ubuntu 22.04
  • I ran it in a temporary empty directory and an existing WordPress install - no difference.

gaambo avatar Mar 18 '24 18:03 gaambo