TYPO3 Flexform Cache - typo3

Caching problem with TYPO3 8.x Flexforms. If I change the flexform configuration I have to restart the Docker Apache web server. Is there a better way to modify Flexforms without web server restart in TYPO3?
Steps I already tried on my docker debian9 lamp stack:
1.
in setup.ts I have already all cache disabled.
config.no_cache = 1
2.
I also tried
rm -Rf typo3temp with no effect
3.
and clear all cache in install tool no effect
4.
reload frame in chrome or with shift+cmd+r no effect
6.
Added options.clearCache.system = 1 into the field User TSconfig
In TYPO3 V8 'flush system cache' it is not needed anymore I 'flush all cache' should work fine.
<!--
for example modification in custom_flexform.xml before:
-->
<elementBrowserAllowed>jpg,png,gif</elementBrowserAllowed>
<!--
for example modification in custom_flexform.xml after:
-->
<elementBrowserAllowed>jpg</elementBrowserAllowed>
without restart the web server, flexform I'm backend doesn't update my Flexform config.

This might be no caching issue.
When you make changes to your flexform setting in your custom_flexform.xml this will have no impact on your already saved records.
To get a feeling for whats going on, have a look into the pi_flexform field, most likely in the tt_content table or your custom table.
If the value in this filed is still holding your old flexform, you can simply open and save the record to rewrite it.
There is also an CLI command that you can use to fix your flexforms, you need EXT:typo3_console for that.
TYPO3 Composer Mode: ./vendor/bin/typo3cms cleanup:flexforms
TYPO3 Classic Mode: ./typo3cms cleanup:flexforms
Then clear the frontend cache and reload your page.

Related

TYPO3 CMS 8.7 Jquery errors after moving site

Recently I've moved one of my development sites into production.
The following steps were taken.
Complete backup of both versions (4.5 & 8.7)
Removal of old version
Uploading new TYPO3 developed version
Updating database connection in the LocalConfiguration file
After doing all this and enabling the install tool I am able to login to my install tool but not into the backed. Both the install tool and the backend are giving the following error.
Uncaught SyntaxError: Invalid or unexpected token on Jquery. Various other errors also appear because of this. Included below is a screenshot for completion.
No file transfers failed and I am unable to login to the backend. I haven't done anyhthing to the database apart from setting it up
It's possible that file-compression was activated for JS- and CSS files which doesn't match the settings on the new server.
If you click in the browser-console on a file-link you get some output like this:
You can adjust the compression-level in install-tool but can see the value in the file typo3conf/localconf.php (for TYPO3 4.x) or typo3conf/LocalConfiguration.php (for TYPO3 8).
It might currently look like this:
$TYPO3_CONF_VARS['BE']['compressionLevel'] = '9';
and you can adjust it just to 0:
$TYPO3_CONF_VARS['BE']['compressionLevel'] = '0';
In the install-tool of TYPO3 4.5 the option looks like this:
The problems comes from the setup.ts or config file. Comment / uncomment these lines until it will work. Is usually the compression of js that is the problem:
#config.concatenateCss = 1
#config.compressCss = 1
#config.concatenateJs = 1
#config.compressJs =1

TYPO3: Class 'Tools_action_index_7c3e344226a5508b65ddf8993fcb960b3377b0d1' not found

I'm very new to the CMS TYPO3 and I ran into a problem after the successful installation. I cannot access the page, view and list in the navigation. My logs show the error:
Class 'Tools_action_index_7c3e344226a5508b65ddf8993fcb960b3377b0d1'
not found
So I guess I am missing the action_index, but I don't know what I should create. A php file in the root of htdocs?
I guess it could be solved very quickly, but I'm still stuck and I can't find anything online.
Any help would be appreciated. Thanks in advance!
This class name looks like a fluid template cache file which is not generated. Did you check the write permissions for your webserver? Depending on which Version of TYPO3 you have installed, the webserver need write permissions for typo3temp and var folder:
TYPO3 9.x composer install: var/ and public/typo3temp/
TYPO3 9.x classic install: typo3temp/
TYPO3 8.x classic install: typo3temp/
Directory structure
Security Guidlines: File/directory permissions
You can also check the status and potential errors inside the install tool (Admin tools):
TYPO3 9.x: http://your-domain/typo3/ -> Admin tools: Maintenance
TYPO3 8.x: http://your-domain/typo3/install -> Folder Structure
Flush all caches in backend
If write permissions dont help, click the red flush cache button inside TYPO3 backend (right top corner -> flush all caches)
Flush file cache on disk
If this also not helps, delete all files/folders inside:
TYPO3 9.x composer install: var/cache/
TYPO3 9.x classic install: typo3temp/var/cache/
TYPO3 8.x classic install: typo3temp/var/Cache/
Ok, so I finally managed to solve the problem. Thank you Steffen Mächtel for your hints with the write permissions. Thanks to that I realised that I couldn't change the write permissions of my folders (not even with chmod 777).
I am not sure, but I think the problem was that I had XAMPP as a virtual machine running so I couldn't change it. I didn't know there was a difference in XAMPP and XAMPP-VM. I solved my issue by removing XAMPP and do the whole install process using MAMP instead. Using MAMP everything works now. Thanks everyone again for the help.

