I tried to upload a WMV9 Video file using Gallery Remote 1.5 to my Gallery 2.0.2 installation, and after it looks like it is done uploading the file, it says:
"Upload error: Upload failed: ''."
I then tried to upload the WMV9 Video via the web interface, and I get this error:
---------------------------------------
An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PATH)
* in modules/core/classes/GalleryDataItem.class at line 129 (gallerystatus::error)
* in modules/core/classes/GalleryUnknownItem.class at line 77 (gallerydataitem::create)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 203 (galleryunknownitem::create)
* in modules/core/classes/GalleryCoreApi.class at line 1499 (galleryitemhelper_medium::additemtoalbum)
* in modules/core/ItemAddFromBrowser.inc at line 89 (gallerycoreapi::additemtoalbum)
* in modules/core/ItemAdd.inc at line 94 (itemaddfrombrowser::handlerequest)
* in main.php at line 174 (itemaddcontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80
System Information
Gallery version 2.0.2
PHP version 4.3.11 apache
Webserver Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.22 OpenSSL/0.9.7a
Database mysql 4.0.25-standard
Toolkits ImageMagick, Gd
Operating system Linux dime.dizinc.com 2.4.29-ow1 #5 SMP Sun Aug 21 10:21:42 EDT 2005 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
---------------------------------------
Any ideas?
Pictures work fine.
Posts: 2258
Please turn on buffered debug and post the output of the error here
--
http://ckdake.com/
If you found my help useful, please consider donating to Gallery.
Posts: 15
Notice: Undefined variable: tmpDir in /home/torimoto/public_html/gallery/modules/mplayer/classes/MplayerToolkit.class on line 154
Notice: Undefined variable: tmpFilename in /home/torimoto/public_html/gallery/modules/mplayer/classes/MplayerToolkit.class on line 154
Error
An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PATH)
* in modules/core/classes/GalleryDataItem.class at line 129 (gallerystatus::error)
* in modules/core/classes/GalleryUnknownItem.class at line 77 (gallerydataitem::create)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 203 (galleryunknownitem::create)
* in modules/core/classes/GalleryCoreApi.class at line 1499 (galleryitemhelper_medium::additemtoalbum)
* in modules/core/ItemAddFromBrowser.inc at line 89 (gallerycoreapi::additemtoalbum)
* in modules/core/ItemAdd.inc at line 94 (itemaddfrombrowser::handlerequest)
* in main.php at line 174 (itemaddcontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80
System Information
Gallery version 2.0.3
PHP version 4.3.11 apache
Webserver Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.22 OpenSSL/0.9.7a
Database mysql 4.0.25-standard
Toolkits ImageMagick, Gd
Operating system Linux dime.dizinc.com 2.4.29-ow1 #5 SMP Sun Aug 21 10:21:42 EDT 2005 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Debug Output
getParameter permissions.file for core plugin file_exists(/home/torimoto/g2data/cache/module/core/0/0/0.inc) file_exists(/home/torimoto/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../modules/rewrite/classes/RewriteUrlGenerator.class) (mysql): SELECT g2_RewriteMap.g_match, g2_RewriteMap.g_pattern FROM g2_RewriteMap WHERE g2_RewriteMap.g_match != '' file_exists(/home/torimoto/g2data/sessions/941af9defb3988a85743124697adb58c) getParameter session.lifetime for core plugin getParameter session.inactivityTimeout for core plugin stat(/home/torimoto/g2data/sessions/941af9defb3988a85743124697adb58c) file_exists(/home/torimoto/g2data/sessions/941af9defb3988a85743124697adb58c) getParameter cookie.domain for core plugin getParameter cookie.path for core plugin getParameter galleryLocation for rewrite plugin file_exists(/home/torimoto/g2data/cache/module/rewrite/0/0/0.inc) getParameter default.language for core plugin Loading plugin core Class not defined, trying to include it. file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../modules/core/module.inc) realpath(/home/torimoto/public_html/gallery/modules/core/classes/../../..) Binding text domain: modules_core -> /home/torimoto/public_html/gallery/modules/core/locale core plugin successfully instantiated file_exists(/home/torimoto/g2data/versions.dat) file(/home/torimoto/g2data/versions.dat, ) [1141960885] can't guarantee 5 -- extending! file_exists(/home/torimoto/g2data/cache/entity/0/0/6.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin file_exists(/home/torimoto/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the core plugin is ok file_exists(/home/torimoto/public_html/gallery/modules/core/classes/../../../modules/core/ItemAdd.inc) file_exists(/home/torimoto/g2data/cache/entity/0/2/23.inc) getParameter lock.system for core plugin fopen(/home/torimoto/g2data/locks/0/2/23, wb+, 0) flock(Resource id #70, 5, ) file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../modules/core/ItemAddFromBrowser.inc) file_exists(/home/torimoto/g2data/cache/module/_all/0/0/GalleryMimeTypeHelper_mimeData.inc) file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../modules/core/classes/GalleryMovieItem.class) file_exists(/tmp/phpNwVxsh) is_uploaded_file(/tmp/phpNwVxsh) (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 23 AND g2_FileSystemEntity.g_pathComponent = 'andrew_with_grandpa.wmv' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): update g2_SequenceId set id=LAST_INSERT_ID(id+1); file_exists(/home/torimoto/g2data/cache/entity/0/2/20.inc) file_exists(/home/torimoto/g2data/cache/entity/0/0/7.inc) copy(/tmp/phpNwVxsh, /home/torimoto/g2data/albums/taka_rachel/taka/andrew_with_grandpa.wmv) filesize(/home/torimoto/g2data/albums/taka_rachel/taka/andrew_with_grandpa.wmv) filesize(/home/torimoto/g2data/albums/taka_rachel/taka/andrew_with_grandpa.wmv) (mysql): SELECT g2_TkPropertyMimeTypeMap.g_toolkitId FROM g2_TkPropertyMap, g2_TkPropertyMimeTypeMap WHERE g2_TkPropertyMap.g_name = g2_TkPropertyMimeTypeMap.g_propertyName AND g2_TkPropertyMimeTypeMap.g_mimeType = 'video/x-ms-wmv' AND g2_TkPropertyMap.g_name = 'dimensions-and-duration' file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../modules/mplayer/classes/MplayerToolkit.class) getParameter path for mplayer plugin file_exists(/home/torimoto/g2data/cache/module/mplayer/0/0/0.inc) Executing: ( "/bin/mplayer" "/home/torimoto/g2data/albums/taka_rachel/taka/andrew_with_grandpa.wmv" "-identify" "-nosound" "-vc" "dummy" "-vo" "null" ) 2>/home/torimoto/g2data/tmp/g2dbgieuVEl getParameter exec.expectedStatus for core plugin file_exists(/home/torimoto/g2data/tmp/g2dbgieuVEl) filesize(/home/torimoto/g2data/tmp/g2dbgieuVEl) fopen(/home/torimoto/g2data/tmp/g2dbgieuVEl, r, 0) feof(Resource id #94) fgets(Resource id #94, 4096) feof(Resource id #94) fgets(Resource id #94, 4096) feof(Resource id #94) fclose(Resource id #94) unlink(/home/torimoto/g2data/tmp/g2dbgieuVEl) Regular Output: Error Output: sh: /bin/mplayer: No such file or directory Status: 127 (expected 0) unlink(/home/torimoto/g2data/albums/taka_rachel/taka/andrew_with_grandpa.wmv) Failed to create item type gallerymovieitem, falling back on unknown file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../modules/core/classes/GalleryUnknownItem.class) is_uploaded_file(/tmp/phpNwVxsh) file_exists(/tmp/phpNwVxsh) fclose(Resource id #70) file_exists(/home/torimoto/g2data/locks/0/2/23) unlink(/home/torimoto/g2data/locks/0/2/23) getParameter default.theme for core plugin Loading plugin matrix Class not defined, trying to include it. file_exists(/home/torimoto/public_html/gallery/modules/core/classes/helpers/../../../../themes/matrix/theme.inc) matrix plugin successfully instantiated Check the version of the matrix plugin file_exists(/home/torimoto/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the matrix plugin is ok Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok file_exists(/home/torimoto/public_html/gallery/modules/core/classes/../../../modules/core/ErrorPage.inc) getParameter id.adminGroup for core plugin (mysql): SELECT g2_UserGroupMap.g_userId FROM g2_UserGroupMap WHERE g2_UserGroupMap.g_userId = 6 AND g2_UserGroupMap.g_groupId = '3' LIMIT 1 realpath(/home/torimoto/public_html/gallery/modules/core/classes/../../../) (mysql): SELECT g2_TkOperatnMimeTypeMap.g_mimeType, g2_TkOperatnMimeTypeMap.g_toolkitId FROM g2_TkOperatnMimeTypeMap WHERE g2_TkOperatnMimeTypeMap.g_operationName = 'thumbnail' ORDER BY g2_TkOperatnMimeTypeMap.g_mimeType ASC, g2_TkOperatnMimeTypeMap.g_priority ASC file_exists(/home/torimoto/public_html/gallery/modules/core/classes/../../../lib/javascript/local/BlockToggle.js) file_exists(/home/torimoto/g2data/smarty/templates_c/%%3994838098) is_dir(/home/torimoto/g2data/smarty/templates_c/%%3994838098) file_exists(/home/torimoto/g2data/smarty/templates_c/%%3994838098) is_writeable(/home/torimoto/g2data/smarty/templates_c/%%3994838098) file_exists(/home/torimoto/g2data/smarty/templates_c/%%3994838098/v_8) realpath(/home/torimoto/public_html/gallery/modules/core/classes/../../..) Binding text domain: themes_matrix -> /home/torimoto/public_html/gallery/themes/matrix/locale file_exists(/home/torimoto/public_html/gallery/modules/core/classes/../../../themes/matrix/local/theme.css)
Posts: 2258
Output: Error Output: sh: /bin/mplayer: No such file or directory Status: 127 (expected 0)
Thats your problem. Put in a valid path to mplayer.
--
http://ckdake.com/
If you found my help useful, please consider donating to Gallery.
Posts: 15
the path should be valid, since from the mplayer Settings screen (Site Admin), i can do Test Settings and it passes...
any other ideas?
Posts: 2258
chrooted apache? restrictions on php?
It's very unusual for binaries to be in /bin/ for user applications. Usually its /usr/bin/ or /usr/local/bin/ or /opt/bin/
--
http://ckdake.com/
If you found my help useful, please consider donating to Gallery.