citelao / Spotify-for-Alfred

aka Spotifious — a natural Spotify controller for Alfred
http://citelao.github.io/Spotify-for-Alfred
Other
640 stars 20 forks source link

error: too few arguments #143

Open SebastianBehrens opened 1 year ago

SebastianBehrens commented 1 year ago

When setting up I received the error message attached below:

How can I fix that?

# Error Log # 
## Error Info ## 
Too few arguments to function OhAlfred\OhAlfred::errorify(), 4 passed and at least 5 expected
Line 287, /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/src/citelao/OhAlfred/OhAlfred.php

## Symbols ## 
Array
(
    [0] => Array
        (
            [function] => errorify
            [class] => OhAlfred\OhAlfred
            [type] => ->
            [args] => Array
                (
                    [0] => 8192
                    [1] => Use of "parent" in callables is deprecated
                    [2] => /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/src/citelao/OhAlfred/Applescript/ApplicationApplescript.php
                    [3] => 14
                )

        )

    [1] => Array
        (
            [file] => /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/src/citelao/OhAlfred/Applescript/ApplicationApplescript.php
            [line] => 14
            [function] => call_user_func_array
            [args] => Array
                (
                    [0] => parent::__construct
                    [1] => Array
                        (
                            [0] => tell application "Spotify"
                            [1] => return name of current track & "✂" & album of current track & "✂" & artist of current track & "✂" & spotify url of current track & "✂" & player state
                            [2] => end tell
                        )

                )

        )

    [2] => Array
        (
            [file] => /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/src/citelao/Spotifious/Menus/Main.php
            [line] => 124
            [function] => __construct
            [class] => OhAlfred\Applescript\ApplicationApplescript
            [type] => ->
            [args] => Array
                (
                    [0] => Spotify
                    [1] => return name of current track & "✂" & album of current track & "✂" & artist of current track & "✂" & spotify url of current track & "✂" & player state
                )

        )

    [3] => Array
        (
            [file] => /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/src/citelao/Spotifious/Menus/Main.php
            [line] => 16
            [function] => now
            [class] => Spotifious\Menus\Main
            [type] => ->
            [args] => Array
                (
                )

        )

    [4] => Array
        (
            [file] => /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/src/citelao/Spotifious/Spotifious.php
            [line] => 111
            [function] => __construct
            [class] => Spotifious\Menus\Main
            [type] => ->
            [args] => Array
                (
                    [0] => 
                )

        )

    [5] => Array
        (
            [file] => /Users/sebastianbehrens/Dropbox/Alfred4/Alfred.alfredpreferences/workflows/user.workflow.9838AB97-CDC5-4238-A8A2-2A22EF321751/main.php
            [line] => 24
            [function] => run
            [class] => Spotifious\Spotifious
            [type] => ->
            [args] => Array
                (
                    [0] => 
                )

        )

)
M0rtenB commented 7 months ago

I get this too :-( Trying to install v0.13.10.1

octern commented 4 months ago

Same problem with 0.13.9 on MacOS 13.6.7 + Alfred 5.5, but a different number of arguments expected.

# Error Log # 
## Error Info ## 
Too few arguments to function OhAlfred\OhAlfred::errorify(), 4 passed in /Users/wonderslime/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AB089CCC-1966-4141-BEC2-6967663CD831/src/citelao/Spotifious/Menus/Setup.php on line 19 and at least 5 expected
Line 281, /Users/wonderslime/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AB089CCC-1966-4141-BEC2-6967663CD831/src/citelao/OhAlfred/OhAlfred.php

## Symbols ## 
Array
(
    [0] => Array
        (
            [file] => /Users/wonderslime/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AB089CCC-1966-4141-BEC2-6967663CD831/src/citelao/Spotifious/Menus/Setup.php
            [line] => 19
            [function] => errorify
            [class] => OhAlfred\OhAlfred
            [type] => ->
            [args] => Array
                (
                    [0] => 8192
                    [1] => Creation of dynamic property Spotifious\Menus\Setup::$wasOptOut is deprecated
                    [2] => /Users/wonderslime/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AB089CCC-1966-4141-BEC2-6967663CD831/src/citelao/Spotifious/Menus/Setup.php
                    [3] => 19
                )

        )

    [1] => Array
        (
            [file] => /Users/wonderslime/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AB089CCC-1966-4141-BEC2-6967663CD831/src/citelao/Spotifious/Spotifious.php
            [line] => 84
            [function] => __construct
            [class] => Spotifious\Menus\Setup
            [type] => ->
            [args] => Array
                (
                    [0] => 
                    [1] => OhAlfred\OhAlfred Object
                        (
                            [results:protected] => 
                            [name:protected] => 
                            [version:protected] => 
                            [home:protected] => 
                            [workflow:protected] => 
                            [cache:protected] => 
                            [storage:protected] => /Users/wonderslime/Library/Application Support/Alfred/Workflow Data/com.citelao.spotifious/
                            [plists:protected] => Array
                                (
                                    [/Users/wonderslime/Library/Application Support/Alfred/Workflow Data/com.citelao.spotifious/settings] => stdClass Object
                                        (
                                            [track_notifications] => true
                                            [lookup_current_song] => true
                                            [desired_scopes] => playlist-read-private
                                            [has_installed_spotify] => true
                                        )

                                )

                        )

                )

        )

    [2] => Array
        (
            [file] => /Users/wonderslime/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AB089CCC-1966-4141-BEC2-6967663CD831/main.php
            [line] => 24
            [function] => run
            [class] => Spotifious\Spotifious
            [type] => ->
            [args] => Array
                (
                    [0] => 
                )

        )

)