eZ Community » Forums » eZ Publish 5 Platform » ezxform_token on admin & legacy...
expandshrink

ezxform_token on admin & legacy extenssions missing

ezxform_token on admin & legacy extenssions missing

Monday 19 October 2015 9:32:21 pm - 4 replies

Hello,

I have an issue with ezxform_token stuff. While I navigate on the back office everything works normally, however, when I log in to the front office, then all the css and js are gone on the back office! Everything comes back when I crear cache for the legacy kernel. When I see the source code, I see that the following tags are missing:

 <meta name="csrf-param" content="ezxform_token" />
 
 
 
<meta name="csrf-token" id="ezxform_token_js"  title="1249e0e5b84c708e661878b25f3d09987d92c9e1"  content="1249e0e5b84c708e661878b25f3d09987d92c9e1" />
 
<link  rel="stylesheet" type="text/css"  href="/var/site/cache/public/stylesheets/a9487962c11899646f50ecee1b07f577_all.css"   />

I'm developping on eZ Publish 2014.11.

Does anyone have any idea why this happen?

Many thanks for your time

Modified on Monday 26 October 2015 9:04:11 pm by Matthieu Kapetanos

Wednesday 21 October 2015 3:42:27 pm

I found out the issue, I had misconfigured the session variable on ezpublish.yml. Now I've setup a different session name for each siteaccess and the css and js doesn't disappear!

However, some custom extesion I've added and ez find extesion are not available! I have to clear legacy kernel cache in order to bring them back! It's strange, because, I see them on Ini settings on site.ini...

Thursday 22 October 2015 5:36:44 pm

Hi there,

If you find a solution for your custom extensions, keep me posted !

See ya.

Monday 26 October 2015 9:01:10 pm

I finally found the issue... when navigating and login on the Front Office, the generated cache on legacy ignores the ActiveExtensions array on override/site.ini.append.php ! I really don't know why this happen and if this is the normal behaviour...

You have to inject (and not override) these extenssions using the getLegacyExtensionsNames() method while extending Bundle class and implementing LegacyBundleInterface, like Netgen did here for eztags: https://github.com/netgen/TagsBundle/blob/master/NetgenTagsBundle.php

More info here: https://doc.ez.no/display/EZP/Legacy+code+and+features#Legacycodeandfeatures-Legacybundles

Tuesday 27 October 2015 9:51:28 am

Hi Matthieu !

Great fix !

Thanks

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from