Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox plugin: Uncaught Exception: Could not unzip file in /internal/eval.php:14 #318

Open
bph opened this issue Jun 22, 2024 · 1 comment
Labels
Bug Something isn't working Playground plugin

Comments

@bph
Copy link
Contributor

bph commented Jun 22, 2024

I wanted to test the Sandbox plugin with my small technical blog and I didn't get far.

It's hosted on Server Info:

  • Linux 5.4.0-169-generic x86_64
  • nginx/1.18.0
  • PHP: 8.2.13

WordPress 6.6 beta 3

Error display in modal

Screenshot 2024-06-22 at 11 15 24 Screenshot 2024-06-22 at 11 15 30

#Browser Console Errors
Error: PHP.run() failed with exit code 255 and the following output: PHP Fatal error: Uncaught Exception: Could not unzip file in /internal/eval.php:14
Stack trace:
#0 /internal/eval.php(17): unzip('/tmp/file.zip', '/wordpress')
#1 {main}
thrown in /internal/eval.php on line 14

at PHP.run (worker-thread-b7f2a560.js?wpVersion=6.6-beta3&phpVersion=8.2&php-extension=iconv&php-extension=mbstring&php-extension=xml-bundle&php-extension=gd&networking=yes&storage=&site-slug=wordpress:53:1748)
at async PlaygroundWorkerEndpoint.run (worker-thread-b7f2a560.js?wpVersion=6.6-beta3&phpVersion=8.2&php-extension=iconv&php-extension=mbstring&php-extension=xml-bundle&php-extension=gd&networking=yes&storage=&site-slug=wordpress:4:8867)

index.js:222 PHP.run() failed with exit code 255 and the following output: PHP Fatal error: Uncaught Exception: Could not unzip file in /internal/eval.php:14
Stack trace:
#0 /internal/eval.php(17): unzip('/tmp/file.zip', '/wordpress')
#1 {main}
thrown in /internal/eval.php on line 14
Error: PHP.run() failed with exit code 255 and the following output: PHP Fatal error: Uncaught Exception: Could not unzip file in /internal/eval.php:14
Stack trace:
#0 /internal/eval.php(17): unzip('/tmp/file.zip', '/wordpress')
#1 {main}
thrown in /internal/eval.php on line 14

at PHP.run (https://playground.wordpress.net/worker-thread-b7f2a560.js?wpVersion=6.6-be…undle&php-extension=gd&networking=yes&storage=&site-slug=wordpress:53:1748)
at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-b7f2a560.js?wpVersion=6.6-be…bundle&php-extension=gd&networking=yes&storage=&site-slug=wordpress:4:8867)
@bgrgicak
Copy link
Collaborator

This looks like the zip wasn't correctly generated. @adamziel we should schedule some time to improve this plugin, it seems to break in a lot of scenarios and doesn't scale well.

@adamziel adamziel added this to the Zero Crashes – Tools milestone Jun 24, 2024
@adamziel adamziel moved this to Needs Triage in Playground Board Jun 30, 2024
@adamziel adamziel added the Bug Something isn't working label Jul 1, 2024
@bgrgicak bgrgicak moved this from Needs Triage/Our Reply to Future work in Playground Board Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Playground plugin
Projects
None yet
Development

No branches or pull requests

3 participants