Notice (8): Undefined index: MediaFile [APP/Plugin/MediaManager/Controller/Component/FileUploadComponent.php, line 12]Code Context function deleteMediaFile($mediaFile){
@unlink(WWW_ROOT .$mediaFile->data['MediaFile']['filename']);
$mediaFile->delete($mediaFile->data['MediaFile']['id']);
$mediaFile = object(MediaFile) {
name => 'MediaFile'
useTable => 'm003mediafile'
belongsTo => array(
'Gallery' => array(
[maximum depth reached]
)
)
useDbConfig => 'default'
id => '5850'
data => array()
schemaName => 'souhorky_2025_1_26'
table => 'm003mediafile'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => 'MediaManager'
alias => 'MediaFile'
tableToModel => array(
'm003mediafile' => 'MediaFile',
'm002gallery' => 'Gallery'
)
cacheQueries => false
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
Gallery => object(Gallery) {}
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'title' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'autor' => array(
[maximum depth reached]
),
'filename' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'sort' => array(
[maximum depth reached]
),
'gallery_id' => array(
[maximum depth reached]
),
'order' => array(
[maximum depth reached]
),
'imported' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
FileUploadComponent::deleteMediaFile() - APP/Plugin/MediaManager/Controller/Component/FileUploadComponent.php, line 12
MediaFilesController::admin_delete() - APP/Plugin/MediaManager/Controller/MediaFilesController.php, line 29
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 112
Notice (8): Trying to access array offset on value of type null [APP/Plugin/MediaManager/Controller/Component/FileUploadComponent.php, line 12]Code Context function deleteMediaFile($mediaFile){
@unlink(WWW_ROOT .$mediaFile->data['MediaFile']['filename']);
$mediaFile->delete($mediaFile->data['MediaFile']['id']);
$mediaFile = object(MediaFile) {
name => 'MediaFile'
useTable => 'm003mediafile'
belongsTo => array(
'Gallery' => array(
[maximum depth reached]
)
)
useDbConfig => 'default'
id => '5850'
data => array()
schemaName => 'souhorky_2025_1_26'
table => 'm003mediafile'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => 'MediaManager'
alias => 'MediaFile'
tableToModel => array(
'm003mediafile' => 'MediaFile',
'm002gallery' => 'Gallery'
)
cacheQueries => false
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
Gallery => object(Gallery) {}
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'title' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'autor' => array(
[maximum depth reached]
),
'filename' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'sort' => array(
[maximum depth reached]
),
'gallery_id' => array(
[maximum depth reached]
),
'order' => array(
[maximum depth reached]
),
'imported' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
FileUploadComponent::deleteMediaFile() - APP/Plugin/MediaManager/Controller/Component/FileUploadComponent.php, line 12
MediaFilesController::admin_delete() - APP/Plugin/MediaManager/Controller/MediaFilesController.php, line 29
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 112
Notice (8): Undefined index: MediaFile [APP/Plugin/MediaManager/Controller/MediaFilesController.php, line 31]Code Context $this->FileUpload->deleteMediaFile($this->MediaFile);
$this->fixsort($media['MediaFile']['gallery_id']);
$id = '5850'
$media = array()
MediaFilesController::admin_delete() - APP/Plugin/MediaManager/Controller/MediaFilesController.php, line 31
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 112
Notice (8): Trying to access array offset on value of type null [APP/Plugin/MediaManager/Controller/MediaFilesController.php, line 31]Code Context $this->FileUpload->deleteMediaFile($this->MediaFile);
$this->fixsort($media['MediaFile']['gallery_id']);
$id = '5850'
$media = array()
MediaFilesController::admin_delete() - APP/Plugin/MediaManager/Controller/MediaFilesController.php, line 31
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 112