Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECr-0.0.27 build-package - manifest-file corrupted and log-warnings #54

Open
hgh-esn opened this issue Oct 18, 2017 · 0 comments
Open

Comments

@hgh-esn
Copy link

hgh-esn commented Oct 18, 2017

When creating a package via ecr, the generated xml-file there are some probs:

** 1. it doesn't contain the media-tag and it's content - even it is specified**

Example: Project: stopHitCounts

stophitcounts.xml in ECr:

.....
<files folder="site">
    <folder>language</folder>
    <filename>index.html</filename>
    <filename plugin="stophitcounts">stophitcounts.php</filename>
    <filename>stophitcounts_CHANGELOG.php</filename>
    <folder>models/fields</folder>
    <filename>userfiltering.php</filename>
  </files>
  <media folder="site/media" destination="plg_stophitcounts">
    <folder>images</folder>
  </media>
  <params />
  <config>
.......

stophitcounts.xml in generated zip-file

...
<files folder="site">
<folder>language</folder>
<folder>media</folder>                        **<- where does this line come from?**
<folder>models</folder>
<filename>index.html</filename>
<filename plugin="stophitcounts">stophitcounts.php</filename>
<filename>stophitcounts_CHANGELOG.php</filename>
</files>

....

The <media> .... </media> tag is missing !!!!!!

  1. the config-tag is reformatted - see example

stophitcounts.xml in ECr:

<config>
    <fields name="params">
      <fieldset name="basic">
      </fieldset>
      <fieldset name="SHC_std_options" addfieldpath="/plugins/system/plg_stophitcounts/images/models/fields">
        <field name="disable_selfcreated_only" type="checkbox" label="PLG_SYSTEM_SHC_DISABLE_HIT_COUNT_SELF_ONLY_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_HIT_COUNT_SELF_ONLY_LABEL_DESC" />
        <field name="disable_users" type="sql" label="PLG_SYSTEM_SHC_DISABLE_USER_HIT_COUNT_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_USER_HIT_COUNT_LABEL_DESC" query="SELECT u.id , u.name FROM #__users as u inner join #__user_usergroup_map AS ugm ON ugm.user_id = u.id where ugm.group_id=2" multiple="multiple" key_field="id" value_field="name" />
        <field name="disable_groups" type="usergrouplist" multiple="true" size="60" default="" label="PLG_SYSTEM_SHC_DISABLE_GROUP_HIT_COUNT_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_GROUP_HIT_COUNT_LABEL_DESC" />
        <field name="disable_bots" type="radio" class="btn-group" data-toggle="buttons-radio" default="1" label="PLG_SYSTEM_SHC_DISABLE_BOTS_HIT_COUNT_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_BOTS_HIT_COUNT_LABEL_DESC">
          <option value="0">JNO</option>
          <option value="1">JYES</option>
        </field>
        <field name="custom_bots" type="textarea" class="span6" cols="6" default="" rows="6" label="PLG_SYSTEM_SHC_CUSTOM_BOTS_TXT" description="PLG_SYSTEM_SHC_CUSTOM_BOTS_DESC" />
        <field name="help" type="spacer" class="alert alert-info span6" label="PLG_SYSTEM_SHC_HELP_LABEL_TXT" />
      </fieldset>
      <fieldset name="SHC_ext_options">
        <field name="log_active" type="radio" class="btn-group" data-toggle="buttons-radio" default="0" label="PLG_SYSTEM_SHC_LOG_ACTIVE_TXT" description="PLG_SYSTEM_SHC_LOG_ACTIVE_DESC">
          <option value="0">JNO</option>
          <option value="1">JYES</option>
        </field>
        <field name="log_path" type="text" readonly="true" default="../administrator/logs" label="PLG_SYSTEM_SHC_LOG_PATH_TXT" description="PLG_SYSTEM_SHC_LOG_PATH_DESC" />
        <field name="log_dsn" type="text" readonly="true" default="plg_stophitcounts-log" label="PLG_SYSTEM_SHC_LOG_DSN_TXT" description="PLG_SYSTEM_SHC_LOG_DSN_DESC" />
      </fieldset>
    </fields>
  </config>

## **stophitcounts.xml in generated zip-file**
<config>
    <fields name="params">
      
      
      
    <fieldset name="basic">
      </fieldset><fieldset name="SHC_std_options" addfieldpath="/plugins/system/plg_stophitcounts/images/models/fields">
        
        
        
        
        
        
      <field name="disable_selfcreated_only" type="checkbox" label="PLG_SYSTEM_SHC_DISABLE_HIT_COUNT_SELF_ONLY_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_HIT_COUNT_SELF_ONLY_LABEL_DESC"/><field name="disable_users" type="sql" label="PLG_SYSTEM_SHC_DISABLE_USER_HIT_COUNT_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_USER_HIT_COUNT_LABEL_DESC" query="SELECT u.id , u.name FROM #__users as u inner join #__user_usergroup_map AS ugm ON ugm.user_id = u.id where ugm.group_id=2" multiple="multiple" key_field="id" value_field="name"/><field name="disable_groups" type="usergrouplist" multiple="true" size="60" default="" label="PLG_SYSTEM_SHC_DISABLE_GROUP_HIT_COUNT_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_GROUP_HIT_COUNT_LABEL_DESC"/><field name="disable_bots" type="radio" class="btn-group" data-toggle="buttons-radio" default="1" label="PLG_SYSTEM_SHC_DISABLE_BOTS_HIT_COUNT_LABEL_TXT" description="PLG_SYSTEM_SHC_DISABLE_BOTS_HIT_COUNT_LABEL_DESC">
          
          
        <option value="0">JNO</option><option value="1">JYES</option></field><field name="custom_bots" type="textarea" class="span6" cols="6" default="" rows="6" label="PLG_SYSTEM_SHC_CUSTOM_BOTS_TXT" description="PLG_SYSTEM_SHC_CUSTOM_BOTS_DESC"/><field name="help" type="spacer" class="alert alert-info span6" label="PLG_SYSTEM_SHC_HELP_LABEL_TXT"/></fieldset><fieldset name="SHC_ext_options">
        
        
        
      <field name="log_active" type="radio" class="btn-group" data-toggle="buttons-radio" default="0" label="PLG_SYSTEM_SHC_LOG_ACTIVE_TXT" description="PLG_SYSTEM_SHC_LOG_ACTIVE_DESC">
          
          
        <option value="0">JNO</option><option value="1">JYES</option></field><field name="log_path" type="text" readonly="true" default="../administrator/logs" label="PLG_SYSTEM_SHC_LOG_PATH_TXT" description="PLG_SYSTEM_SHC_LOG_PATH_DESC"/><field name="log_dsn" type="text" readonly="true" default="plg_stophitcounts-log" label="PLG_SYSTEM_SHC_LOG_DSN_TXT" description="PLG_SYSTEM_SHC_LOG_DSN_DESC"/></fieldset></fields>
  </config>

