Xsl failing in Sitecore install - xslt

I have a Sitecore 6.2.0 (rev. 091012) installed and working perfectly, except one thing - every xsl rendering i have is failing to run, and the xsl error i get is "System.Exception: Could not resolve type name: Demo.Samples.XslHelper, MyDemo.....". I have no idead what this is and how to fix this - any suggestions?
My user controls are working without a glitch.

Try searching your web.config for "Demo.Samples.XslHelper", then you will properly find a xslExtension that Sitecore cant find, remove it.

It is probably declaring a namespace in the top, which in turn is registered to a demo DLL that you don't have.
Paste the XSL file here, if none of this makes any sense to you, and the source of the error should be straight forward to identify.

Related

Intellij show intention actions [Alt + Enter] doesn't work

The problem occurred after I had added Groovy Unit Testing .jar to my project (it is sole activity I suppose which could 'damage' my Intellij but it is quite likely that the reason is something else because the problem is global - it appears in all projects).
For example I get message like this:
but after I press Alt+Enter nothing happen.
If I append another keyboard shortcut for "show intention actions" it doesn't work either. However if I append Alt+Enter with another action then that another action works properly using this shortcut.
It is also interesting that shortcut Alt+Enter is reserved not only for action "show intention actions", but if I remove another associations it still doesn't work.
Every intentions in Intellij are enabled and power save mode is disabled.
I have read
IntelliJ, Alt+Enter doesnt work
Auto errors detection in IntelliJ IDEA
but it doesn't solve my problem.
Your IntelliJ IDEA installation seems to be corrupted, some jars are missing.
Caused by: java.lang.ClassNotFoundException: groovy.lang.Closure PluginClassLoader[org.intellij.groovy, 9.0]
The solution would be reinstall the same version you have from this link or install the current version.
The solution was: missing groovy-all-2.4.6.jar file in my /home/user/idea-IU-162.2228.15/lib folder.
How have I removed it?
According to jetbrains page I chose Groovy JUnit test library and press fix. After few minutes I decided not to use Groovy JUnit so I deleted this library from my project, but in practice I removed .jar from my folder and that was the reason why alt+enter didn't work. After the .jar is restored everything is as normal.
Thank you CrazyCoder and liro Alhonen
You don't have the libraries stated that you are using. You can do this manually if it does not fill them automatically. It should if you select from the list and hit enter.
In my case i just try to use left alt:
LEFT Alt + Enter
LEFT Alt+Enter
Looks like some languages override Right Alt behavior, at least in
case of Lithuanian Left Alt is working fine with Lithuanian enabled,
Right does not, when switch to English, everything is fine again. Was
pulling hair to figure out why out of nowhere it stops working, thanks
I hava same problem that can not auto import package by ALT+ENTER in MacOS. solved by next step:
Preferences --> Editor --> Intentions
search Refactorings
enable introduce local variable

Cannot get Custom Attribute Finder to appear in WSO2 Identity Server Console

