[campsite-support] topics from different sections
  • Hi Guys,

    i am trying to list on the index page 2 articles from a topic category,
    i have added a restriction to look for these two topics above section 41,

    but i am not getting anything,

    how can display articles attached to topics from various sections?

    {{ local }}
    {{ unset_section }}
    {{ unset_topic }}
    {{ list_articles constraints="topic is ΤΑΙΝΙΕΣ:EL section greater 41 section not 50" order="bypublishdate desc" length="2"}}


    {{ if $campsite->article->has_image(1) }}








    {{ /if }}


    {{ $campsite->article->name }}



    {{ /list_articles }}


    {{ /local }}

    thanks for the help
  • 4 Comments sorted by
  • Hi,

    on a system I found that cronjobs were installed more than once. I believe
    it happend after upgrade of campsite.

    crontab -l tell like this:
    * * * * * /var/www/web247/html/bin/campsite-autopublish
    * * * * * /var/www/web247/html/bin/campsite-autopublish
    0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    */2 * * * * /var/www/web247/html/bin/events-notifier
    */2 * * * * /var/www/web247/html/bin/events-notifier
    0 */4 * * * /var/www/web247/html/bin/campsite-statistics
    0 */4 * * * /var/www/web247/html/bin/campsite-statistics

    This will cause parallel processes with access to the same DB tables, and
    especially the indexer can cause a huge server-load.

    Another reason that you get multiple cronjobs can be a change of the vhost
    server. Campsite cannot detect previously cronjobs than. In such situation
    we have experience big problems with swapping and overload of the server,
    until I found that cronjobs were installed twice or trible.

    Check you crontabs (may on different use accounts) and remove duplicated
    lines.

    Best,
    Sebastian
  • What campsite version?

    On Wed, Mar 31, 2010 at 1:08 PM, Sebastian Goebel
    wrote:

    > Hi,
    >
    > on a system I found that cronjobs were installed more than once. I believe
    > it happend after upgrade of campsite.
    >
    > crontab -l tell like this:
    > * * * * * /var/www/web247/html/bin/campsite-autopublish
    > * * * * * /var/www/web247/html/bin/campsite-autopublish
    > 0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    > 0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    > 0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    > 0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    > */2 * * * * /var/www/web247/html/bin/events-notifier
    > */2 * * * * /var/www/web247/html/bin/events-notifier
    > 0 */4 * * * /var/www/web247/html/bin/campsite-statistics
    > 0 */4 * * * /var/www/web247/html/bin/campsite-statistics
    >
    > This will cause parallel processes with access to the same DB tables, and
    > especially the indexer can cause a huge server-load.
    >
    > Another reason that you get multiple cronjobs can be a change of the vhost
    > server. Campsite cannot detect previously cronjobs than. In such situation
    > we have experience big problems with swapping and overload of the server,
    > until I found that cronjobs were installed twice or trible.
    >
    > Check you crontabs (may on different use accounts) and remove duplicated
    > lines.
    >
    > Best,
    > Sebastian
    >
    >
  • This was some 3.2.x or 3.3.x, cannot say it exactly.
    -----Original Message-----
    From: Mugur Rus [mailto:mugur.rus@sourcefabric.org]
    Sent: Wednesday, March 31, 2010 1:59 PM
    To: campsite-support
    Subject: Re: [campsite-support] duplacate cronjobs / server load


    What campsite version?


    On Wed, Mar 31, 2010 at 1:08 PM, Sebastian Goebel wrote:

    Hi,

    on a system I found that cronjobs were installed more than once. I believe
    it happend after upgrade of campsite.

    crontab -l tell like this:
    * * * * * /var/www/web247/html/bin/campsite-autopublish
    * * * * * /var/www/web247/html/bin/campsite-autopublish
    0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    */2 * * * * /var/www/web247/html/bin/events-notifier
    */2 * * * * /var/www/web247/html/bin/events-notifier
    0 */4 * * * /var/www/web247/html/bin/campsite-statistics
    0 */4 * * * /var/www/web247/html/bin/campsite-statistics

    This will cause parallel processes with access to the same DB tables, and
    especially the indexer can cause a huge server-load.

    Another reason that you get multiple cronjobs can be a change of the vhost
    server. Campsite cannot detect previously cronjobs than. In such situation
    we have experience big problems with swapping and overload of the server,
    until I found that cronjobs were installed twice or trible.

    Check you crontabs (may on different use accounts) and remove duplicated
    lines.

    Best,
    Sebastian
  • Fixed in 3.1.2:
    http://trac.campware.org/campsite/ticket/2636

    On Tue, Apr 6, 2010 at 10:24 PM, Sebastian Goebel
    wrote:

    > This was some 3.2.x or 3.3.x, cannot say it exactly.
    >
    > -----Original Message-----
    > *From:* Mugur Rus [mailto:mugur.rus@sourcefabric.org]
    > *Sent:* Wednesday, March 31, 2010 1:59 PM
    > *To:* campsite-support
    > *Subject:* Re: [campsite-support] duplacate cronjobs / server load
    >
    > What campsite version?
    >
    > On Wed, Mar 31, 2010 at 1:08 PM, Sebastian Goebel > > wrote:
    >
    >> Hi,
    >>
    >> on a system I found that cronjobs were installed more than once. I believe
    >> it happend after upgrade of campsite.
    >>
    >> crontab -l tell like this:
    >> * * * * * /var/www/web247/html/bin/campsite-autopublish
    >> * * * * * /var/www/web247/html/bin/campsite-autopublish
    >> 0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    >> 0 */4 * * * /var/www/web247/html/bin/campsite-indexer
    >> 0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    >> 0 */8 * * * /var/www/web247/html/bin/subscription-notifier
    >> */2 * * * * /var/www/web247/html/bin/events-notifier
    >> */2 * * * * /var/www/web247/html/bin/events-notifier
    >> 0 */4 * * * /var/www/web247/html/bin/campsite-statistics
    >> 0 */4 * * * /var/www/web247/html/bin/campsite-statistics
    >>
    >> This will cause parallel processes with access to the same DB tables, and
    >> especially the indexer can cause a huge server-load.
    >>
    >> Another reason that you get multiple cronjobs can be a change of the vhost
    >> server. Campsite cannot detect previously cronjobs than. In such situation
    >> we have experience big problems with swapping and overload of the server,
    >> until I found that cronjobs were installed twice or trible.
    >>
    >> Check you crontabs (may on different use accounts) and remove duplicated
    >> lines.
    >>
    >> Best,
    >> Sebastian
    >>
    >>
    >