After Upgrade from TYPO3 8.7 to 9.5 I cannot edit my records

After updating my TYPO3 to 9.5 LTS from 8.7 LTS, When trying to edit a content element. I have been running all the relevant Update Wizards. I get:
Oops, an error occurred!
Unable to generate a URL for the named route "wizard_element_browser" because this route was not found.
The is also happening when trying to add new content elements.
When I use the Page Module I see the content in the expected columns, and with the correct connect.
The list view is also not working for me after updating..
Formatting the stack trace here, isn't super easy, so added a gist.
https://gist.github.com/tomasnorre/17ea65ed60f6877801e9260ac316d76e
I is some guesswork without a full stack trace.
First some background:
The route that is not found is registered in typo3/sysext/recordlist/Configuration/Backend/Routes.php.
The Backend routes are initialized in the initializeBackendRouter() method in typo3/sysext/core/Classes/Core/Bootstrap.php and they are cached.
So the first explanation would be, that for some reason the configuration file is missing or the recordlist Extension is not loaded / available.
The second explanation would be a caching problem. Please try to clear all caches using the admin tools and clearing typo3temp and var/cache folders.
The third explanation would be some Extension that accesses the route too early in the bootstrap process before the route is registered.
If nothing of this helps, please enable debugging in the admin tools (Settings -> Configuration Presets -> Debug) an uncomment this line in the .htaccess to enable the Development context:
RewriteRule .? - [E=TYPO3_CONTEXT:Development]
You can then post the stacktrace back here and we try to figure out what is happening.

TYPO3 8.7.1 backend Login not working

I have a plain naked TYPO3 8 lts installation.
But I cant login with the backend user.
Install Tool works fine
When I create a new BE user in install tool it does not work as well ...
any ideas?
Check in Localconfiguration the [BE][loginSecurityLevel] and change it to normal if it is rsa
For me the solution was deleting the cookies from the browser, then login form works good.
I ran to a problem where I couldn't login to backend, even if I had [BE][loginSecurityLevel] set to normal. Nether did it work on a unix system or windows. The reason I found out was, because the extension 'sv' was disabled (not in PackageStates.php array).
So I went to PackageStates.php and added following to the array:
'sv' => [
'packagePath' => 'typo3/sysext/sv/',
],
Before that happened, I downgraded TYPO3 from 9 to 8. I was able to log in first, but not the next day, after the first logout.
This extension contains core default services.
Use the Debugger for your browser, e.g. Firefox Developer, and check if an error is given there.
Loading failed for the <script> with source “http://www.my-typo3-website.de/typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-3.2.1.js”.
If you copy and past the above url into a web browser, you will see this outpu:
The requested URL /typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-3.js was not found on this server.
The file name jquery-3.2.1.js has been abbreviated into jquery-3.js!
It can happen that the jquery used by the login form is not included as needed. This can happend by a Rewrite rule in the .htaccess file which transforms the filename jquery-3.2.1.js into a smaller name jquery-3.js which will not be found, because it simply does not exist on the file system.
At least you should try out the original .htaccess file named "_.htaccess" which is shipped with TYPO3.

The page is not configured! [type= 0][]

I've migrated from typo3 4.1 to 4.5 LTS now I got this error.
The page is not configured! [type= 0][]
I've checked DB analyser and fixed the table issues any ideas. Please revert
Apparently TYPO3 can't find TypoScript use Web > Template tool and check if record exists, also if it includes TS from external files, make sure the files exists.