Forum OpenACS Q&A: Edit-this-page package

Collapse
Posted by Iuri Sampaio on
I installed the package on my oacs box. and i got a server message error:
It seems that the pkg edit-this-package has some dependencies of the weblogger pkg. Is that right?

*******************************

invalid command name "lars_blog_name"
while executing
"lars_blog_name"
invoked from within
"set page_title [lars_blog_name]"
("uplevel" body line 17)
invoked from within
"uplevel {
ad_page_contract {
The Weblogger index page.

@author Lars Pind (mailto:lars@pinds.com)
@creation-date February 2002
} {
{sc..."
(procedure "code::tcl::/home/yabtdev/yabtdev/packages/edit-this-page/tem..." 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 $__adp_master [concat [list __adp_slave $__adp_output] [array get __adp_properties]]"
(procedure "template::adp_parse" line 91)
invoked from within
"template::adp_parse $__adp_master [concat [list __adp_slave $__adp_output] [array get __adp_properties]]"
(procedure "template::adp_parse" line 91)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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 $path"
(procedure "rp_internal_redirect" line 26)
invoked from within
"rp_internal_redirect $path"
(file "/home/yabtdev/yabtdev/packages/edit-this-page/www/index.vuh" line 50)
invoked from within
"source [ad_conn file]"
(procedure "rp_handle_tcl_request" line 3)
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..."

Collapse
2: Re: Edit-this-page package (response to 1)
Posted by Dave Bauer on
What "application" are you using within edit-this-page? Each ETP application is a template, usually under /packages/edit-this-page/templates

I can see the partial path of the template in your error report. Track down which template it is using and you should be able to see where the error is.

Under the default application it should not require the weblogger package. If might be using another template that attempts to include some information from the weblogger package.

Collapse
Posted by Iuri Sampaio on
Thanks Dave,
This morning i woke inspired and figured out what was the problem.

I was using the edit-this-page pkg from my local server. Which by the way, i messed up the code adding webbloger as an include on the edit-this-page/index.

the reason i did that is that i don't know how to manage the main page layout, even the system at all, without mess around.

So i know how to coding, but i don't have the background of the platform, i don't have the whole vision of the system, so i can't see the best, optmized and easiest way to build what i need. Take a look:
http://www.myybiz.net

Two good points:
Now i got working, i dowlonded a clean version from CVS.
and now i know why we shouldn't add codes on the page without knowing the structure behind
I'm learing :)

you see... you got exactly what error was. I need to learn and understand the error messages like you do.