de.linkm.newsticker schema problem

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

de.linkm.newsticker schema problem

by Mattias Stahre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Something is making newsticker go nuts with this schema, I will attach both the debug log, and the schema used...
Anyone got any tips? Maybe the schema is to big? I dunno.
 
############################## LOGGING STARTED DEC 26 15:38:55 #####################################################
Dec 26 15:38:55 [debug] midcom.helper.metadata::retrieve: Successfully created a metadata object for adf84d5e33e693b1e65963792fdb4770.
Dec 26 15:38:55 [debug] midcom_helper__basicnav::_loadnodedata: Successfully loaded NAP data from Topic 619
Dec 26 15:38:55 [debug] midcom_application::content: Entering Context 0 (old Context: 0)
Dec 26 15:38:55 [debug] midcom_helper__styleloader::enter_context: entering context 0
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_style_id_from_path: Trying to get substyle 'plux/plux-blog'
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_style_id_from_path: Starting from ''
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_style_id_from_path: Found substyle: id=262
###
Dec 26 15:38:55 [info] midcom_helper__styleloader::_getComponentStyle: Current component has user defined style: 262
###
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_getComponentStyle: substyle=
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_style_id_from_path: Trying to get substyle ''
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_style_id_from_path: Starting from 'plux-blog'
#### Warn
Dec 26 15:38:55 [warn] midcom_helper__styleloader::_get_style_id_from_path: Substyle '' not found
###
Dec 26 15:38:55 [debug] midcom_application::_output: We are operating in Context 0.
###
Dec 26 15:38:55 [info] midcom_helper__styleloader::show: trying to load "style-init"
###
Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: style scope is 262
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_element_in_styletree: Trying to find 'style-init' in Style '262'...
Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: trying to find 'style-init' in default style (snippetdir /de/linkm/newsticker/style)
Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: File /usr/local/share/midgard/midcom-2.4.5/lib/de/linkm/newsticker/style/style-init.php does not exist.
#### Warn
Dec 26 15:38:55 [warn] midcom_helper__styleloader::show: Element not found: style-init
###
Dec 26 15:38:55 [debug] midcom_application::_output: content request
###
Dec 26 15:38:55 [info] midcom_helper__styleloader::show: trying to load "show-index-header"
###
Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: style scope is 262
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_element_in_styletree: Trying to find 'show-index-header' in Style '262'...
Dec 26 15:38:55 [debug] midcom_helper__styleloader::_get_element_in_styletree: Found element '1577'.
Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: Found element. evaluating now.
Dec 26 15:38:55 [debug] midcom_helper_datamanager::midcom_helper_datamanager: Default Constructor not allowed
 
####################################### ERROR PART START ###############################################
Dec 26 15:38:55 [error] midcom_application::generate_error: Generate-Error was called after code-init, cannot send header information!
Dec 26 15:38:55 [error] midcom_application::generate_error: Unexpected Error: 500 - Layout class could not be instantinated.
####################################### ERROR PART END ##################################################
 
Dec 26 15:41:09 [debug] Start of MidCOM run
Dec 26 15:41:09 [debug] ARGC = 1; ARGV =
######################################## LOG END #########################################################
 
 
 
##### Snippet /plux/de.linkm.newsticker/blogschema #####
 
