MidCOM: error editing an article

View: New views
6 Messages — Rating Filter:   Alert me  

MidCOM: error editing an article

by Ingo Herz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

we have a Midgard/MidCOM setup with some vhosts, grouped into multiple Midgard
databases (one for each customer). It runs on Debian sarge with Midgard 1.7.3
from debs, MidCOM site template (2005.11.10), php 4.3.10 (deb) and Apache 1.3 (deb).

Some articles can not be edited in MidCOM (Error: failed to update the storage object:
Object does not exist). Others work well. The site was migrated from another host. So I
tried to edit with aegir and got this error:

Fatal error: Call to a member function on a non-object in /var/cache/midgard/xxx/1-10-5-0.php(991) : eval()'d code on line 531

This is line 991 in .../1-10-5-0.php:
991:    eval(' ?>'.mgd_preparse(mgd_snippet($set["snippetpath"]."/lib/rcs_functions")).'<?php ');

and snippet rcs_functions contains this:
528:                    if($link->guid()) {
529:                        $ret.="<$k>".$link->guid()."</$k>\n";
530:                    }
531:                    else{
532:                        $ret.="<$k>".$link->__table__."_" $link->id."</$k>\n";
533:                    }

Any idea what is going wrong here?

Thanks a lot,
Ingo

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: MidCOM: error editing an article

by Tarjei Huse-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On tor, 2006-01-12 at 11:15 +0100, Ingo Herz wrote:
>
> Fatal error: Call to a member function on a non-object
> in /var/cache/midgard/xxx/1-10-5-0.php(991) : eval()'d code on line
> 531
>
> This is line 991 in .../1-10-5-0.php:
> 991:
> eval(' ?>'.mgd_preparse(mgd_snippet($set["snippetpath"]."/lib/rcs_functions")).'<?php ');
>
Hi, have you checked if the rcs directory is writeable by the apache
process?

Tarjei
> and snippet rcs_functions contains this:
--
Tarjei Huse <tarjei@...>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: MidCOM: error editing an article

by Ingo Herz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Samstag, 14. Januar 2006 15:58 schrieb Tarjei Huse:

