Skip to content

Error on CLI import #343

Description

@cgxxx

I get PHP error during the CLI import process :

Error: [] operator not supported for strings
#0 /[...]/app/Vendor/Getid3/module.audio.mp3.php(1085): getid3_mp3->decodeMPEGaudioHeader(5115, Array, false)    
#1 /[...]/app/Vendor/Getid3/module.audio.mp3.php(878): getid3_mp3->RecursiveFrameScanning(4634, 5115, true)   
#2 /[...]/app/Vendor/Getid3/module.audio.mp3.php(1417): getid3_mp3->decodeMPEGaudioHeader(4634, Array, true)      
#3 /[...]/app/Vendor/Getid3/module.audio.mp3.php(34): getid3_mp3->getOnlyMPEGaudioInfo(4608) 
#4 /[...]/app/Vendor/Getid3/getid3.php(428): getid3_mp3->Analyze()      
#5 /[...]/app/Lib/SongManager/SongManager.php(16): getID3->analyze('/mnt/disk1/mp3/...')        
#6 /[...]/app/Console/Command/SonerezhShell.php(117): SongManager->parseMetadata()  
#7 /[...]/lib/Cake/Console/Shell.php(459): SonerezhShell->import() 
#8 /[...]/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('import', Array)    
#9 /[...]/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#10 [...]/app/Console/cake.php(47): ShellDispatcher::run(Array)        
#11 {main}   

It's typical since PHP 7.1 version...
Maybe you should specify PHP version compatibilities ? (I use 7.2.9 currently)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions