Magento Getting Fatal error with custom module - magento-1.5

I am getting following error :
Class 'Lucky_Test_Helper_Data' not found in E:\wamp\www\raj\magento_new\app\Mage.php on line 521
I created this module using module creator.
I checked it with one of my magento installation, it worked fine. Then I copied the module to the actually installation where I wanted to use it.
I did a some debugging, and found that if I comment certain part of config.xml I get no error.
I figured that out after having a look at stack trace of error, which included following line.
include( 'E:\wamp\www\raj\magento_new\app\design\adminhtml\default\default\template\page\menu.phtml' );
here is my config.xml
now if I comment :
<!--<test module="test">
<title>Test</title>
<sort_order>71</sort_order>
<children>
<items module="test">
<title>Manage Test </title>
<sort_order>0</sort_order>
<action>test/adminhtml_test</action>
</items>
</children>
</test>-->
I get no error. Module seems to be loading fine till this point.
Do you see anything wrong?
Help me out.

You have to explicitly define that you are using helpers, like this:
<global>
<helpers>
<test>
<class>Lucky_Test_Helper</class>
</test>
</helpers>
</global>
In the menu you define with module="test" that your module handles the translation for it

Related

Resource compilation failed

I work with Android Studio 3.2 and I've done a firebase connection to get connected to the part of the register with the app I'm building.
Here's screenshots of where I'm seeing the error: https://imgur.com/a/GN72eL8 & https://imgur.com/a/kwxA2sH
Android resource compilation failed
Output: C:\Users\ERIK\AndroidStudioProjects\FirebaseAuthDemo\app\src\main\res\mipmap-anydpi-v26\ic_launcher.xml:12: error: not well-formed (invalid token).
Command: C:\Users\ERIK\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\92d92d266c9089a895db65475d7e7f04\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\ERIK\AndroidStudioProjects\FirebaseAuthDemo\app\build\intermediates\res\merged\debug \
C:\Users\ERIK\AndroidStudioProjects\FirebaseAuthDemo\app\src\main\res\mipmap-anydpi-v26\ic_launcher.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #1
Your /res/mipmap-anydpi-v26/ic_launcher.xml file is incorrect, on line 12. This is often caused by an incorrect character being there, e.g. a semicolon or full stop.
You can delete this file if you want a quick fix, otherwise open up the file see what the compiler has highlighted as the issue on line 12. If you can't work out what's wrong, edit your question with the file's contents and any additional errors.
Yes i see the correct your answer but i send your code here for see you who is problem
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidLayouts">
<shared>
<config />
</shared>
</component>
<component name="CMakeSettings">
<configurations>
<configuration
CONFIG_NAME="Deb
PROFILE_NAME="Debug
#JakeSteam

Android Studio - FindBugs excludeFilter file is working for IDEA plugin, but not for Gradle plugin

I have the following exclude filter to ignore all R file classes:
findbugs-exclude-filter.xml
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Match>
<Class name="~.*\.R\$.*"/>
</Match>
</FindBugsFilter>
When I use it for the FindBugs-IDEA plugin it works.
However, when I use it for the FindBugs Gradle plugin, in a task like so:
build.gradle
apply plugin: 'findbugs'
task myFindBugsTask(type: FindBugs) {
.....
excludeFilter = file("$project.rootDir/findbugs-exclude-filter.xml")
.....
}
I get an error with the message: Cannot read file specified for FindBugs 'excludeFilter' property:. The report is still successfully generated, but the filter didn't take.
I've tried EVERY solution I found on the interwebs (most of which are very outdated) and I get the same results.
So what gives? Is this a known bug? Am I the only one experiencing this?
So I found a workaround if anyone is encountering the same issue. The concept is to submit a filtered file tree. My task now looks like this:
apply plugin: 'findbugs'
task myFindBugsTask(type: FindBugs) {
.....
FileTree tree = fileTree("$project.buildDir/intermediates/classes").exclude('**/*R$*.class')
classes = tree
.....
}
Here is the correct filter:
<Match>
<Class name="~.*\.R(\$.*)?" />
</Match>
This marches all R classes and inner classes.

Server Error in '/ccnet' Application

