Fluid Templating Error TYPO3 8.4.1 - typo3

I recently set up a new test environment using TYPO3 v 8.4.1
I used the popular FLUID templating tutorial found on typo3buddy.com
I've used this tutorial before on v6 and v7 projects.
My templates breaks (Ooops an error occurred) when I add the following block of code to the my home.html template:
<f:layout name="main_layout" />
<f:section name="content">
</f:section>
So that it now looks like this:
<f:layout name="main_layout" />
<f:section name="content">
<f:format.raw>{content_main}</f:format.raw>
</f:section>
When I use the this tutorial on a v7 install of TYPO3 I do not receive any error and the tempalte includes my layout file just fine.
Has something changed in v8?
TypoScript justincase,
page.10 = FLUIDTEMPLATE
page.10 {
format = html
file = fileadmin/templates/home.html
partialRootPath = fileadmin/templates/partials/
layoutRootPath = fileadmin/templates/layouts/
variables {
content_main < styles.content.get
content_main.select.where = colPos = 0
}

To get a better Output of the Error you should enable the Develop ApplicationContext in the .htaccess:
RewriteCond %{HTTP_HOST} ^local\.domain$
RewriteRule .? - [E=TYPO3_CONTEXT:Development]

You can try to set the config.contentObjectExceptionHandler = 0 in your TS setup. This will display error messages instead of hiding them.
Also make sure to select the Development preset in the Install Tool.
Make sure to switch all settings back to production once you are done debugging.

Related

Adding class attribute to HTML Tag in TYPO3 9.x or access the config.yaml configuration in typoscript?

In my TYPO3 9.5 LTS project i want the follwoing HTML Tag rendered:
<html dir="ltr" lang="de" class="no-js">
In previous TYPO3 Settings, i could configure this by the typoscript:
page.config.htmlTag_setParams = dir="ltr" lang="{$config.language}" class="no-js"
But in TYPO3 9.5, the language settings are defined in the config.yaml file. Without the typoscript setting above, the html tag will render the correct dir attribute and lang attributt. But if i try to add the class attribute like this:
page.config.htmlTag_setParams = class="no-js"
the lang and dir attribute will be overwritten.
Is there a way to just add the class attribute without removing the lang and dir attribute?
Can i access the yaml configurations in typoscript setup?
This will be possible as soon as 9.5.2 has been released because of the feature https://review.typo3.org/#/c/58976/

Typo3 Form Finisher, class not found

I use TYPO3 8.7.8
I followed this guide to add a finisher to a form.
https://www.marco.zone/typo3-formular-finisher-zum-editor-hinzufuegen
In back-end i can choose my finisher but in front-end i got this error:
Could not analyse class:
"MyVendor\MyExtensionName\Domain\Finishers\FluidFinisher" maybe not
loaded or no autoloader? Class
MyVendor\MyExtensionName\Domain\Finishers\FluidFinisher does not exist
and this is the base setup:
# BaseSetup.yaml
TYPO3:
CMS:
Form:
prototypes:
standard:
finishersDefinition:
CleverreachSubscribe:
implementationClassName: 'MyVendor\MyExtensionName\Domain\Finishers\FluidFinisher'
And this is the namespace of my class finisher that is inside my extension:
->\typo3conf\ext\myextensionname\Classes\Domain\Finishers\FluidFinisher.php
namespace MyVendor\MyExtensioneName\Domain\Finishers;
I miss some configuration?
Your code looks good as far as I can see. Try:
You use composer? Run composer dump to regenerate the autoloader.
Check for typos
Caches?

bootstrap_3_layout.html.twig in Symfony3

How can I install "bootstrap_3_layout.html.twig,... for my project on 3 version Symfony?
When I copy these files to my project I get error:
'Unexpected character "&"' (Twig_Error_Syntax).
Don't copy or past these files, but instead configure the TwigBundle to use them as form templates, make this configuration in your config.yml file
twig:
form_themes:
- bootstrap_3_layout.html.twig
Make sure that bootstrap is used in your application
Use this
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
Or download it and use it in your application

Validating issue: Unknown Tag/Undefined attribute name warnings in Eclipe

The following code presents validation issues for me in Eclipse 4.4.2. This is located in a JSP file.
<svg version="1.1" class="..." xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="..." y="..." width="..x" height="..." viewBox="..."
enable-background="..." xml:space="...">
<g>
<polygon fill="#FFFFFF" points="..."></polygon>
<polygon fill="#FFFFFF" points="..."></polygon>
</g>
</svg>
This code produces the following warnings:
"Undefined attribute name (attribute-name)" for every attribute attached to the svg element
"Unknown tag (tag-name)" for the g and polygon tags.
I ran this through an online validator that supports HTML5/SVG1.1, and it told me there were 0 validation issues.
Any ideas why this could be happening? I'm aware that I can choose to ignore the validation issues through Window > Preferences > Validation, but I would prefer to find a way to get Eclipse to actually recognize these tags/attributes because they work just fine.
The namespace http://www.w3.org/2000/svg does not seem to be recognised by your eclipse installation. Try either of:
Adding the namespace to your XML catalog (in Window > Preferences), including the schema for svg, or
Specifying the schema inline, as attributes of the svg element:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.w3.org/TR/2002/WD-SVG11-20020108/SVG.xsd"
(or wherever your local copy of the schema is)

TYPO3 Fluidpages not loaded or no autoloader

I got error in Fluidpages on frontend:
TYPO3 v6.2.11
Flux v7.2.0
Fluidpages v3.2.0
vhs v2.3.1
As before I have setup many projects with Flux and Fluidpages but in latest version I am in stuck.
The problem is probably that you use old class names (the ones with underscores). EXT:flux removed support of old class names in version 7.2.0 (see changelog), same for EXT:fluidpages.
To fix this, just replace your occurrence of Tx_Fluidpages_Controller_PageController with its new name: \FluidTYPO3\Fluidpages\Controller\PageController.
Of course you need to do the same thing for all classes in PHP as well as in all namespace declarations in your fluid templates.
Hey Ghanshaym,
5 >
5 = USER
5.userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
5.extensionName = Fluidpages
5.vendorName = FluidTYPO3
5.pluginName = Page
10 >
May be helps