I did some development of a custom AttributeFinder for WSO2 4.6 several years ago, and I am trying to reproduce that old development on one of my original WSO2 4.6 instances, but I cannot get the AttributeFinder to appear in the WSO2 IS Console in Extensions. I know that 4.6 is old, but I just want to get this working with 4.6 first.
I've built the AttributeFinder in Eclipse successfully
Put a copy of the JAR in E:\WSO2\wso2is-4.6.0\repository\components\lib
Put copies of ojdbc6.jar and classes12.jar into E:\WSO2\wso2is-4.6.0\repository\components\lib
[This AttributeFinder is supposed to get the attributes from an Oracle DB]
I've updated E:\WSO2\wso2is-4.6.0\repository\conf\security\entitlement.properties by adding:
PIP.AttributeDesignators.Designator.3=my.myAttributeFinder
my.MyAttributeFinder.1=databaseUrl,jdbc:oracle:thin:#//192.168.0.xxx:1521/xxxorcl
my.MyAttributeFinder.2=userName,hr
my.MyAttributeFinder.3=password,XXXX
my.MyACAttributeFinder.4=driverName,oracle.jdbc.driver.OracleDriver
my.MyACAttributeFinder.5=dbTableName,DB_FILTERS
Then I restarted the WSO2 but when I got into the console and look at Extensions/Attributes, it is only showing the default attributes/attributefinder.
As I said, I had this working awhile ago, so I'm sure that the code I used to build the attribute finder class/jar is ok, and the lines I had to add into entitlement.properties above are ok, but it just looks like WSO2 IS doesn't even "know" that I have a custom attribute finder installed, so I think I must be missing some step or something.
Can anyone tell me what else I need to get WSO2 IS to "see" my custom attributes?
Thanks,
Jim
I just figure out what the problem was. I had added my lines to the default, out-of-box entitlement.properties, and in particular, I had the Designator line:
PIP.AttributeDesignators.Designator.3=my.myAttributeFinder
In the default entitlement.properties, there was already only one other PIP Designator lines, something like:
...Designator.1=...
What I didn't realize is that, apparently, the Designator numbering has to be sequential!
So, when I changed the line to:
PIP.AttributeDesignators.Designator.2=my.myAttributeFinder
instead of:
PIP.AttributeDesignators.Designator.3=my.myAttributeFinder
Then, the WSO2 IS picked up my custom finder ok!

Cloning Open Cart admin language issue

I'm trying to clone one fully functioning opencart website to another. The front-end of the website is in Dutch and the back-end I have left English default.
Here are the steps I have taken:
Copy database to new environment
Copy files and edit both the config files(config.php and admin/config.php) to match the server paths.
when i go to test the site, all seems to be working fine, until i go to the admin section where i find this blasted error which seems to be very common:
Notice: Error: Could not load language dutch! in /opt/www/prezent/graviolashop.de/HTML/system/library/language.php on line 39
I'm not sure if this is a path issue or something wrong with the db?
I have googled this issue but none are specific to my perticular case. Has anyone had this issue and resolved it?
Thanks.
If it's unable to load the language and you've copied them over as you say, then this is going to be a config issue. Ensure your path is exactly as it should be. A good way to do this is to create a file such as error.php in your root website folder. Then put some erroneous code in it like
<?php
dfs sdf sd;
Then call the file at www.yoursite.com/error.php, and it will show you the path in the error which you can copy exactly. One other unlikely but possible problem could be permissions, but the former is far more likely

animateAlong function is not defined in Raphael javascript?

im trying out raphael js examples from http://www.irunmywebsite.com/raphael/additionalhelp.php#pagetop.
i took the example of animateAlong and tried, but im getting an error of animateAlong function is not defined.
Also made sure that my code is inside window.onload. My Raphaƫl version 2.0.1
Thanks
It's been removed from Raphael2. See this link for a possible solution. (Haven't checked it out myself, so your mileage may vary...)

Winform Not Displaying in Designer

I have a Managed C++ WinForm that suddenly stopped showing in the VS 2005 designer. The error it shows is
Could not find type 'int'. Please
make sure that the assembly that
contains this type is referenced. If
this type is a part of your
development project, make sure that
the project has been successfully
built.
I don't even know where to start with this one. Does the designer only access the InitializeComponent(void) method when rendering the form? So my question is: where do you start troubleshooting designer errors?
EDIT: I forgot to mention that this code builds and runs perfectly. It only shows an error in the windows forms designer.
This is troubleshooting for C# but I'd assume a couple of the points mentioned here would help.
What's the state of play with "Visual Inheritance"
This is usually caused by a syntax error somewhere in the code that causes the designer to be unable to run the form to render it. The best method for this is ofent sadly just reading the code looking for the problem extra brace, missing string etc. The good news is that it is most likely easy to find since you know that it preceeds the INT in the error message.
Some possibilities:
* I cause this usually by accidentally hitting the keybaord and putting some extra characters at the top of a file
* Extra braces that make the class uncompilable - missing quotes, semicolons
* Something typed at the top that messes up a common include/using statement
Diagnostics
* Sometimes you can find this by dogin a build and seeing what lione is flagged with an error and then looking around it.
* More often then not I have to just open the source file and scan through it looking for the problem.