Orchard CulturePicker and CurrentCulturePicker - orchardcms

I'm using orchard 1.8.1 and Culture picker.
After removing the culture filter in module (Orchard has it on core by default and so it has to be removed to avoid conflicts) I made it working when I'm logged on.
However anonymous user cannot change language (or better it seems that the cookie is set correclty but the filter does not works or does not picks the language)
I digged for permission and read all code but it seems nothing wrong.
Any idea why culture picker works only when I'm logged as admin and does not works when I browse anonymous?
It is probably something with 1.8 upgrade
This is a site that works (1.6):
http://social-media-marketing-day.web-marketing-manager.it/cina-russia-corea-asia-corso-digital-strategia-comunicazione
This is the one that does not works (1.8):
http://radici-group.linked-in.it/nylon-uso-vantaggi
Thanks

I found a workaround.
Since it is a caching problem I have added a fake lang parameter matching requested language to the requested url.
This should not harm existing urls but adds something different to url itself so that it is cached separately...
Any idea on how do it properly without change the url?

Related

Strange URLs when culture is enable

I am running Kentico 12.0.26 MVC.
When adding links via the inline widget editor (MediumEditor), the final URL that gets generated has a strange URL path, which is not a pretty URL for SEO.
http://localhost/cmsctx/pv/administrator/culture/en-US/wg/54e1b893-56a5-455b-9f89-37433f2f4365/readonly/0/ea/1/h/98d86f48b5376d0f10eb44df47afb782729ba12751defe6a5ce98c918950785e/-/products/Tube-Pipe-Systems/FL-WELD-P-ORB?uh=b0542cb25017b58c3ebde4855543bcea15269abf4d7458251db4ff128f2feb30&administrationdomain=http%3A%2F%2Flocalhost
Not all links have this, but when this links where added, it was using the clean relative URL of the page, I think maybe after enabeling the Kentico culture feature, they somehow got update like that, but not all links got affected. I am still not entirely sure at what point to they get updated like that.
I also notice that links that are added via the page type editor (CKEditor) are fine and don't seem to run into this issue.
Please advise, thanks

Kentico multi language with multi domains

My build is English and French. I have a domain key for each in the system. I have my two cultures set as well, and I can not get this work correctly. my language toggle is based on the Kentico V8 Toggle, which currently gives the domain I Expect.
I'm making my changes in Chrome, and checking in IE, so I can see it not logged in.
Here's my setup:
My domain alias is set to the French URL and the french culture. Default path and Redirect URL are blank.
In Settings -> Content: Default culture is English. Combine check boxes are blank.
In Settings -> URLS - SEO - Cultures, all check boxes are empty
I've also noticed the culture class on the BODY tag doesn't change to FRCA.
I'm hoping this is something simple, but from the documentation, i can't see what I've missed. Also, is the license key different for a alias domain?
I've had similar problems with language switching in the past too. If your language switcher is custom code, try adding a lang querystring with value set to the target culture code (e.g. domain.fr/?lang=fr-FR). This has worked for me before.
This seems to be working. Not sure if there was a iis cache issue. I'm going to reboot my local dev, and try across multiple browsers.

Joomla - 404 on Every Page, Back-End Still Works

all! I have a Joomla site (http://wired-ar.com) that I attempted an upgrade to 1.5.26 just a while ago. The upgrade went a bit awry, and I was forced to revert to a backup copy of the site using 1.5.15. Was upgrading with the intent to then upgrade to 2.x and then the latest.
I'm new to Joomla, but I believe I've reattached all the necessary components and modules. However, I'm getting 404 errors on EVERY page. Homepage, interior pages. I'm also having some problems with my editor, as only the top-portion of the editor appears and no TinyMCE. I've re-uploaded all editor files just to be safe, but no luck.
I haven't got a clue what's going on here, and I'm all out of leads. Most other problems like this involve the home page working, and nothing else. On my end, the back end works a-okay, and no visual pages are coming through. Changing different themes does not help, nor modifying any of the SEO areas, like mod_rewrite. Disabling plugins returns no results, either.
I would love some help with this, please! Any thoughts, options, or possibilities would be great.
Try to disable SEF url from backend, and figure out from the links, which articles/comp. are assigned to the menu. (maybe languages arent set correctly - you have assigned another lang article/category for ex. to an En lang menu)
As it turns out, and this may be the case with others, if you can access the back-end and nothing else, you likely have a corrupted file tree that's missing components or modules.
In my case, the really old files on this server had very wonky permissions, which made a smooth re-upload nearly impossible. The solution was to check and double check all components, adding the missing ones where needed. Took a lot of CHMOD work, too, for me.
Hope that helps someone, if you're in a similar pickle with an old Joomla site!

In drupal Primary Link is like empty

I'm making a webpage in Drupal 6.26, and I blocked in a strange thing. I develop both in Localhost, and online, and the strange is that some how in online the primary links are empty (but there's element on it I can see in /admin/build/menu-customize/primary-links also in this page the menu elements appeared in the place, but in the other pages they don't), but in Localhost everything is ok, and i checked all of the settings and they are the same, the theme files are the same to,(and i didn't change anything in the other drupal files), the only difference is that the online page is set in offline (because the under maintenance), and I tried it to make it online, but the problem is still there, so I don't really have any idea.
That might be a theme problem. Make sure your local configuration has the same active theme as the installation on the public server. Try switching to a default theme that comes with Drupal.
Another cause might be one of your modules. Try disabling all but the system modules and then start re-enabling them one-by-one to see which one changes your menu.

How do you globally modify page output sent from IIS without modifying the page source?

A couple sites of mine recently got "hacked". Someone was able to add a line of JavaScript to the bottom of every page on the site.
The server is a Windows Server 2003, and has Cold Fusion 8 and MySQL 5.x installed and running.
Looking into the code on each page shows that none of the pages were modified. The JavaScript is not in the code files themselves. This leads me to believe it is an IIS problem, but I am unsure and cannot find anything that would be able to do this within IIS.
The JavaScript being added redirects a user to another page only when they come from Google, or at least it appears to work this way.
Any help on how someone was able to accomplish this as well as removing it would be greatly appreciated.
Another way to word the question thanks to #Jeffrey Hantin
How do you systematically modify output from IIS without modifying individual pages?
EDIT: A bit more testing has shown that only the .cfm pages add the extra javascript. Added a new .cfm and the js was there but a .html did not have it.
Edit2: Turns out to have been a coldfusion problem after all. Somehow the pages OnRequestEnd.cfm were created on the sites and added that js.
Looks like someone exploited some latest Adobe CF vulnerabilities.
Please see these blog posts for details and try to search symptoms on your server:
Image upload
FCKEditor bug + this post
Hope this helps.
Turns out to have been a coldfusion problem after all. The page OnRequestEnd.cfm were created on the sites and added that js.
If you only want to use IIS to modify output, the ISAPI filter is probably the best answer. If you would like to use Coldfusion, you could utilize the application.cfc to modify output during certain parts of the request cycle or wrap all of your pages in a Custom Tag to consolidate the like portions of your page templates.
I have used both. In cases where my page headers and footers are all the same, the custom tag is fast and easy to use. To make changes to all the pages, you edit one custom tag file. In cases where I have a more complicated web application I'll use the application.cfc to store and insert common components where they are needed.
They might have guessed your password. You should change it immediately.
It's possible that an ISAPI filter is used to do this. I once used one myself to perform compression before IIS supported it natively.
In your specific situation, you may want to check for ISAPI filters you don't want installed. Of course, if your server has been compromised, you will likely be better off rebuilding from a known good image rather than trying to fix it in situ.

Resources