CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Error Create Extension Release web form
Pages: [1]

Author Topic: Error Create Extension Release web form  (Read 933 times)

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Error Create Extension Release web form
October 22, 2012, 02:52:17 am
Hi guys,

I'm trying to upload a new extension to the directory (it is called Option Values Importer)
I could create the first step (extension basic information), but when I try to create Extension Release, I've got an error (Just "Error", not any particular message) when submitting.

I attach the extension's info.xml file in case something it's wrong or missing there

Code: [Select]
<?xml version="1.0"?>
<extension key="com.ixiam.modules.optionsimporter" type="module">
  <file>optionsimporter</file>
  <name>Option Values Importer</name>
  <description>Option Values Importer from CSV file for Custom Fields</description>
   <urls>
    <url desc="Main Extension Page">https://github.com/ixiam/com.ixiam.modules.optionsimporter</url>
    <url desc="Documentation">https://github.com/ixiam/com.ixiam.modules.optionsimporter</url>
    <url desc="Support">http://www.ixiam.com</url>
    <url desc="Licensing">http://www.spdx.org/licenses/AGPL-3.0</url>
  </urls> 
  <license>AGPL</license>
  <maintainer>
    <author>Luciano Spiegel</author>
    <email>l.spiegel@ixiam.com</email>
  </maintainer>
  <releaseDate>2012-10-18</releaseDate>
  <version>0.1</version>
  <develStage>alpha</develStage>
  <compatibility>
    <ver>4.2</ver>
  </compatibility>
  <comments>CiviCRM Extension to add "Import CSV File" Feature for Option Values in Custom Fields</comments>
  <civix>
    <namespace>CRM/Optionsimporter</namespace>
  </civix>
</extension>

Cheers!
Luciano

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Error Create Extension Release web form
October 22, 2012, 08:11:33 am
I'm not too familiar with it but just based on a quick look at your xml I see quotes in the <comments> tag. Maybe the parser is strict about that and wants those escaped, i.e. "&quot;"

Also I'm not sure if it's still supported but you might want to have a look at the scripts in bin/migrate which can import/export option values.

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Error Create Extension Release web form
October 22, 2012, 08:41:04 am
Hi demeritcowboy,

No luck excluding the quotes "" from the XML, still getting an Error Message
I know that export/import script, but this extensions it's focus on end user capability to do so, without access to the console, just the web interface.

We have many customers and users who get very frustrated when they realized the have to type in hundreds or even thousands of different options for their custom fields.
And usually they have all this options stored in different formats (CSV, text files, Excels,etc) from their previous systems

cheers!

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Error Create Extension Release web form
October 22, 2012, 09:47:28 am
Thanks, Luciano!

I'm able to reproduce and to get a more detailed SQL error. This seems like a bug which involves writing duplicate entries to the (node_access) table. I'm not deeply familiar with how this access-control was implemented, so I'll forward it to the folks who put it up. (If they can't get to it in a reasonable time, then I'll dig deeper.)

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Error Create Extension Release web form
October 22, 2012, 04:45:09 pm
I'm told that this has been fixed. It appears that the nodes have been created while testing the fix:

http://civicrm.org/extensions/option-value-importer
http://civicrm.org/extensions/option-value-importer/release-1-1

It looks like the 'downloadUrl' needs to be set, though; you can do that here:

http://civicrm.org/node/1807/edit

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Error Create Extension Release web form

This forum was archived on 2017-11-26.