darlas_mom: (jack-sogood)
darlas_mom ([personal profile] darlas_mom) wrote in [community profile] style_system2011-01-04 06:03 pm
Entry tags:

Can't declare usage of non-existent property?

New person here, trying to edit a theme layer. Anybody have any clue what to do about this?

Compile error: line 14, column 5: Can't declare usage of non-existent property
S2::NodeProperty, S2/NodeProperty.pm, 90
S2::NodePropGroup, S2/NodePropGroup.pm, 77
S2::Checker, S2/Checker.pm, 374
S2::Compiler, S2/Compiler.pm, 34

Full disclosure: I don't know how to fix this or if it even can be fixed, I'm very new at this and mostly just following a tutorial on how to create theme layers.
suncat: Basic Suncat Studio avatar (Default)

[personal profile] suncat 2011-01-05 12:56 am (UTC)(link)
What seems to be on line 14 of your layer code? Maybe show lines 13 through 15?
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2011-01-05 03:28 am (UTC)(link)
That's a good hint--where is the tutorial you're working from?

I think it might work if you change that line 14 from:

property use view_entry_disabled;

to:

property use use_journalstyle_entry_page;
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2011-01-05 04:00 am (UTC)(link)
Ah, that's your problem. I bet you're trying to use a core1 style with core2 base. I KNOW THAT SOUNDS HORRIBLY COMPLICATED DO NOT WORRY.

Go here:

http://www.dreamwidth.org/customize/advanced/layers

*Create top-level layer

* Layout, using core version 1 and then click create

The rest is pretty much the same I think.
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)

[personal profile] foxfirefey 2011-01-05 07:04 am (UTC)(link)
With the changes I suggested or without? You should use the plain version you originally had with those instructions, sorry if I was unclear!
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-05 02:57 pm (UTC)(link)
This style is really meant to be used as a Core2 style. As explained, you need to create a Core2 layout layer then copy/paste the code from the first box into your layer. It gave me no errors. However, the coding is outdated and you'll need to remove these to be able to see the style correctly:

"""<style type="text/css">""";
start_css();
"""
<!--


--->
""";
end_css();
"</style>\n";

and replace them with """ and """; respectively.
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-05 03:32 pm (UTC)(link)
The code you have comes from the first box on http://roddy.dreamwidth.org/1076.html?#cutid1, right?
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-05 03:39 pm (UTC)(link)
Oh my bad then. This one does give me lots of errors, even as a Core1 style. It seems it's not compatible with the Core1 version we have on DW.