Forum OpenACS Q&A: lars blogger in 4.6.1 dumps?

Collapse
Posted by bob phillips on
It shows as mounted in my site page, but when I click on
the instance I get...
--------------------

Package notifications was not found.  May not be mounted.
    invoked from within
"apm_package_url_from_key_mem notifications"
    ("eval" body line 1)
    invoked from within
"eval $script"
    invoked from within
"ns_cache eval util_memoize $script {
            list $current_time [eval $script]
        }"
    (procedure "util_memoize" line 20)
    invoked from within
"util_memoize "apm_package_url_from_key_mem $package_key""
    (procedure "apm_package_url_from_key" line 2)
    invoked from within
"apm_package_url_from_key [notification::package_key"
    (procedure "subscribe_url" line 5)
    invoked from within
"subscribe_url -type $type -object_id $object_id -url $url -user_id $user_id -pretty_name $pretty_name"
    (procedure "notification::display::request_widget" line 17)
    invoked from within
"notification::display::request_widget  -type lars_blogger_notif  -object_id [ad_conn package_id]  -pretty_name [lars_blog_name]  -url [lars_blog_publi..."
    invoked from within
"set notification_chunk [notification::display::request_widget  -type lars_blogger_notif  -object_id [ad_conn package_id]  -pretty_name [lars_blog_name..."
    ("uplevel" body line 26)
    invoked from within
"uplevel {
          ad_page_contract {
    The Weblogger index page.

    @author Lars Pind (mailto:lars@pinds.com)
    @creation-date February 2002
} {
    yea..."
    (procedure "code::tcl::/web/openacs-dev/packages/lars-blogger/www/index" 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 [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
Posted by Don Baccus on
You need to mount as well as install notifications.  Go to the site-map and mount it under "/" as notifications.

We've been enhancing the package manager so in the future (maybe 4.6.2, certainly 4.7) we'll be able to automount such packages but at the moment you have to do it by hand ...

Collapse
Posted by bob phillips on
ok, got it. Had to restart the server, too.

bob

Collapse
Posted by Don Baccus on
Oh my god, does this mean the world's going to be subjected to a rawdirt blog?
Collapse
Posted by Malte Sussdorff on
Out of curiosity. Lars Blogger is checking whether the notifications package is installed. Why not just leave the link for "you may request notifications" disabled if the notifications package is not mounted (at least this is the method we use for file-storage notifications).
Collapse
Posted by Lars Pind on
Notifications will be installed, because it's required.

But I added a catch, so it won't bomb.

This problem should be solved for the future, though, with the auto-mounting.

/Lars

Collapse
7: same for forums (response to 1)
Posted by tammy m on
I just had to do the same (install Notifications, restart, then mount Notifications and restart again) to use Forums 0.4d on OACS 4.6.1. Notifications wasn't listed in dependencies for Forums.