IRC logs

20140612

Logs from channel #fedext on freenode - our official support channel.

IRC log range: 20140612*

20140612

  • 11:36:08 <dasFelix> hi... Regarding to vhs2.0 I should use v:variable.typoscript instead of v:var.typoscript right? (VHS Dev branch)
  • 11:36:55 <BenjaminR> thats the plan - not sure if it has already been renamed
  • 11:37:52 <BenjaminR> yap dasFelix - v:variable
  • 11:39:21 <dasFelix> okay :) thx BenjaminR - I just tried to replace all 'v:var.' to 'v:variable.' in templates fluidBootstrapTheme. But I get some exception thrown out.
  • 11:39:40 <BenjaminR> "some" ^^
  • 11:40:21 <dasFelix> hehe let me specify in a sec :D
  • 11:43:28 <dasFelix> BenjaminR - when I replace the line in FrontPage.html I get a #1289386765: Could not analyse class:Tx_Vhs_ViewHelpers_Variable_SetViewHelper maybe not loaded or no autoloader?
  • 11:43:38 <dasFelix> TYPO3\CMS\Extbase\Object\Container\Exception\UnknownObjectException thrown in file
  • 11:44:06 <BenjaminR> well how did you define the namespace - because vhs 2.0 is namespaced
  • 11:44:30 <cedricziel> {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  • 11:44:34 <dasFelix> as it is in original FluidBootstrapTheme ...
  • 11:44:45 <dasFelix> nope like this: {namespace v=Tx_Vhs_ViewHelpers}
  • 11:44:48 <dasFelix> is this wrong?
  • 11:44:58 <BenjaminR> use the second one
  • 11:45:00 <cedricziel> with vhs 2.0, it's at least legacy
  • 11:45:02 <BenjaminR> its for namespaces
  • 11:45:11 <dasFelix> Oh I try :D
  • 11:45:47 <BenjaminR> cedricziel may we need two rewrites in classaliasmap for those variable vh´s?
  • 11:45:51 <BenjaminR> Tx_Vhs_ViewHelpers_Var_GetViewHelper' => 'FluidTYPO3\Vhs\ViewHelpers\Variable\GetViewHelper
  • 11:45:55 <BenjaminR> and Tx_Vhs_ViewHelpers_Variable_GetViewHelper' => 'FluidTYPO3\Vhs\ViewHelpers\Variable\GetViewHelper
  • 11:46:37 <BenjaminR> what do people first? rename var to variable in their templates or switch to namespaces?
  • 11:46:49 <BenjaminR> or both at tbe same time?
  • 11:46:57 <cedricziel> yes, the rewrites for that are missing
  • 11:47:02 <cedricziel> must have slipped through
  • 11:47:10 <BenjaminR> no we have those for var
  • 11:47:15 <BenjaminR> and we renamed later
  • 11:47:23 <cedricziel> yes, but we'd need a second one
  • 11:47:28 <dasFelix> cedricziel, BenjaminR ... with full-path-namespace It works!
  • 11:47:33 <BenjaminR> do we need both or only the variable one?
  • 11:47:37 <cedricziel> sure it does :)
  • 11:47:45 <cedricziel> okay, let me tell you:
  • 11:47:54 <cedricziel> we did a two step refactoring
  • 11:48:07 <BenjaminR> yap i know of that :)
  • 11:48:08 <cedricziel> that means we need an alias from tx to \FT3...
  • 11:48:20 <BenjaminR> i told you about "var" is a reserved keyword
  • 11:48:31 <BenjaminR> when i switched them to namespaces
  • 11:48:34 <cedricziel> but, as we refactored the namespace as well, we need now a second alias for each of those
  • 11:48:57 <cedricziel> Tx.......Variable_Set... => \FT3
  • 11:49:01 <BenjaminR> two allow smooth migration?
  • 11:49:08 <BenjaminR> okay :)
  • 11:49:09 <cedricziel> i did it like that for condition.var
  • 11:49:13 <BenjaminR> i will pr
  • 11:49:13 <cedricziel> yep, exactly :)
  • 11:49:18 <cedricziel> cool
  • 11:49:35 <BenjaminR> last pr before holidays ;)
  • 11:49:41 <BenjaminR> twoliner
  • 11:49:51 <cedricziel> then i'll be picky about your lines!
  • 11:49:52 <cedricziel> :D
  • 12:10:50 <cedricziel> thx Benjamin
  • 14:08:17 <dasFelix> what do you recommend during dev of fluidtypo3 templates regarding CACHE settings? I mean to avoid deleting cache in BE and/or Install-Tool? Using ext: uncache or other something else?
  • 14:23:51 <cedricziel> uncache overrides all caching implementations with a null backend-that approach works best
  • 14:24:30 <cedricziel> other than that-there's aswitch in the extension settings of flux to re-eval all templates at any time
  • 15:04:49 <dasFelix> thank u cedricziel. Will try both ways :)
  • 15:20:13 <Benny84> Hello everybody. I've a problem with fluidbootstraptheme. On a local installation everything works fine, but on my webserver nothing shows under Page Layouts if I edit a page. I'm using typo3 6.2.3 and all extensions are git releases.
  • 15:21:46 <SuburbanWorrier> Hi Benny84, I've got exactly the same issue on my mac having recently reinstalled apache/php
  • 15:22:16 <SuburbanWorrier> not looked into it properly yet but I suspect a php version issue
  • 15:40:20 <cedricziel> what php version are you using?
  • 15:40:59 <SuburbanWorrier> cedricziel: hang on I'll fire up the mac
  • 15:41:00 <gencha_> cedricziel: we're on 5.4.4 on our server
  • 15:41:25 <Guest|20973> Hey there. Does anyone know a way of changing the body's class?
  • 15:41:35 <cedricziel> static template included?
  • 15:41:58 <gencha_> cedricziel: yes, but the thumbnails for the page layouts show up fine on his local install without static templates actually
  • 15:42:01 <cedricziel> all caches emptied? (emptying via install tool / rm -rf typo3temp/* works best
  • 15:42:22 <gencha_> Seems like there's a typo in typo3conf/ext/vhs/Migrations/Code/ClassAliasMap.php
  • 15:42:27 <gencha_> Not sure yet if that is related though
  • 15:42:29 <cedricziel> flux debug enabled? display_errors = 1 ?
  • 15:42:39 <cedricziel> where's that typo?
  • 15:42:52 <gencha_> TypoScriptViewHelper, but the class is named TyposcriptViewHelper
  • 15:43:07 <SuburbanWorrier> my install is fresh +introduction package +fedext
  • 15:44:16 <SuburbanWorrier> I'm php 5.3.28
  • 15:44:25 <gencha_> Fixing the typo helped
  • 15:44:37 <gencha_> Workstation is Windows, remote host is Linux :P
  • 15:46:29 <cedricziel> gencha_: can you cross check please? i just pushed a hotfix
  • 15:47:47 <gencha_> cedricziel: Looks exactly like the change we just made locally
  • 15:47:58 <cedricziel> then please pull and check again
  • 15:48:18 <gencha_> Yeah, Benny84 will do that, I guess
  • 15:53:31 <SuburbanWorrier> cedricziel: I'm on TER 1.9.1 & don't have a Migrations folder - should I?
  • 15:53:51 <cedricziel> ahh yes, i see the point. re windows -> linux. case sensitivity :)
  • 15:54:09 <cedricziel> SuburbanWorrier: the fix was inserted for vhs 2.0
  • 15:54:31 <SuburbanWorrier> so my issue must be different ...
  • 15:54:36 <cedricziel> would be great if you could pass some error messages
  • 15:54:50 <cedricziel> just like i said: display_errors on and flux debug would be cool
  • 15:55:24 <arnekolja> Hmmm … is TS the only way to access the body tag? I'd like to set the class via flux.
  • 15:55:57 <SuburbanWorrier> cedricziel: flux debug says "The selected page template does not contain a grid but the template itself is valid"
  • 15:56:35 <cedricziel> arnekolja: TYPO3 itself only offers one option: completely disable all headercode and write it yourself
  • 15:57:04 <cedricziel> hmm.. SuburbanWorrier: page templates should contain a grid ^^
  • 15:58:07 <SuburbanWorrier> cedricziel: bootstrap_package issue then?
  • 15:58:21 <cedricziel> that's a confusing question
  • 15:58:26 <cedricziel> which bootstrap package?
  • 15:58:30 <cedricziel> there's 3 by now
  • 15:58:54 <SuburbanWorrier> via introduction package so bootstrap_package 6.2.4 - all from TER this week
  • 15:59:00 <arnekolja> cedricziel: Not an option at this moment :-/
  • 15:59:10 <cedricziel> arnekolja: then no.
  • 15:59:18 <cedricziel> just typoscript
  • 15:59:40 <cedricziel> make your life easy then and use a constant so you can edit via constants editor
  • 15:59:45 <arnekolja> cedricziel: Okay, thank you anyway :-) Then I'll use a workaround by using the pid as a body class.
  • 15:59:56 <cedricziel> ugly, ugly ^^
  • 16:00:32 <arnekolja> I know, but I don't want to let editing clients use the template editor.
  • 16:00:43 <arnekolja> constant editor
  • 16:01:33 <nimius|thephpjo> Hi there. I just pulled the latest Version of flux. getting the following error when trying to access the backend
  • 16:01:34 <nimius|thephpjo> Fatal error: Call to a member function get() on a non-object in/Users/thephpjo/NIMIUS/AHM/typo3conf/ext/flux/Classes/Configuration/BackendConfigurationManager.php on line 171
  • 16:02:34 <Benny84> @cedricziel: everything's fine after your bugfix
  • 16:03:02 <cedricziel> nice Benny84
  • 16:03:08 <cedricziel> thx for the feedback
  • 16:03:45 <Benny84> np ;)
  • 16:04:06 <cedricziel> nimius|thephpjo: the crux with living on git is that you dont get a clean cache after updating. normally EM does that for you, but with git, typo3 will still use the already reflected _old_ classes
  • 16:04:31 <cedricziel> use the "important action" -> clear all cache emergency button
  • 16:04:38 <cedricziel> (in install tool)
  • 16:04:52 <nimius|thephpjo> i already cleared the typo3temp folder
  • 16:05:06 <nimius|thephpjo> thank you, i'll try
  • 16:05:12 <cedricziel> if that doesnt get you very far, then empty the opcache as well there
  • 16:05:46 <cedricziel> if that doesnt help, you've got an issue with your caching framework and you'll have to clear up the cf_* tables.
  • 16:05:58 <cedricziel> but thats only required on rare occasions
  • 16:06:23 <cedricziel> nimius|thephpjo: for reference: https://github.com/FluidTYPO3/flux/issues/587
  • 16:07:18 <nimius|thephpjo> thank you. I always thought all the caches are inside the typo3temp folder?
  • 16:07:25 <nimius|thephpjo> are there caches in the database?
  • 16:07:44 <cedricziel> unfortunately not really restricted to that. there's a multitude of caches:
  • 16:07:58 <cedricziel> 1.) FS-cache on your machine
  • 16:08:07 <cedricziel> 2.) Opcache in your interpreter
  • 16:08:17 <cedricziel> (which is multi-layered)
  • 16:08:27 <cedricziel> 3.) cache in typo3temp
  • 16:08:48 <cedricziel> 4.) cache in db if caching framework is told to do so
  • 16:08:55 <cedricziel> and a lot more in between those
  • 16:09:22 <cedricziel> so clearing all caches is the solution to almost any of those problems-but you never know which one to clear :)
  • 16:10:33 <nimius|thephpjo> cedric, you just earned a place in our confluence – explaining caches for future reference
  • 16:10:45 <cedricziel> that's where the saying comes from: There are only two hard things in Computer Science: cache invalidation and naming things. -- Phil Karlton
  • 16:10:58 <cedricziel> cool, put a picture next to me :)
  • 16:11:22 <nimius|thephpjo> i'll take the worst picture of you i can find
  • 16:11:47 <cedricziel> perfect thing!
  • 16:14:05 <SuburbanWorrier> cedricziel: fyi for my introduction package based install I get a working BE Page module when I uninstall all the fedext extensions
  • 16:14:20 <cedricziel> yeah, i can imagine that
  • 16:14:34 <cedricziel> the bootstrap distribution is meant to play well on its own
  • 16:14:49 <cedricziel> it shows you how to create custom CE's the hard way
  • 16:15:14 <cedricziel> could be there's some Implementation injected somewhere instead of an interface
  • 16:15:32 <cedricziel> like with the recent trouble with yag
  • 16:15:35 <SuburbanWorrier> "hard way" .yep - can see that now I'm a few months down the line
  • 16:16:06 <SuburbanWorrier> ..but it all works for me on other servers
  • 16:16:19 <cedricziel> just to make it clear: hard in this case doesnt mean "bad". the hard things are those that are srong enough to survive the winter
  • 16:23:00 <SuburbanWorrier> cedricziel: uninstalling/reinstalling extensions show that fluidpages is what breaks the Page module for me in this case
  • 16:23:27 <cedricziel> then there's an incompat in any of those
  • 16:23:58 <SuburbanWorrier> and I *don't* have fluidpages in my working servers (like I thought I did)
  • 16:24:20 <cedricziel> yes well. then there's something (tm) in there
  • 16:24:27 <SuburbanWorrier> lol
  • 16:24:42 <cedricziel> examinat0red :)
  • 16:25:29 <SuburbanWorrier> ... one issue down - on to the real deal breaker :-\
  • 19:26:32 <dasFelix> with v:asset.style I include some CSS of several things like font-awesome, a skin, a lightbox, and of course a content.css. Now I have a file like "vhs-assets-awesome-skin-anmiate-slider-contentcss.css" because of the different "name" attribute of VH. Is there a switch which appends the stylesheet and does NOT create such a name-stylesheet-filename? Just "vhs-assets-site.css" or something like
  • 19:26:33 <dasFelix> this? Thanks for any hints
  • 19:28:35 <cedricziel> why does this matter to you?
  • 19:29:03 <cedricziel> you can flip the standalone switch or create a group with just one asset
  • 19:29:11 <dasFelix> cedricziel - it doesn't matter. Just cosmetic issue :D
  • 19:29:58 <dasFelix> it's great when all those stylesheets are merged. I am not using the standalone attribute. I'll try
  • 19:30:22 <cedricziel> you could try grouping then as well
  • 19:31:19 <dasFelix> they are all already in one group="css"
  • 19:33:35 <dasFelix> ahh I see... standalone saves them in own temporary files. But I like it merged. The less HTTP requests the better for server/client communication. As I wrote... just cosmetic issue. I just wondered if I can take influence on the generated typo3temp/vhs-asset..xxxxx.css file name
  • 19:33:56 <cedricziel> you cant.
  • 19:34:13 <dasFelix> okay :D no problem... thank you cedricziel :D
  • 19:34:18 <cedricziel> I'm hacking on a new asset pipe, but it slowed down a bit
  • 19:34:41 <cedricziel> i would like to use each of the approaches in combination
  • 19:35:20 <cedricziel> the existing typoscript solution with aditional attributes and an adapter for vhs to be able to hard-core optimize it
  • 19:48:11 <dasFelix> With templates I try to do as much as possible with fluid/vhs. And I really *love* the power of the existing asset vh :D