On Fri, 2002-06-07 at 23:27, [EMAIL PROTECTED] wrote:
> 
> Hi, all
> 
> Thank you all for the previous help. I finally got midgard 1.4.*  RC 2 and
> nadmin installed.
> 
> When I logged in as a company user with company administratior previliges,
> and created new style for my website, I got this message:
> 
> Warning: Wrong parameter count for mgd_copy_style() in ROOT(899) : eval()'d
> code on line 187
> 
> I chose to Based on Empty style(shared). Anything wrong?

Yep, it's nadmin not being updated to current php and midgard versions.

your fix:

in Snippet: / hklc_adminsite_host / argv0 / new / new

change:

77: function new_copy_style($from_id,$new_name,$new_owner,$sitegroup)
78: {
79:   global
$set,$sitegroupid,$sitegroupidurl,$newfiledata,$xmlformat,$rcsroot,$argv,$SERVER_NAME, 
$error_message;
80:   $objpath="";
81:   $up_id=$from_id;
82:   $lastid=0;
83:   while ($tmpobj=mgd_get_style($up_id))
84:   {
85:       $lastid=$tmpobj->id;
86:       $objpathstr=$tmpobj->name."-----".$objpathstr;
87:       $up_id=$tmpobj->up;
88:   }
89:   $objpath=explode("-----",$objpathstr);
90:   $local_id = mgd_copy_style($lastid);

into:

77: function new_copy_style($from_id,$new_name,$new_owner,$sitegroup)
78: {
79:   global
$set,$sitegroupid,$sitegroupidurl,$newfiledata,$xmlformat,$rcsroot,$argv,$SERVER_NAME, 
$error_message;
80:   $objpath="";
81:   $up_id=$from_id;
82:   $lastid=0;
83:   while ($tmpobj=mgd_get_style($up_id))
84:   {
85:       $lastid=$tmpobj->id;
86:       $objpathstr=$tmpobj->name."-----".$objpathstr;
87:       $up_id=$tmpobj->up;
88:   }
89:   $objpath=explode("-----",$objpathstr);
90:   $local_id = mgd_copy_style($lastid, 0);
 

The linenumbers may vary per version/patchlevel.

wkr,

-- 
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to