cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding extension Packaging

SOLVED

Question regarding extension Packaging

Hi,

When I am packaging my extension in the contents section.

 

I have added following with "Magento Community Module File" and "Recursive Dir" option in Contents section.

 

/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/Block
/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/Controller
/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/controllers
/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/etc
/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/Helper
/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/Model
/opt/lampp/htdocs/apps/mg1/app/code/community/Shahab/Mymodule/sql

 

In var/Connect folder Shahab_Mymodule-1.0.0.tgz file is created but it contain only package.xml file.

 

Modules files in community folders are not included.

 

What went wrong path or I have to add each file in above folder in contents section.

 

Any idea?

-Thanks & Best Regards, Zohaib
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Question regarding extension Packaging

Problem solved? Click Accept as SolutionSmiley Happy

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

View solution in original post

12 REPLIES 12

Re: Question regarding extension Packaging

Hi @shahabfk,

 

Follow this guide, it will help you: http://info2.magento.com/rs/magentoenterprise/images/packagingmagentoconnectextensions6%200.pdf

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Question regarding extension Packaging

Hi,

 

I went through documentation. I have added individual file and module folder both but in var/connect .tgz file does not contain modules files.

 

It contains only package.xml. I tried following 2 options but no success. I have selected Target as Magento Community Module File and selected File and Recursive Directory option but no success.

 

./app/code/community/Shahab/Mymodule/Block/Adminhtml/Mymodule.php

./app/code/community/Shahab/Mymodule

 

I am not getting what wrong I am doing.

 

Any idea?

 

 

-Thanks & Best Regards, Zohaib

Re: Question regarding extension Packaging

Select "Magento Community module file" from target.
Write down "/Shahab/Mymodule" in path.
Select "Recursive Directory" in type.
And after this, if you click on "save data and create package" then it will create the package in the folder of "Shahab/Mymodule".

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Question regarding extension Packaging

Hi,

 

Thanks. It is working. I have package and install module using magento connect manager succcessfully.

 

I am using xampp 1.8.3 with php 5.5.6 on ubuntu 12. I have install magento 1.8 and 1.9 successfully but on magento 1.7 I am getting error message in installation.

 

  • PHP Extensions "0" must be loaded.

 Any idea?

 

-Thanks & Best Regards, Zohaib

Re: Question regarding extension Packaging

Are you sure the error you are facing is because of the Extension you have installed? Try disabling the extension. If it's because of the Extension then there might be some error packaging your Extension.

So please check these first.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Question regarding extension Packaging

Hi,

 

Many thanks for your help and support. Smiley Happy

 

I am getting error in magento 1.7 installation as 

 

  • PHP Extensions "0" must be loaded.

Any idea?

-Thanks & Best Regards, Zohaib

Re: Question regarding extension Packaging

Replace in file app/code/core/Mage/Install/etc/config.xml (near 71th string) and try again:

<extensions>
     <pdo_mysql/>
</extensions>

with this

<extensions>
     <pdo_mysql>1</pdo_mysql>
</extensions>
Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Question regarding extension Packaging

Hi,

 

Thanks that problem is solved. I have following my sql server on ubuntu 12 with xampp 1.8 with php 5.5.6

 

  • Server: Localhost via UNIX socket
  • Server type: MySQL
  • Server version: 5.6.14 - Source distribution
  • Protocol version: 10
  • User: root@localhost
  • Server charset: UTF-8 Unicode (utf8)

I am getting error as 

 

  • Database server does not support the InnoDB storage engine.

Any idea?

 

 

-Thanks & Best Regards, Zohaib

Re: Question regarding extension Packaging

Line 59 of the file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php

Replace:

public function supportEngine()
    {
        $variables  = $this->_getConnection()
            ->fetchPairs('SHOW VARIABLES');
        return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
    }


with this:

public function supportEngine()
    {
        $variables  = $this->_getConnection()
            ->fetchPairs('SHOW ENGINES');
        return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO');
    }
Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now