Closed macbaydigital closed 6 years ago
Hi,
this looks related to issue https://github.com/m9dfukc/deepl-alfred-workflow/issues/2.
Looks like you have an old version of php running on your Computer?!
Oh, I haven't realized, thank you very much for the hint :-) Have a nice day
Hello,
I've downloaded this awesome workflow (it's working well on my office-mac), set DE as the default language. and set the keyword to start the workflow to "dl". This is starting the deepl-workflow correctly.
But as soon as I start typing any query, e.g. "home", the default search prompts are bein displayed instead of the translation results. I have recorded a brief screencast to show you this behaviour:
https://www.dropbox.com/s/yhtpcm1up2bi7tm/alfred-workflow-error-deepl.mp4?dl=0
Furthermore I have set debugging of the workflow to "All Information" and used it again. You find the result below.
Could you please check and advice about how to fix this?
Thank you and kind regards, Sascha
Starting debug for 'Deepl Translate'
[2018-05-20 13:39:27][input.scriptfilter] Queuing argument 'Home' [2018-05-20 13:39:28][input.scriptfilter] Script with argument '(null)' finished [2018-05-20 13:39:28][ERROR: input.scriptfilter] Code 255: Fatal error: Arrays are not allowed in class constants in /Users/saschaliem/Dropbox/SushDATA/Library/Application Support/Alfred3-NEW/Alfred.alfredpreferences/workflows/user.workflow.99CAF984-1E93-4A50-81F2-2D78043E394E/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/DeepLy.php on line 45 [2018-05-20 13:39:28][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: Fatal error: Arrays are not allowed in class constants in /Users/saschaliem/Dropbox/SushDATA/Library/Application Support/Alfred3-NEW/Alfred.alfredpreferences/workflows/user.workflow.99CAF984-1E93-4A50-81F2-2D78043E394E/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/DeepLy.php on line 45