Forum OpenACS Q&A: bookshelf error

Collapse
Posted by Ben Koot on
Hi folks,

Any idea how to correct this bookshelf error .....
Thanks

Request Error
Bad file "/tmp/gifPeTLIC.gif"
    while executing
"ns_gifsize $filename"
    (procedure "bookshelf::amazon::get_image_info" line 30)
    invoked from within
"bookshelf::amazon::get_image_info -array amazon_info $book(isbn)"
    ("uplevel" body line 13)
    invoked from within
"uplevel {
          # Expects:
#  book:onerow

set package_id [ad_conn package_id]
set write_p [ad_permission_p $package_id write]
set book_no $book(boo..."
    (procedure "code::tcl::/web/snorri/packages/bookshelf/www/book-chunk" line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

    if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [template::util::url_to_file "book-chunk" "$__adp_stub"] [list &book "book"]"
    invoked from within
"append __adp_output [template::adp_parse [template::util::url_to_file "book-chunk" "$__adp_stub"] [list &book "book"]]"
    ("uplevel" body line 7)
    invoked from within
"uplevel {
          set __adp_output ""

    set __adp_master [template::util::url_to_file "../lib/master" "$__adp_stub"]
set __adp_properties(title) "${..."
    (procedure "template::code::adp::/web/snorri/packages/bookshelf/www/book..." line 2)
    invoked from within
"template::code::${template_extension}::$__adp_stub"
    (procedure "template::adp_parse" line 57)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    $handler
      } ad_script_abort val {
    # do nothing
      }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    rp_serve_abstract_file "$root/$path"
    set tcl_url2file([ad_conn url]) [ad_conn file]
    set tcl_url2path_info([ad_conn url]) [ad_conn path_inf..."

Collapse
2: Re: bookshelf error (response to 1)
Posted by Jamie Rasmussen on
In bookshelf::amazon::get_image_info in bookshelf/tcl/amazon-procs.tcl, is the line:
fconfigure $tmpfilefd -translation binary
specified after
set tmpfilefd [open $filename w]
? If not, try adding it. Lars committed that fix to CVS, but I'm not sure on which branches. (Try a CVS update)
Collapse
3: bookshelf permissions (response to 1)
Posted by Ben Koot on
I want to allow registred users to add books to the bookshelf. Bookshelf module is not lsited in the default persmission system. What can i do to change this?

thanks

Collapse
4: Re: bookshelf error (response to 1)
Posted by Peter Marklund on
Ben,
you can set permission on a Bookshelf package just as you can on any other package. Just visit the site map (/admin/site-map) and click on the "set permissions" link for the relevant package.