Magento Forum

   
Page 1 of 2
Error when Packaging an Extension in Magento Admin Panel
 
Mafinsoft.com
Jr. Member
 
Total Posts:  22
Joined:  2008-09-17
 

Hi everyone.
I have completed development of a payment module and wish to create a package extension within Magento (System --> Magento Connect --> Package Extension).

I am eager to upload to Magento Connect as an open source extension for all to use and download.

After entering all the details, I receive the error message ”There was a problem saving package data” without additional info. I have googled for solutions for this problem but apparently there has been no mention about this issue. Has someone face this issue before?

I believe I get the “Content” section right” where the reference of the files and file types are correct. I tested each entry, one by one.

Attached is a screenshot of the error message (create_extension_error_package_info.gif)

The dependency page screenshot is in the file create_extension_error_dependencies.gif

Image Attachments
create_extension_error_dependencies.gifcreate_extension_error_package_info.gif
 
Magento Community Magento Community
Magento Community
Magento Community
 
nico5
Sr. Member
 
Avatar
Total Posts:  214
Joined:  2008-02-19
France
 

Do you have a directory named :
yourmagedirectory/var/pear/
?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mafinsoft.com
Jr. Member
 
Total Posts:  22
Joined:  2008-09-17
 

yes. the directory exists. There was once the error message stated it could not recognize the channel “connect.magentocommerce.com/community” which was weird. It happened on February 3rd, 4th and 5th.

Anyhow, i mysteriously solved it by clicking on “Save data and create package” instead of the “Save” button alone. I don’t have any idea what happened. Thanks anyway. The issue is considered solved.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Fas Mide
Jr. Member
 
Total Posts:  2
Joined:  2009-02-24
 

I’m having the same problem here, although my problem does not get fixed by hitting the save and create package button.. instead I get two different errors, the same you got then I click Save, and this when I click Save and Create Package

o There was a problem saving package data
o Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “package.xml” in /home/www/dummy_domain/httpdocs/2/downloader/pearlib/php/PEAR/Command/Mage.php on line 57

Any ideas? My first thought is that it cant save something it later tries to load.. However I ran through the filesystem rights and nothing seems wrong

 
Magento Community Magento Community
Magento Community
Magento Community
 
Fas Mide
Jr. Member
 
Total Posts:  2
Joined:  2009-02-24
 

hmm… this thing seemed to fix it self… or at least I don’t know what I did right to make it work smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mafinsoft.com
Jr. Member
 
Total Posts:  22
Joined:  2008-09-17
 

hi Fas Mide. I agree with you it does fix itself. We just got to try a few times over a few days and hope for the best.

I suspect the message “There was a problem saving package data “ was probably related to the connection to Magento Connect. I also had the error message about wrong “channel” although I was 100% sure the channel was correct all the time.

Conclusion. Keep trying and hope for the best =)

 
Magento Community Magento Community
Magento Community
Magento Community
 
tangkoko
Member
 
Avatar
Total Posts:  75
Joined:  2008-04-07
France
 

The error “There was a problem saving package data” appears when you have unexpected characters in the extension’s name.
The package file name should verify :

preg_match('/^[a-z0-9]+[a-z0-9\-\_\.]*([\/\\\\]{1}[a-z0-9]+[a-z0-9\-\_\.]*)*$/i'$fileName)
.

 
Magento Community Magento Community
Magento Community
Magento Community
 
danielifrim7
Member
 
Avatar
Total Posts:  63
Joined:  2009-04-29
Bucuresti
 

Hi

I had the same issue in current release 1.3.1.
As posted before i removed unusual characters from package name field (a space).
Then i deleted the contents of cache and session directories (magento_install_path/var/cache & magento_install_path/var/sessions).

Please take notice, if you delete the session files you will log off from admin interface. Before pressing `Save` button, you should backup your data typed in `Create Extension Package` forms wink

Hope will help you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
miliscent
Member
 
Avatar
Total Posts:  45
Joined:  2009-03-11
Pittsburgh, Pennsylvania USA
 

I received the error regarding package.xml and found this thread.  I tried clicking the “Save data and Create Package” button a second time and it worked.  Very odd…

 
Magento Community Magento Community
Magento Community
Magento Community
 
NOVALNET
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2008-06-18
Munich
 
tangkoko - 28 April 2009 05:30 AM

The error “There was a problem saving package data” appears when you have unexpected characters in the extension’s name.
The package file name should verify :

preg_match('/^[a-z0-9]+[a-z0-9\-\_\.]*([\/\\\\]{1}[a-z0-9]+[a-z0-9\-\_\.]*)*$/i'$fileName)
.

Thanks a lot. This worked for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageSpecialist
Sr. Member
 
Avatar
Total Posts:  102
Joined:  2009-08-25
Perugia - Italy
 

My problem both with “Save” and “Save and create package” button was solved by disabling/clearing magento cache.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pradnya
Jr. Member
 
Total Posts:  12
Joined:  2009-05-20
 

Thanks a lot this worked for me… smile

preg_match('/^[a-z0-9]+[a-z0-9\-\_\.]*([\/\\\\]{1}[a-z0-9]+[a-z0-9\-\_\.]*)*$/i'$fileName)

 
Magento Community Magento Community
Magento Community
Magento Community
 
cccindia
Jr. Member
 
Avatar
Total Posts:  1
Joined:  2009-11-29
 

I face also a problem when i use Packaging a Magento Extension from admin.
i got the following warning:
Warning: Invalid argument supplied for foreach() in /www/demo/magento/cademo/downloader/pearlib/php/PEAR/PackageFile/Generator/v2.php on line 378

CAN ANY ONE HELP ME PLEASE.

 
Magento Community Magento Community
Magento Community
Magento Community
 
EYEMAGINE
Member
 
Avatar
Total Posts:  35
Joined:  2008-02-14
Irvine, CA
 

Hi all,

This was happening to me on a site that I haven’t touched in a while and found that var/pear/package.xml was not writable by the web server user.  Make sure var/pear/package.xml is writable by the web server user.

Andy

 
Magento Community Magento Community
Magento Community
Magento Community
 
Turnkeye
Enthusiast
 
Avatar
Total Posts:  908
Joined:  2008-12-20
URL: turnkeye.com
 

Reset your extension form, clear cache and enter correct module name e.g. “my_module” instead of “My Module”

 
Magento Community Magento Community
Magento Community
Magento Community
 
kevinkatia
Jr. Member
 
Total Posts:  4
Joined:  2010-11-09
 

There was once an error message says he could not recognize the string connect.magentocommerce.com / community that was weird

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2