> On tor, 2006-01-12 at 11:15 +0100, Ingo Herz wrote:
> > Fatal error: Call to a member function on a non-object
> > in /var/cache/midgard/xxx/1-10-5-0.php(991) : eval()'d code on line
> > 531
> >
> > This is line 991 in .../1-10-5-0.php:
> > 991:
> > eval('
> > ?>'.mgd_preparse(mgd_snippet($set["snippetpath"]."/lib/rcs_functions")).'
> ><?php ');
>
> Hi, have you checked if the rcs directory is writeable by the apache
> process?

#/var/lib/aegir/cvs# ls -ld .
drwxr-xr-x  2 www-data www-data 8192 2006-01-14 17:22 .

and there are lots of files like

-r--r--r--  1 www-data www-data  7447 2006-01-13 09:52 fa577112f2a481c19897c8df44f6d3f6,v
-rwxr-xr-x  1 www-data www-data     0 2006-01-13 12:20 facef30a64e61082bcdc4b7b4b816e44
-rw-r--r--  1 www-data www-data     0 2006-01-14 17:22 midgard_check_cvs_write

I think that should be OK.

thanks,
Ingo

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: MidCOM: error editing an article

by Tarjei Huse-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On lør, 2006-01-14 at 17:27 +0100, Ingo Herz wrote:

> Am Samstag, 14. Januar 2006 15:58 schrieb Tarjei Huse:
> > On tor, 2006-01-12 at 11:15 +0100, Ingo Herz wrote:
> > > Fatal error: Call to a member function on a non-object
> > > in /var/cache/midgard/xxx/1-10-5-0.php(991) : eval()'d code on line
> > > 531
> > >
> > > This is line 991 in .../1-10-5-0.php:
> > > 991:
> > > eval('
> > > ?>'.mgd_preparse(mgd_snippet($set["snippetpath"]."/lib/rcs_functions")).'
> > ><?php ');
> >
> > Hi, have you checked if the rcs directory is writeable by the apache
> > process?
>
> #/var/lib/aegir/cvs# ls -ld .
> drwxr-xr-x  2 www-data www-data 8192 2006-01-14 17:22 .
>
> and there are lots of files like
>
> -r--r--r--  1 www-data www-data  7447 2006-01-13 09:52 fa577112f2a481c19897c8df44f6d3f6,v
  ^^^^^ <- are you sure? This looks wrong to me.
Tarjei

> -rwxr-xr-x  1 www-data www-data     0 2006-01-13 12:20 facef30a64e61082bcdc4b7b4b816e44
> -rw-r--r--  1 www-data www-data     0 2006-01-14 17:22 midgard_check_cvs_write
>
> I think that should be OK.
>
> thanks,
> Ingo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
--
Tarjei Huse <tarjei@...>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: MidCOM: error editing an article

by Ingo Herz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

At 12:10 15.01.2006, you wrote:

>On lør, 2006-01-14 at 17:27 +0100, Ingo Herz wrote:
> > Am Samstag, 14. Januar 2006 15:58 schrieb Tarjei Huse:
> > > On tor, 2006-01-12 at 11:15 +0100, Ingo Herz wrote:
> > > > Fatal error: Call to a member function on a non-object
> > > > in /var/cache/midgard/xxx/1-10-5-0.php(991) : eval()'d code on line
> > > > 531
> > > >
> > > > This is line 991 in .../1-10-5-0.php:
> > > > 991:
> > > > eval('
> > > >
> ?>'.mgd_preparse(mgd_snippet($set["snippetpath"]."/lib/rcs_functions")).'
> > > ><?php ');
> > >
> > > Hi, have you checked if the rcs directory is writeable by the apache
> > > process?
> >
> > #/var/lib/aegir/cvs# ls -ld .
> > drwxr-xr-x  2 www-data www-data 8192 2006-01-14 17:22 .
> >
> > and there are lots of files like
> >
> > -r--r--r--  1 www-data www-data  7447 2006-01-13 09:52
> fa577112f2a481c19897c8df44f6d3f6,v
>   ^^^^^ <- are you sure? This looks wrong to me.

One should never be shure... Of course this is wrong. Changed all 444 to
644, tried again but the error is still the same. What else could I do to
debug this? I'm quite shure that it will work if I recreate the topic but I
really would like to know what is going wrong here.

Ingo


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: MidCOM: error editing an article

by Tarjei Huse-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On man, 2006-01-16 at 18:48 +0100, Ingo Herz wrote:

> At 12:10 15.01.2006, you wrote:
> >On lør, 2006-01-14 at 17:27 +0100, Ingo Herz wrote:
> > > Am Samstag, 14. Januar 2006 15:58 schrieb Tarjei Huse:
> > > > On tor, 2006-01-12 at 11:15 +0100, Ingo Herz wrote:
> > > > > Fatal error: Call to a member function on a non-object
> > > > > in /var/cache/midgard/xxx/1-10-5-0.php(991) : eval()'d code on line
> > > > > 531
> > > > >
> > > > > This is line 991 in .../1-10-5-0.php:
> > > > > 991:
> > > > > eval('
> > > > >
> > ?>'.mgd_preparse(mgd_snippet($set["snippetpath"]."/lib/rcs_functions")).'
> > > > ><?php ');
> > > >
> > > > Hi, have you checked if the rcs directory is writeable by the apache
> > > > process?
> > >
> > > #/var/lib/aegir/cvs# ls -ld .
> > > drwxr-xr-x  2 www-data www-data 8192 2006-01-14 17:22 .
> > >
> > > and there are lots of files like
> > >
> > > -r--r--r--  1 www-data www-data  7447 2006-01-13 09:52
> > fa577112f2a481c19897c8df44f6d3f6,v
> >   ^^^^^ <- are you sure? This looks wrong to me.
>
> One should never be shure... Of course this is wrong. Changed all 444 to
> 644, tried again but the error is still the same. What else could I do to
> debug this? I'm quite shure that it will work if I recreate the topic but I
> really would like to know what is going wrong here.

Take a look at the snippet in question (lib/rcs_functions) I think it
has a debug paramet you can set to see what happens inside it.
T

> Ingo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
--
Tarjei Huse <tarjei@...>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...