I installed my custom extension via composer.
I can confirm that app/code/vendor/package_name generated on the server by composer.
However,on admin panel under stores/configuration/advanced I can not see my extension.
What I've tried so far are as following ;
Flushing Magento 2.0 cache and disabling caching
Changing extension file permissions to 777
Deleting files under var/cache manually
Logging out and logging in again
None of them solved my problem.
How can I see my custom extension under admin stores / configuration / advanced on Magento 2.0 ?
I am not sure if it any helps but I posted my config.xml and module.xml
Thanks in advance,
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Fusion_CODFee" schema_version="0.0.1"></module>
</config>
<?xml version="1.0" ?>
<config>
<modules>
<Fusion_CODFee>
<version>0.1.0</version>
</Fusion_CODFee>
</modules>
</config>
According to me setup_version is missing from module.xml. It should be like this :
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Fusion_CODFee" schema_version="0.0.1" setup_version="0.0.1"></module>
</config>
you shoul try php bin/magento setup:upgrade command so that your magento upgrade itself with the new extension, also check for config.php in app/etc folder ,your module should be there if is active in case it is not then under array() tag add this "Fusion_CODFee=>1" and then run upgrade command in your rootdirectory, it might help you.
I've tried following code that's working for me please have look
Fusion\CODFee\etc\module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Fusion_CODFee" setup_version="2.0.0">
</module>
</config>
Now next you have to register your module with registration.php
create registration.php under Fusion\CODFee\registration.php and put below code inside it.
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Fusion_CODFee',
__DIR__
);
Now clearing you cache and if still not working then fire below command from your root directory of magento installation
If your system is ubuntu then => sudo php bin\magento setup:upgrade or for window system remove sudo
then change permission and that's it
Let me know if still have any query
Related
I have troubles with eclipse / maven in Netbeans it's working as expected.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jxb:bindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/jxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
jxb:extensionBindingPrefixes="xjc"
version="2.1">
<jxb:bindings schemaLocation="http://myserver/schemas/CustomerOrder_v1.7.xsd" node="/xsd:schema">
<jxb:bindings node="//xsd:element[#name='customerOrder']">
<jxb:class name="ElectronicCustomerOrder"/>
</jxb:bindings>
<jxb:bindings node="//xsd:element[#name='deliveryDate']" multiple="true">
<xjc:javaType adapter="com.prodega.xml.JodaTimeDateAdapter" name="org.joda.time.LocalDate" />
</jxb:bindings>
</jxb:bindings>
</jxb:bindings>
if i do a maven update in eclipse (photon or mars) it generates a class called CustomerOrder into the target:
image
But i'm expecting a class named ElectronicCustomerOrder. As soon i make a change in the xjb file and save it, it renames the class in the target folder. But then the building workspace part is done and it didn't find the class ElectronicCustomerOrder. Can someone Tell me what's happening here since it's anoying to build on commandline and then do a refresh in eclipse.
A normal mvn clean install command will work also properly.
I encouraged to post a question here for the first time, so here it goes!
I'm trying to overwrite Magento core class for the first time; Mage_CatalogInventory_Model_Stock_Item located # /app/code/core/Mage/CatalogInventory/Model/Stock/Item.php, but for some reason I'm not having any success as executing;
$object = Mage::getModel('cataloginventory/stock_item');
var_dump(get_class($object));
outputs
string 'Mage_CatalogInventory_Model_Stock_Item' (length=38)
I created a new directory under /app/code/local/Rage and copied the Item.php to /app/code/local/Rage/CatalogInventory/Model/Stock/Item.php renaming it to
class Rage_CatalogInventory_Model_Stock_Item extends Mage_CatalogInventory_Model_Stock_Item { ... }
I also made a couple of xml files. One to app/etc/modules/Rage_CatalogInventory.xml, which contains following;
<?xml version="1.0"?>
<config>
<modules>
<Rage_CatalogInventory>
<active>true</active>
<codepool>local</codepool>
</Rage_CatalogInventory>
</modules>
</config>
and another to app/code/local/Rage/CatalogInventory/etc/config.xml;
<?xml version="1.0" ?>
<config>
<modules>
<rage_cataloginventory>
<version>0.0.1</version>
</rage_cataloginventory>
</modules>
<global>
<models>
<cataloginventory>
<rewrite>
<stock_item>Rage_CatalogInventory_Model_Stock_Item</stock_item>
</rewrite>
</cataloginventory>
</models>
</global>
</config>
I just can't make it work even after a couple of hours trying... This is driving me crazy. Hope you can help me out!
Many many thanks in advance.
EDIT: Fixed config.xml as Amit pointed out. It turned out that Magento had compiler in use. I figured out that could've something to this. So disabled that and cleared the includes/src -folder contents, but still nothing is happening...
issue in config.xml and here rage_cataloginventory should be Rage_CatalogInventory and here total config.xml
<?xml version="1.0" ?>
<config>
<modules>
<Rage_CatalogInventory>
<version>0.0.1</version>
</Rage_CatalogInventory>
</modules>
<global>
<models>
<cataloginventory>
<rewrite>
<stock_item>Rage_CatalogInventory_Model_Stock_Item</stock_item>
</rewrite>
</cataloginventory>
</models>
</global>
</config>
Ok, this is just a guess and don´t be mad if i pointed something out that was clear to you;)
However: You did clear the config-cache, right?
(And keep the compiler disabled for development-environment, that saves you from some trouble if you forget that you have it active.)
The xml so far looks very correct to me, so that shouldn´t be the issue.
What to check:
Is the module loaded at all? (See under System->Config->Advanced)?
Is it working with any other model or just this one?
Any log output that gives a hint as to maybe the config.xml has an error (hidden chars etc.)?
I followed a tutorial from Alan Storm on creating a basic Hello World module for Magento. After some initial problems I got it working. Today I have gone to try and expand on that and the module no longer works(I get a 404 page not found message), I have not changed any code within that module or deleted any files.
The only thing that I can think I did since first creating the module and now is go into Magento's admin screen and make some adjustments - which i've tried changing back, but I still get the 404. I also have few other basic modules that I have been working on, but they also seem to no longer work.
I have checked System > Configuration > Advanced and the modules are all still enabled
Can anyone see something in my code that would stop this module from not being found when I vist http://magentotest.local/helloworld
app/etc/modules/As_Helloworld.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<As_Helloworld>
<active>true</active>
<codePool>local</codePool>
</As_Helloworld>
</modules>
</config>
app/code/local/As/Helloworld/controllers/IndexController.php
class As_Helloworld_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction() {
echo 'Hello Index!';
}
}
app/code/local/As/Helloworld/etc/config.xml
<config>
<modules>
<As_Helloworld>
<version>0.1.0</version>
</As_Helloworld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>As_Helloworld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
</config>
1-Would changing options in the admin area be able to stop a module working?
2-If so where do I start looking to fix the problem
3-What can I do to prevent it from happening again?
i tried like all tutorials out there and i still cannot get a custom created module to work in Magento.
This is the path where i created the XML file on the server to tell Magento what the module is:
app/etc/modules/Multiplies_HelloWorld.xml
<?xml version="1.0"?>
<config>
<modules>
<Multiplies_HelloWorld>
<active>true</active>
<codePool>local</codePool>
</Multiplies_HelloWorld>
</modules>
</config>
This is the module path:
app/code/local/Multiplies/HelloWorld/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Multiplies_HelloWorld>
<version>0.0.1</version>
</Multiplies_HelloWorld>
</modules>
</config>
when i go to System/Configuration/Advanced i see a whole bunch of other modules except mine.
I tried to flush the cash, disable it, clear it manualy, restart browser, relog but still no module in my list.
The version im using is magento 1.7.0.2 (free)
Im using FileZilla to upload files.
Any suggestions would be really appreciated.
This may be a bit late, but I was just having this same problem.
After 20 minutes of chin scratching I tried resetting all caches (System > Cache Management) and then it popped up!
I'm disabling the "configuration" cache while heavily developing a module. I think that'll help reduce friction.
Make sure your etc/module.xml looks like this:
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="OrgName_ModuleName" setup_version="1.0.0">
</module>
</config>
Make sure your composer.json has this:
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"OrgName\\ModuleName\\": ""
}
}
Make sure your registration.php looks like this:
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'OrgName_ModuleName',
isset($file) && realpath($file) == __FILE__ ? dirname($file) : __DIR__
);
If your module is contained in a symlinked directory that is outside of magento root directory (happens when you use local "path": as a module's repository description in composer), you have to allow magento for symlinks with: bin/magento config:set dev/template/allow_symlink 1 . See https://magento.stackexchange.com/a/315525/88882 for more info.
I have a bit of a problem.
I have created a workflow with the Activiti plugin in Eclipse.
I have a model, context file and the bpmn20.xml file.
Everything is deployed in shared/alfresco/extension but:
If I deploy the workflow deleting the entire following tag in the bpmn20.xml file
<bpmndi:BPMNDiagram id="BPMNDiagram_activitiCustomWorkflow">
(so basically without the workflow diagram), everything works fine but I can't see the workflow diagram in the Workflow details page in Alfresco Share .
If I leave that tag (so what Eclipse created in the beginning with the Activiti project),
Alfresco is not starting. (Connection rejected in browser)
Log is not telling me nothing, and Tomcat cannot be stopped normally (I have to delete the catalina.pid and the tomcat temp folder manually).
My bpmn20.xml file header is:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://activiti.org/bpmn20">
Am I missing something? Or maybe Eclipse doesn't create the correct bpmn file?
Ah, Alfresco 4.0.d and Ubuntu server 10.04 LTS x64
I am using Activiti engine, and the jBPM engine is turned off.
Thanks in advance.
You might need to turn up the logging in webapps/alfresco/WEB-INF/classes/log4j.properties.
log4j.logger.org.alfresco.repo.workflow=debug
I've also got that set in webapps/share/WEB-INF/classes/log4j.properties
my Eclipse (activity designer) generates header like this
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Onlio">
<process id="OnlioWFAdhocMultiNonEsc" name="WF name/description" isExecutable="true">
But I've had also a problem with that, so I'm using this (and this works for me :) ), so you can try it ..
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://alfresco.org">
<process id="WFID" name="WF name/description" isExecutable="true">
(there's different in targetNameSpace only)
So, good luck :)
Btw for deploy you will need a context file or workflow console :) (there should be also way how to deploy through data dictionary- I'm not sure how :) )
OT btw2 - for logging I'm setting these 2 params:
(in ..\tomcat\webapps\alfresco\WEB-INF\classes\log4j.properties)
log4j.logger.org.alfresco.repo.jscript=debug
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug