Nima,
i do not know what could be wrong to generate this message. Maybe just problems regarding quotes or something like that, isn't it?
i used defaults.sql as template to insert kelp theme to database for dotlrn and portal_element_theme__new performed well.
This is what i did:
1. used defaults.sql as template and generate a file just for KELP insert say kelp-theme-insert.sql with this only content (downloadable file: sorry, copy and paste to this forum replace hash keys 😊 )
http://www.teknedigital.com.br/kelp-theme-insert.sql
2. perform plpgsql call
# psql -d yourdb -f kelp-theme-insert.sql
the output i had show sucess for sql execution:
CREATE FUNCTION
psql:kelp-upgrade.sql:20: NOTICE: adding missing FROM-clause entry for table "acs_object_id_seq"
CONTEXT: PL/pgSQL function "acs_object__new" line 17 at select into variables
PL/pgSQL function "acs_object__new" line 10 at return
PL/pgSQL function "portal_element_theme__new" line 15 at assignment
PL/pgSQL function "portal_element_theme__new" line 9 at assignment
PL/pgSQL function "inline_0" line 5 at perform
inline_0
----------
0
(1 row)
DROP FUNCTION
hope it helps!
Nima thank you for your report about dotlrn upgrade process in the thread we are discussing it. I will return on it and observe your notes regarding call to proc apm_parameter_register