8000 blueprint works on Playground Blueprint Builder but not with wp-now · Issue #369 · WordPress/playground-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
blueprint works on Playground Blueprint Builder but not with wp-now #369
Open
@zemariagp

Description

@zemariagp

this blueprint works perfectly on the browser but if I

  • create a blueprint.json with the exact same content
  • run npx npx @wp-now/wp-now start --blueprint=blueprint.json --reset"

I get an error like:

<b>Warning</b>:  require_once(/wordpress/wp-load.php): Failed to open stream: No such file or directory in <b>php-wasm run script</b> on line <b>1</b><br />
<br />
<b>Fatal error</b>:  Uncaught Error: Failed opening required '/wordpress/wp-load.php' (include_path='.:') in php-wasm run script:1
Stack trace:
#0 {main}
  thrown in <b>php-wasm run script</b> on line <b>1</b><br />

PHPExecutionFailureError2: PHP.run() failed with exit code 255 and the following output: PHP Warning:  require_once(/wordpress/wp-load.php): Failed to open stream: No such file or directory in php-wasm run script on line 1
PHP Fatal error:  Uncaught Error: Failed opening required '/wordpress/wp-load.php' (include_path='.:') in php-wasm run script:1
Stack trace:
#0 {main}
  thrown in php-wasm run script on line 1

    at _NodePHP.run (/Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@php-wasm/node/index.cjs:72953:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.runPHP (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:312:39)
    at async o (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9440:30)
    at async Object.run (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9367:23)
    at async runBlueprintSteps (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9475:3)
    at async startWPNow (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:739:5)
    at async startServer (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1003:42)
    at async Object.handler (file:///Users/zemaria/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1184:25) {
  response: _PHPResponse {
    httpStatusCode: 500,
    headers: { 'x-powered-by': [Array], 'content-type': [Array] },
    bytes: Uint8Array(387) [
       60,  98, 114,  32,  47,  62,  10,  60,  98,  62,  87,  97,
      114, 110, 105, 110, 103,  60,  47,  98,  62,  58,  32,  32,
      114, 101, 113, 117, 105, 114, 101,  95, 111, 110,  99, 101,
       40,  47, 119, 111, 114, 100, 112, 114, 101, 115, 115,  47,
      119, 112,  45, 108, 111,  97, 100,  46, 112, 104, 112,  41,
       58,  32,  70,  97, 105, 108, 101, 100,  32, 116, 111,  32,
      111, 112, 101, 110,  32, 115, 116, 114, 101,  97, 109,  58,
       32,  78, 111,  32, 115, 117,  99, 104,  32, 102, 105, 108,
      101,  32, 111, 114,
      ... 287 more items
    ],
    exitCode: 255,
    errors: 'PHP Warning:  require_once(/wordpress/wp-load.php): Failed to open stream: No such file or directory in php-wasm run script on line 1\n' +
      "PHP Fatal error:  Uncaught Error: Failed opening required '/wordpress/wp-load.php' (include_path='.:') in php-wasm run script:1\n" +
      'Stack trace:\n' +
      '#0 {main}\n' +
      '  thrown in php-wasm run script on line 1\n'
  },
  source: 'request'
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0