I am following the first method for overriding templates discussed in the docs.
It is working on my development server, but for some reason it's not working on my production server (in any environment). The template file I created in app/Resources/FOSUserBundle/views/Security/login.html.twig simply has no effect.
My dev server is windows and prod server is linux. It seems to me that it must be related to the install of the friendsofsymfony bundle itself. Why else would it not be picking up the template?
It was naming/namespaces, somewhere down the line.
I've encountered the same problem.
Locally i work on OSX and remotely on linux.
The path must be on linux app/Resources/FOSUserBundle/ not app/Resources/FosUserBundle/
Related
We are for some time now trying to find a solution for server prerendering of SPA, specifically Angular4, for the purpose of SEO.
We have come to try and use aspnetcore-angular2-universal, which seems to be the perfect solution, however, we encounter problems deploying the published build to a local IIS server.
We have posted an issue regarding the problem on the issues page at which can be found here:
https://github.com/MarkPieszak/aspnetcore-angular2-universal/issues/491
We have followed the instruction under "Getting started" & "Deploy" (which can be found here: https://github.com/MarkPieszak/aspnetcore-angular2-universal) exactly but the error still exist.
The support is unresponsive on issues and thus we are posting also here.
The problem is (as mention in the issue linked here) that we get the following error:
Which indicates a problem with the web.config file. However the webconfig file is exactly as supplied in the starter project and seems also legit.
I should mention that building and running the project using npm build:prod and dotnet run works and we can lunch an in memory application from Visual Studio Code, however when taking the published folder to an IIS folder the error occurs.
Any help will be appreciated.
Did you installed .NET Core Windows Server Hosting bundle?
Check if AspNetCoreModule listed in IIS => Modules. Sometimes it not installed properly during #1, even if there was "Succeeded" at all steps. In that case I just removing it via Program & Features, and reinstalling it then.
Once I saw that error when manually copied web.config from sources over the publish folder. Problem is that original web.config contains placeholders like %LAUNCHER_PATH% and %LAUNCHER_ARGS%, which turns to appropriate values (dotnet and .\YourApp.dll for instance) during dotnet publish
Aperantly there were incompebilities between angular5 & universal in serverside.
The https://github.com/MarkPieszak/aspnetcore-angular2-universal seed was downgraded to using angular4.3 instead of 5. When we updated seed, the problem was solved.
Using Django 1.7
django-cms 3.0.9
djangocms-text-ckeditor 2.4.3
manage.py migrate djangocms_text_ckeditor gives an improperly configured error:
https://gist.github.com/e7c754d329eb22126b11
http://django-cms.readthedocs.org/en/latest/upgrade/3.0.html - suggests there is work to do, but doesn't indicate what needs to be done to get it to work.
The gist is not accessible.
Anyway, have you had a loot at http://django-cms.readthedocs.org/en/latest/upgrade/3.0.6.html#django-1-7-support and https://github.com/divio/djangocms-text-ckeditor#installation?
You must customize some settings to setup django CMS 3.0.x on Django 1.7
I commented out all the CMS applications. got everything else working correctly. And then added the applications back. It began working correctly after that. No setting problem, no application order problem. Weird.
I have installed Magnolia WebDAV-2.0 and try to access the templates Folder /magnoliaAuthor/.webdav/templates/ with BitKinex. I get the error HTTP forbidden when I try to access the templates Folder ; See the following picture:
I read in JIRA, that WebDAV-2.0 Version fixes this Problem but I try it and get the same error. Calling http://localhost:8080/magnoliaAuthor/.webdav/templates with the browser Returns blank page, which mean for me that webdav is installed successfully. How to Access magnolia webdav?
See same discussion at http://forum.magnolia-cms.com/forum/thread.html?threadId=ea35f17c-2e59-4f54-bffd-f80515d42f61&page=1
The report from Magnolia devs was that testing with "Magnolia-5.2.4 with magnolia-module-webdav-2.0 on Windows and BitKinex version 3.2.3" all works as it should.
Also the original issue reported confirmed that all works fine as long as you have the latest version.
Pls try with the same version or double check you don't have any version conflicts.
After migrating from my old Macbook Pro to my new one, I find that my project will no longer run. Grails keeps giving me a "Error /Users/Michael/{proj}/{proj} does not appear to be part of a Grails application". Refresh dependencies does seem to run successfully.
I have verified the following:
there exists a folder grails-app in the project folder at the same location as on the old machine.
I did run a grails clean followed by a grails upgrade to 2.0.4
The one thing it could be is that the user directory name has changed between the two machines, but I do not see the old user directory name in either .project or application.properties or in any settings.
I solved this by deleting workspace\.metadata\.plugins\org.eclipse.debug.core\.launches\<project>.launch. It had cached the old absolute path.
Open the command line from within STS and executed a "run-app". There is sometime a problem with he workspace caches.
oops, saw that I had left this question unanswered.
The answer was to erase everything and rebuild from github. When in doubt, nuke it until it glows....
Armand's answer above was the simplest solution - thanks Armand
This has been my experience - when working with the Grails in the IDE - in certain cases it's better to use the command line to issue grails commands (this was a good reminder)
Related to this, it seems better to run-app from cmd line as well (as opposed to using the IDE Project->Run As), since you can just stop the server easily with ctrl-c
I searched almost two days for a solution but really i cant untill now, In short I deployed my site to a OVH server with filezilla following the steps in this tutorial here
After deployment I find that my site works fine but without CSS content in FF and Chrome, so when I check in firebug I find all CSS styles are loaded correctly but empty without content,also JS file are loaded with content and all images too.In IE I have the style that works fine but no image is loaded ??I work on Ubuntu and I use a Virtual Machine to use IE...
I almost did everything, I cleared the cache and I changed the access rights of all files, I specify for files => 705, the CSS and JS => 604,finally I put everything to 777 but still no change ...
An idea?
The problem comes from assetic : when css and js files get minified and concatenated using closure or yui css, .. java is called to execute jar code contained in .jar files.
On OVH shared hosting servers you don't have java available, so the output file that symfony generates when you run the assetic dump command is actually empty (hence your empty css + js files).
You should only minify those files (assetic dump) on your local server and then upload the output to your server. Don't run assetic dump on your production server! (well at least with an OVH shared hosting)
I had this problem too, and the culprit turned out to be an outdated version of the PCRE regular expression library that was compiled into the CentOS flavor of PHP. Try to run the command php -i or use the phpinfo() function and check if your version of the PCRE is 7.0 or newer. If it's older, it doesn't support the shorthand version of named capture groups.
To fix this, try to update assetic to a newer version that uses the more compatible longer version of named capture groups. If you can't do this, you can modify the offending file /vendor/assetic/src/Assetic/Filter/BaseCssFilter.php directly. Just replace all occurences of (?<paramname> with (?P<paramname>.
Note that the correct way would be to override this file instead of modifying it directly in the vendors directory.