Skip to content

wp-now with blueprint not working (setSiteOptions step) #195

@gaambo

Description

@gaambo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingwp-now

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions