jezzdk / statamic-wp-import

7 stars 4 forks source link

Import failed: Internal Server Error (500) #1

Open LukaVerhoeven opened 2 years ago

LukaVerhoeven commented 2 years ago

I am trying to import a single entry and a newly generated statamic website. Always returns a Internal Server Error (500).

vibrains commented 2 years ago

Running into the same issue here

sebszocinski commented 2 years ago

Same here, log file is reporting:

[2021-10-13 17:44:57] local.ERROR: syntax error, unexpected '|', expecting ';' or '{' {"userId":"97dff0d7-f47e-4f45-91e8-9942d2e03096","exception":"[object] (ParseError(code: 0): syntax error, unexpected '|', expecting ';' or '{' at /*******/vendor/jezzdk/statamic-wp-import/src/Helpers/Migrator.php:252)
sebszocinski commented 2 years ago

@vibrains @LukaVerhoeven temp fix, change this line to:

private function downloadAsset(string $url = null, string $collection, string $slug)
davidcochrum commented 2 years ago

The other solution would be to run this via PHP 8