We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • 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.]
    • You might want to check and make sure that
      $input_data['file_path']
      is not empty, If you are using something like PHPStorm and its on local dev server you can use the interactive debugger otherwise just do a
      var_dump($input_data['file_path']); die;


      do this before
      filesize($input_data['file_path']);
      • I updated Slideshow Manager to 1.1, could you try the new version and let me know if that worked or if you are still having this error.
          • 40828
          • 22 Posts
          Hello! Is there a way to add slides bypassing the SlideShowManager? For example I need an image show up in the slideshow amongst all the rest for the next five minutes after it was loaded by non-admin user. So many users load their pictures and the SlideShow rolls only those which uploaded recently (each has 5 minutes life span).
            • 868
            • 5 Posts
            Hi!

            I am new to MODx and want to use the sideshow.
            I have set up a new album and created the slides all looks fine but when I view site the screen is sized for the slides but it looks like the slideshow is searching for the slides any idea what is wrong?

            alcluith