"default" => array (
    "name"        => "default",
    "description" => "News Article",
    "fields"      => array (
        "date" => array (
            "description" => "Date",
            "datatype"    => "unixdate",
            "location"    => "created",
            "hidden" => true,
        ),
        "name" => midcom_helper_datamanager_urlname_field(),
        "title" => array (
            "description" => "Title",
            "datatype"    => "text",
            "location"    => "title",
            "required" => true,
        ),
        "category" => array(
            "description" => "categories",
            "datatype" => "multiselect",
            "location" => "parameter",
            "widget" => "multiselect",
            "multiselect_selection_list" => array (

   "apache" => "Apache",
   "apple" => "Apple",
   "askpluxse" => "Ask Plux.se",

   "dumbfucks" => "Dumbfucks",

   "games" => "Games",
   "gnome" => "Gnome",

   "hardware" => "Hardware",

   "interviews" => "Interviews",

   "linux" => "Linux",

   "midgarddevelopment" => "Midgard Development",
   "midgardfun" => "Midgard Fun",
   "midgardnews" => "Midgard News",

   "opensource" => "OpenSource",

   "security" => "Security",
   "science" => "Science"

   "travel" => "Travel",

   "personal" => "Personal",
   "politics" => "Politics",

   "unixbsd" => "Unix/BSD",

   "yro" => "Your rights online",           
     ),
        "abstract" => array (
            "description" => "Abstract",
            "datatype"    => "text",
            "location"    => "abstract",
            "widget_text_inputstyle" => "longtext",
            /* abstracs are usually shorter than the full text, so we set a smaller
             * size for it
             */
            "widget_text_height" => "8em",
        ),
        "content" => array (
            "description" => "Text",
            "datatype"    => "text",
            "location"    => "content",
            "widget"      => "html"
        ),
        "created" => array (
            "description" => "Date",
            "datatype"    => "unixdate",
            "location"    => "created",
            "date_withtime" => true,
            "update_article_created" => true,
        ),
        "image" => array (
            "description" => "Image",
            "datatype"    => "blob",
            "widget"      => "image",
            "location"    => "attachment",
            "widget_image_simple" => true,
        )
    )
), // default
 
############ Report end ###########


--
Mattias "Plux" Stahre

Re: de.linkm.newsticker schema problem

by Henri Bergius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Dec 26, 2005, at 16:49, Mattias Stahre wrote:
> Something is making newsticker go nuts with this schema, I will  
> attach both the debug log, and the schema used...
> Anyone got any tips? Maybe the schema is to big? I dunno.

Try removing the // comment from the end:

> ), // default

> Mattias "Plux" Stahre

/Bergie

Henri Bergius
Consultant Partner, Nemein
henri.bergius@...

Midgard CMS
www.midgard-project.org




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


Re: de.linkm.newsticker schema problem

by Mattias Stahre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Still dosent work at all, and I cant find any errors in the schema, really...
 
What I change is the category and fill it with more than the exmaples shows...

 
On 12/26/05, Henri Bergius <henri.bergius@...> wrote:

On Dec 26, 2005, at 16:49, Mattias Stahre wrote:
> Something is making newsticker go nuts with this schema, I will
> attach both the debug log, and the schema used...
> Anyone got any tips? Maybe the schema is to big? I dunno.

Try removing the // comment from the end:

> ), // default

> Mattias "Plux" Stahre

/Bergie

Henri Bergius
Consultant Partner, Nemein
henri.bergius@...

Midgard CMS
www.midgard-project.org




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




--
Mattias "Plux" Stahre

Re: de.linkm.newsticker schema problem

by Arttu Manninen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should check the syntax in the first, I found two crucial mistakes
in your schema which both will fail with eval.

In categories you're missing a comma in the of category 'science' and
then you've forgotten to end that category field with a bracket.

A good design pattern would be to indent better, which would have saved
you from the missing bracket. That comma then again might be harder to
spot, but experience will come to help with this.

With these fixes I got the schema to work. As for the pedagogic part I
will let you correct these mistakes yourself.


--
Adrenalin


Mattias Stahre wrote:

