我尝试上传我的扩展程序,但我得到Please check your uploaded extension "my_download_plugin". The configuration file "ext_emconf.php" seems to be invalid.
这个配置文件应该有什么问题?
<?php
/***************************************************************
* Extension Manager/Repository config file for ext: "my_download_plugin"
*
* Auto generated by Extension Builder 2017-01-30
*
* Manual updates:
* Only the data in the array - anything else is removed by next write.
* "version" and "dependencies" must not be touched!
***************************************************************/
$EM_CONF[$_EXTKEY] = array(
'title' => 'my_download_plugin',
'description' => 'Downloadlist for my Donwloadcenter',
'category' => 'plugin',
'author' => 'Edward Black',
'author_email' => 'my.name@mycompany.de',
'state' => 'beta',
'createDirs' => '',
'uploadfolder' => false,
'clearCacheOnLoad' => false,
'version' => '2.0.0',
'constraints' => array(
'depends' => array(
'typo3' => '6.2.0-6.3.0',
'static_info_tables' => '6.3.9'
),
'conflicts' => array(),
'suggests' => array()
)
);
我正在阅读the official documentation,但找不到任何错误。
答案 0 :(得分:2)
TYPO3版本6.3.0不存在。如果您想使用6.2.0-6.2.99
答案 1 :(得分:0)
您对static_info_tables
的依赖似乎是错误的,因为您只提供了较低的版本号。请将依赖项添加到static_info_tables
,如下所示:
'static_info_tables' => '6.3.9-0.0.0'
这将需要static_info_tables
扩展名的最低版本6.3.9,没有最高版本要求。
答案 2 :(得分:0)
我更愿意为&#34; static_info_tables&#34;设置版本。一切为了发展目的。
接下来,您可以将"sjbr/static-info-tables" => "*"
添加到您的composer.json。
安装新的依赖项。
现在从composer.lock文件中获取包版本并将其添加到composer.json中,现在你可以修复ext_emconf.php中的版本