Revo 2.2.1
Slideshow Manager 1.0.4
Problem: I'm getting the following warning when trying to create a new slide (in the end, Slideshow Manager says that the slide has been created but on the website it remains blank):
Warning: filesize() [function.filesize]: stat failed for album_1_slide_1337697962.jpg in /home/xyzcompany/public_html/modx/core/components/slideshowmanager/processors/mgr/slide/addslide.php on line 100
The problem line is:
$input_data['file_size'] = filesize($input_data['file_path']);
See full block here:
// upload file
if( isset($_FILES['upload_file']['tmp_name']) && strlen($_FILES['upload_file']['tmp_name']) > 4 ) {
// just the file name
$input_data['file_path'] = str_replace( $this->cmpController->config['uploadPath'], '',
$validate->moveFile('upload_file', $this->cmpController->config['uploadPath'],
'album_'.$album_data['id'].'_slide_'.time() ) );
$input_data['file_type'] = $validate->fileExt('upload_file');
$input_data['file_size'] = filesize($input_data['file_path']);
//$file_data['upload_time'] = $input_data['date_time'];
} else {
unset($input_data['upload_time']);
}
At the beginning of the php fle, file-size is commented out - could that be part of the problem? I don't know PHP so I haven't a clue I'm afraid - perhaps it's a red herring ...:
$option_array = array(//fields array
'slide_id' => 'numeric',
'album_id' => 'numeric',
'start_date' => 'date',
'end_date' => 'date',
'edit_time' => 'set_current_date_time',
'sequence' => 'numeric',
'slide_status' => 'text',
'url' => 'text & links',
'title' => 'text',
'description' => 'text & links',
'notes' => 'HTML',
'html' => 'HTML',
'options' => 'text',// text
'upload_time' => 'set_current_date_time',
'web_user_id' => 1,
'version' => 1,
'upload_file' => 'file',
/*'file_path' => '',
'file_size' => '',
'file_type' => ''*/
);
[ed. note: intandem last edited this post 11 years, 11 months ago.]