My CCTray says build is broken and on the server(http://172.25.165.10/ccnet/)
I get this error
Server Error in '/ccnet' Application.
Configuration Error
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<!-- This is your CruiseControl.NET Server Configuration file.
Add your projects below! -->
<project name="winapp"
description="demoproject showing a small config" queue="Q1">
<webURL>http://172.25.165.10/ccnet/</webURL>
<!-- specify a state folder to prevent CCNet from saving it in Program Files\CruiseControl.NET\server
programs may not standard write their data in it on windows Vista and up)
-->
<sourcecontrol type="svn">
<trunkUrl>https://citdevbox.arcade.local:8443/svn/cardwellR/trunk/winapp</trunkUrl>
<workingDirectory>c:\builds\winapp</workingDirectory>
<username>***</username>
<password>***</password>
</sourcecontrol>
<state type="state" directory="C:\CCNet\State" />
<!-- specify a artifactDirectory to prevent CCNet from saving it in Program Files\CruiseControl.NET\server
programs may not standard write their data in it on windows Vista and up)
-->
<artifactDirectory>C:\CCNet\BuildArtifacts\MyFirstProject</artifactDirectory>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\\v3.5\MSBuild.exe</executable>
<projectFile>C:\Builds\build\BootStrapper.msbuild</projectFile>
<buildArgs>/noconsolelogger /t:CTSx86;BuildZip /v:d</buildArgs>
<logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<timeout>900</timeout>
</msbuild>
</tasks>
<triggers>
<!-- check the source control every X time for changes,
and run the tasks if changes are found -->
<intervalTrigger
name="continuous"
seconds="300"
buildCondition="IfModificationExists"
initialSeconds="5"/>
</triggers>
<publishers>
<xmllogger />
<artifactcleanup cleanUpMethod="KeepLastXBuilds"
cleanUpValue="50" />
</publishers>
</project>
</cruisecontrol>
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The root element must match the name of the section referencing the file, 'appSettings'
Source Error:
Line 1: cruisecontrol xmlns:cb="urn:ccnet.config.builder"
Source File: C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456
You didn't post the content of your ccnet.config file which the error you are getting is complaining about. Lets start with the obvious. I would look to see if there is a typo in there, for example maybe a missing quote or something in the appSettings section. If you have the unmodified version revert back to that and see if your issue goes away and compare the unmodified with the modified.
There is an app called CCValidator which will tell you where the error is in your ccnet.config file. I suspect that is not where the problem is. It sounds like the error is in the ccservice.exe.config. Perhaps someone accidentally copied ccnet.config to ccservice.exe.config. The error may also be in your web dashboard's configuration.
I solved the issue by removing the build args tag.
</noconsolelogger /t:CTSx86;BuildZip /v:d>
My processor was 64 bit and I was using noconsolelogger /t:CTSx86 which is for a 32 bit processor. Anyway these were optional so I removed it worked fine.

Windows Phone, loading resources from directory

I've got the following folder structure in the project:
Style
MainStyles.xaml
MainPage.xaml
Inside MainPage.xaml I try to load resources from MainStyles:
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Style\MainStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
However, I get the following error message:
WinRT information: Failed to assign to property '%0'. [Line: 13 Position: 37]
Additional information: The text associated with this error code could not be found.
Line 13 and position 37 is the exact place of Source=".... If I move resources to the same directory as MainPage and remove the directory, everything works.
By the way, Visual Studio designer does not complain about lacking resources and use them correctly.
What am I doing wrong?
Try using a forward slash when setting the Source of a ResourceDictionary.
I.e. Style/MainStyles.xaml

CruiseControl.Net CCNetWorkingDirectory parameter problem

I'm working with the latest CruiseControl.Net 1.5.7256.1.
I'm trying to use one of the system parameters, CCNetWorkingDirectory under sourcecontrol block and the project failed to recognize this parameter.
<sourcecontrol type="svn">
<trunkUrl>https://padev/svn/physical/Source</trunkUrl>
<workingDirectory>$[CCNetWorkingDirectory]\SVN\Source</workingDirectory>
<username>ccnet</username>
<password>hidden</password>
</sourcecontrol>
I also tried it as $CCNetWorkingDirectory, $(CCNetWorkingDirectory), Non of these option worked.
Thank you
You got trapped. I think almost anybody who starts with CCNET tries to access CCNetWorkingDirectory inside CCNET configuration. This is not possible. Find my answer on a similar question here.
I don't know in which version things changed but as of version 1.8 you can use what they call: System Paremeters as documented here:
http://confluence.public.thoughtworks.org/display/CCNET/Dynamic+Parameters
and it works for me as in this sample configuration:
<project name="ProjectName" queue="myqueue" queuePriority="1">
<workingDirectory>path</workingDirectory>
...
<sourcecontrol type="svn">
<workingDirectory>$[$CCNetWorkingDirectory]</workingDirectory>
...
</sourcecontrol>

Resources