# 3. getting a "WARNING JFolder::create: Das Verzeichnis kann nicht erstellt werden! Path: administrator" in log

In my xml-file (see before) there is a field-definition: "<field name="log_path" type="text" readonly="true" default="../administrator/logs" ...."

#Date: 2017-10-22 15:24:26 UTC
#Software: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

#Fields: datetime	priority	message
2017-10-22T15:24:26+00:00	INFO	|¯¯¯ Starting
2017-10-22T15:24:26+00:00	INFO	Start building
2017-10-22T15:24:26+00:00	INFO	Build dir:
../updateserver/extensions/releases/plg_stophitcounts
2017-10-22T15:24:26+00:00	INFO	TempDir created
JROOT/tmp/stophitcounts59ecb82a22067
2017-10-22T15:24:26+00:00	INFO	Performing build actions type: precopy
2017-10-22T15:24:26+00:00	INFO	0 actions executed
2017-10-22T15:24:26+00:00	INFO	COPY DIR
SRC: JROOT/plugins/system/stophitcounts
DST: JROOT/tmp/stophitcounts59ecb82a22067/site
2017-10-22T15:24:26+00:00	INFO	Processing language en-GB - sys
2017-10-22T15:24:26+00:00	INFO	File: en-GB.plg_system_stophitcounts.sys.ini already exists
2017-10-22T15:24:26+00:00	INFO	Starting CleanUp
2017-10-22T15:24:26+00:00	INFO	1 index.html files created
2017-10-22T15:24:26+00:00	INFO	0 language version files deleted
2017-10-22T15:24:26+00:00	INFO	Performing build actions type: postcopy
2017-10-22T15:24:26+00:00	INFO	0 actions executed
2017-10-22T15:24:26+00:00	INFO	File deleted JROOT/tmp/stophitcounts59ecb82a22067/site/stophitcounts.xml
2017-10-22T15:24:26+00:00	INFO	Starting manifest
2017-10-22T15:24:26+00:00	WARNING	JFile::getName is deprecated. Use native basename() syntax.
2017-10-22T15:24:26+00:00	INFO	Start adding files
2017-10-22T15:24:26+00:00	INFO	TOTAL: 23 files
2017-10-22T15:24:26+00:00	INFO	creating Zip
2017-10-22T15:24:26+00:00	INFO	Packing routine for zip finished
2017-10-22T15:24:26+00:00	INFO	Performing build actions type: postbuild
2017-10-22T15:24:26+00:00	INFO	The file
../updateserver/extensions/releases/plg_stophitcounts/plg_system_stophitcounts_0.0.5_20171022_1724.zip
has been copied to
JROOT/administrator/components/com_easycreator/data/updateserver/stophitcounts/release/plg_system_stophitcounts_0.0.5_20171022_1724.zip
2017-10-22T15:24:26+00:00	WARNING	JFile::getName is deprecated. Use native basename() syntax.
2017-10-22T15:24:26+00:00	WARNING	JFile::getName is deprecated. Use native basename() syntax.
2017-10-22T15:24:26+00:00	WARNING	JFile::read is deprecated. Use native file_get_contents() syntax.
2017-10-22T15:24:26+00:00	INFO	1 actions executed
2017-10-22T15:24:26+00:00	INFO	The build folder has been sucessfully deleted.
2017-10-22T15:24:26+00:00	INFO	FINISHED
2017-10-22T15:24:26+00:00	WARNING	JFolder::create: Das Verzeichnis kann nicht erstellt werden!Path: administrator
2017-10-22T15:24:26+00:00	WARNING	JFolder::create: Das Verzeichnis kann nicht erstellt werden!Path: administrator

@elkuku

@hgh-esn hgh-esn changed the title ECR-0.0.26 package-generation - no media-tag in manifest-file ECr-0.0.26 package-generation - no media-tag in manifest-file Oct 19, 2017
@hgh-esn hgh-esn changed the title ECr-0.0.26 package-generation - no media-tag in manifest-file ECr-0.0.27 build-package - manifest-file corrupted Oct 22, 2017
@hgh-esn hgh-esn changed the title ECr-0.0.27 build-package - manifest-file corrupted ECr-0.0.27 build-package - manifest-file corrupted and log-warnings Oct 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant