WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.63k stars 249 forks source link

Having issue importing GitHub branch into playgrounds.wordpress.net #1889

Open asirota opened 3 days ago

asirota commented 3 days ago

I get an error when I try to test this branch:

https://github.com/NewPath-Consulting/Wild-Apricot-Press/tree/1.1 There was an unexpected error (PHP.run() failed with exit code 255 and the following output: ), please try again. If the problem persists, please report it at https://github.com/WordPress/wordpress-playground/issues.

Log:

[11-Oct-2024 18:41:38 UTC] PHP Fatal error: Uncaught Error: Undefined constant WAWP\Log::LOG_OPTION in /wordpress/wp-content/plugins/Wild-Apricot-Press/src/class-activator.php:45
Stack trace:
#0 /wordpress/wp-content/plugins/Wild-Apricot-Press/plugin.php(46): WAWP\Activator->__construct('Wild-Apricot-Pr...')
#1 /wordpress/wp-admin/includes/plugin.php(2): include_once('/wordpress/wp-c...')
#2 /wordpress/wp-admin/includes/plugin.php(2): plugin_sandbox_scrape('Wild-Apricot-Pr...')
#3 /internal/eval.php(20): activate_plugin('Wild-Apricot-Pr...')
#4 {main}
thrown in /wordpress/wp-content/plugins/Wild-Apricot-Press/src/class-activator.php on line 45
[11-Oct-2024 18:41:38 UTC] JavaScript Error: Error: PHP.run() failed with exit code 255 and the following output:
at PHP.run (https://playground.wordpress.net/worker-thread-b67f22a0.js:53:1888)
at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-b67f22a0.js:4:9449)
[11-Oct-2024 18:41:38 UTC] PHP Fatal: PHP.run() failed with exit code 255 and the following output: Error: PHP.run() failed with exit code 255 and the following output:
at PHP.run (https://playground.wordpress.net/worker-thread-b67f22a0.js:53:1888)
at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-b67f22a0.js:4:9449)
[11-Oct-2024 18:41:32 UTC] JavaScript Info: {
"owner": "NewPath-Consulting",
"repo": "Wild-Apricot-Press",
"type": "branch",
"ref": "1.1",
"path": ""
}

I tried doing an open PR at https://github.com/NewPath-Consulting/Wild-Apricot-Press/pull/169

and got this error instead

[11-Oct-2024 18:45:56 UTC] JavaScript Error: TypeError: Cannot read properties of null (reading 'isDir')
at is (https://playground.wordpress.net/assets/config-780e2ec5.js:451:8164)
at _R0 (https://playground.wordpress.net/assets/main-95b7d37f.js:118:9737)
at TR0 (https://playground.wordpress.net/assets/main-95b7d37f.js:118:9547)
at W (https://playground.wordpress.net/assets/main-95b7d37f.js:121:1120)
[11-Oct-2024 18:45:53 UTC] JavaScript Info: {
"owner": "NewPath-Consulting",
"repo": "Wild-Apricot-Press",
"type": "pr",
"path": "",
"pr": 169
}
adamziel commented 3 days ago

Thank you for the report! The GitDirectoryResource is already merged, but it won't be functional until the CORS proxy is deployed — probably some time within the next two weeks.

adamziel commented 3 days ago

Actually, what's the Blueprint you're using?

asirota commented 3 days ago

Actually, what's the Blueprint you're using?

It's this one

https://github.com/NewPath-Consulting/Wild-Apricot-Press/blob/1.1/assets/blueprints/blueprint.json

I was testing out 1.1 release before we submitted it. Note I'm using the GitHub-proxy url that works for the master branch just fine.