> Something is making newsticker go nuts with this schema, I will attach
> both the debug log, and the schema used...
> Anyone got any tips? Maybe the schema is to big? I dunno.
>  
> ############################## LOGGING STARTED DEC 26 15:38:55
> #####################################################
> Dec 26 15:38:55 [debug] midcom.helper.metadata::retrieve: Successfully
> created a metadata object for adf84d5e33e693b1e65963792fdb4770.
> Dec 26 15:38:55 [debug] midcom_helper__basicnav::_loadnodedata:
> Successfully loaded NAP data from Topic 619
> Dec 26 15:38:55 [debug] midcom_application::content: Entering Context 0
> (old Context: 0)
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::enter_context:
> entering context 0
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_style_id_from_path: Trying to get
> substyle 'plux/plux-blog'
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_style_id_from_path: Starting from ''
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_style_id_from_path: Found substyle: id=262
> ###
> Dec 26 15:38:55 [info] midcom_helper__styleloader::_getComponentStyle:
> Current component has user defined style: 262
> ###
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::_getComponentStyle:
> substyle=
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_style_id_from_path: Trying to get
> substyle ''
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_style_id_from_path: Starting from
> 'plux-blog'
> #### Warn
> Dec 26 15:38:55 [warn]
> midcom_helper__styleloader::_get_style_id_from_path: Substyle '' not found
> ###
> Dec 26 15:38:55 [debug] midcom_application::_output: We are operating in
> Context 0.
> ###
> Dec 26 15:38:55 [info] midcom_helper__styleloader::show: trying to load
> "style-init"
> ###
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: style scope is 262
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_element_in_styletree: Trying to find
> 'style-init' in Style '262'...
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: trying to find
> 'style-init' in default style (snippetdir /de/linkm/newsticker/style)
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: File
> /usr/local/share/midgard/midcom-2.4.5/lib/de/linkm/newsticker/style/style-init.php
> does not exist.
> #### Warn
> Dec 26 15:38:55 [warn] midcom_helper__styleloader::show: Element not
> found: style-init
> ###
> Dec 26 15:38:55 [debug] midcom_application::_output: content request
> ###
> Dec 26 15:38:55 [info] midcom_helper__styleloader::show: trying to load
> "show-index-header"
> ###
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: style scope is 262
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_element_in_styletree: Trying to find
> 'show-index-header' in Style '262'...
> Dec 26 15:38:55 [debug]
> midcom_helper__styleloader::_get_element_in_styletree: Found element '1577'.
> Dec 26 15:38:55 [debug] midcom_helper__styleloader::show: Found element.
> evaluating now.
> Dec 26 15:38:55 [debug]
> midcom_helper_datamanager::midcom_helper_datamanager: Default
> Constructor not allowed
>  
> ####################################### ERROR PART START
> ###############################################
> Dec 26 15:38:55 [error] midcom_application::generate_error:
> Generate-Error was called after code-init, cannot send header information!
> Dec 26 15:38:55 [error] midcom_application::generate_error: Unexpected
> Error: 500 - Layout class could not be instantinated.
> ####################################### ERROR PART END
> ##################################################
>  
> Dec 26 15:41:09 [debug] Start of MidCOM run
> Dec 26 15:41:09 [debug] ARGC = 1; ARGV =
> ######################################## LOG END
> #########################################################
>  
>  
>  
> ##### Snippet /plux/de.linkm.newsticker/blogschema #####
>  
> "default" => array (
>     "name"        => "default",
>     "description" => "News Article",
>     "fields"      => array (
>         "date" => array (
>             "description" => "Date",
>             "datatype"    => "unixdate",
>             "location"    => "created",
>             "hidden" => true,
>         ),
>         "name" => midcom_helper_datamanager_urlname_field(),
>         "title" => array (
>             "description" => "Title",
>             "datatype"    => "text",
>             "location"    => "title",
>             "required" => true,
>         ),
>         "category" => array(
>             "description" => "categories",
>             "datatype" => "multiselect",
>             "location" => "parameter",
>             "widget" => "multiselect",
>             "multiselect_selection_list" => array (
>
>    "apache" => "Apache",
>    "apple" => "Apple",
>    "askpluxse" => "Ask Plux.se <http://Plux.se>",
>
>    "dumbfucks" => "Dumbfucks",
>
>    "games" => "Games",
>    "gnome" => "Gnome",
>
>    "hardware" => "Hardware",
>
>    "interviews" => "Interviews",
>
>    "linux" => "Linux",
>
>    "midgarddevelopment" => "Midgard Development",
>    "midgardfun" => "Midgard Fun",
>    "midgardnews" => "Midgard News",
>
>    "opensource" => "OpenSource",
>
>    "security" => "Security",
>    "science" => "Science"
>
>    "travel" => "Travel",
>
>    "personal" => "Personal",
>    "politics" => "Politics",
>
>    "unixbsd" => "Unix/BSD",
>
>    "yro" => "Your rights online",          
>      ),
>         "abstract" => array (
>             "description" => "Abstract",
>             "datatype"    => "text",
>             "location"    => "abstract",
>             "widget_text_inputstyle" => "longtext",
>             /* abstracs are usually shorter than the full text, so we
> set a smaller
>              * size for it
>              */
>             "widget_text_height" => "8em",
>         ),
>         "content" => array (
>             "description" => "Text",
>             "datatype"    => "text",
>             "location"    => "content",
>             "widget"      => "html"
>         ),
>         "created" => array (
>             "description" => "Date",
>             "datatype"    => "unixdate",
>             "location"    => "created",
>             "date_withtime" => true,
>             "update_article_created" => true,
>         ),
>         "image" => array (
>             "description" => "Image",
>             "datatype"    => "blob",
>             "widget"      => "image",
>             "location"    => "attachment",
>             "widget_image_simple" => true,
>         )
>     )
> ), // default
>  
> ############ Report end ###########
>
>
> --
> Mattias "Plux" Stahre


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


Customizing Midcom Blog style

by med-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I have only recently started to fiddle with midcom
(it's quite a steep learning curve when coming from old Aegir-Sytle
thinking...)
I have gone through a few "learning-sessions" in the Wiki, what i am
stuck with right now is:
How do i add category support to the Blog-Style?
I have categories enabled in blog successfully - but where do i put the
category-switch in the newsticker-style?
And how Do i retrieve a list of all my categories announced in the
datamanager-schema?

As always thankful for any hints,

Alex


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


Re: Customizing Midcom Blog style

by Henri Bergius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, January 16, 2006 9:19 pm, med wrote:
> Hi All,

Greetings!

> How do i add category support to the Blog-Style?
> I have categories enabled in blog successfully - but where do i put the
> category-switch in the newsticker-style?

I added some quick notes about this to
http://www.midgard-project.org/documentation/adding-categories-to-newsticker/

> Alex

/Bergie

--
Henri Bergius
Consultant Partner, Nemein
henri.bergius@...

Midgard CMS
www.midgard-project.org

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


AW: Customizing Midcom Blog style

by med-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bergie,

> > How do i add category support to the Blog-Style?
> > I have categories enabled in blog successfully - but where do i put
> > the category-switch in the newsticker-style?
>
> I added some quick notes about this to
> http://www.midgard-project.org/documentation/adding-categories
- -to-newsticker/

Thanx, thats about what i needed...

Coming from old-Aegir,
I mostly still catch myself thinking - "Nah, too easy, cannot be right"...

Cheers,

Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFDzpi/6ByBlKPys/0RAl3gAJ92fVB41kxMyTGH/m37uJApt6z6+QCdFwx2
uzfJu+GdxW051QOOZrwun8I=
=cH2h
-----END PGP SIGNATURE-----


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


Re: AW: Customizing Midcom Blog style

by Henri Bergius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jan 18, 2006, at 21:36, med wrote:
> Coming from old-Aegir,
> I mostly still catch myself thinking - "Nah, too easy, cannot be  
> right"...

Well, there are two things still quite wrong with MidCOM:

1) Site builder -level documentation is not very good (developer docs  
are)
2) Powerful features like custom datamanager schemas and output  
templates don't have UIs

Part 1) is slowly getting better as more people get comfortable with  
the documentation wiki. Especially Arttu has been helping quite a bit  
lately.

There is some progress in part 2) as well. Tarjei's Aegir2 is being  
built around the idea of MidCOM being the default way of creating  
sites with Midgard, and includes a style editor that will (or does?)  
load the default templates of components as base for users to make  
their customizations from.

Also, Osku has been doing some work on a schema editor, but is  
unfortunately now too swamped with work to make a running version. I  
hope we'll be able to push that forward, though.

I'll try to consolidate the tutorials we already have to
http://www.midgard-project.org/documentation/howto-midcom/

> Alex

/Bergie

Henri Bergius
Consultant Partner, Nemein
henri.bergius@...

Midgard CMS
www.midgard-project.org




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

LightInTheBox - Buy quality products at wholesale price