spilos Опубликовано 10 Октября 2005 Жалоба Поделиться Опубликовано 10 Октября 2005 Поставил Invision_Gallery_v1.3.0_Fixed_Version [RUS] при попытке загрузить фото из админики пишет IPB WARNING [2] process_file(gallery_mime_types.php): failed to open stream: No such file or directory (Line: 1494 of /modules/gallery/admin/ad_tools.php)IPB WARNING [2] process_file(gallery_mime_types.php): failed to open stream: No such file or directory (Line: 1494 of /modules/gallery/admin/ad_tools.php) Привожу кусок кода /************************************************************ * Now we need to start importing the files ***********************************************************/ require( ROOT_PATH . 'modules/gallery/lib/image.php' ); $processed = 0; if( is_array( $files ) ) { foreach( $files as $file ) { $temp = array( 'file_name' => $file, 'file_size' => filesize( $ibforums->input['dir'] .'/'. $file ), 'member_id' => ( $mem ) ? $mem['member_id'] : $ibforums->input['user'], 'category_id' => $ibforums->input['cat'], 'album_id' => $ibforums->input['album'], 'caption' => $file, 'description' => '', 'approved' => 1, 'views' => 0, 'comments' => 0, 'date' => time(), 'ratings_total' => 0, 'ratings_count' => 0, ); $temp = array_merge( $temp, $this->process_file( $file, $ibforums->input['dir'].'/', $category['thumbnail'], $category['watermark_images'], $ibforums->input['cat'] ) ); $DB->do_insert( 'gallery_images', $temp ); if( $ibforums->input['cat'] ) { $DB->simple_update( 'gallery_categories', "images=images+1, last_pic=".$DB->get_insert_id(), "id={$ibforums->input['cat']}", 1 ); $DB->simple_exec(); } else { $DB->simple_update( 'gallery_albums', "images=images+1, last_pic=".$DB->get_insert_id(), "id={$ibforums->input['album']}", 1 ); $DB->simple_exec(); } /* Do we need to take a break from processing? */ $processed++; if( $processed >= $ibforums->input['num'] ) { break; } } } if( empty( $files ) ) { $ibforums->admin->done_screen( "Images Added", "Invision Gallery Manager", "act=gallery" ); } else { $ibforums->admin->redirect( "act=gallery&code=tools&tool=bulkadd&op=do&album={$ibforums->input['album']}&dir={$ibforums->input['dir']}&url={$ibforums->input['url']}&cat={$ibforums->input['cat']}&user={$ibforums->input['user']}&num={$ibforums->input['num']}", "<b>{$ibforums->input['num']} images processed, moving on to the next batch...</b><BR>DO NOT exit the browser or press the stop button, or your images will not be imported" ); $ibforums->admin->output(); } } /** * process_file() * * Moves the upload file to the images directory, checks all group settings, * does any required image manipulation * * @version 1.1 * @since 1.1 * @access public * * @param string $file_name * @param integer $create_thumb * @param integer $watermark * @param integer $container_id * @return array **/ function process_file( $file_name, $file_dir, $create_thumb=1, $watermark=0, $containter_id=0, $album_id=0 ) { global $ibforums, $DB, $std; $container_id = ( $container_id ) ? $container_id : $album_id; а это и есть та строка 'ratings_total' => 0, НЕЛПППП Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
AcularisInfernum Опубликовано 19 Октября 2005 Жалоба Поделиться Опубликовано 19 Октября 2005 Предположу, что пути настроены неверно, раз файл найти не удаётся. http://docs.ibresource.ru/article189.htm Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.