Fatal error on module archive upload with strange folder structure
With Tools 1.0 RC, I try to upload the formulize 4.06 file that I retrieved from the addons site. The archive structure isn't what it should be, so I expect an error or a message telling me so. There is a 'htdocs' folder and a pdf file in the main level. It looks like the module doesn't deal with that gracefully :-)
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(C:/Users/EH068/Documents/ImpressCMS-Portable/htdocs/supcat/modules/Formulize_4.02_Final_Readme.pdf,C:/Users/EH068/Documents/ImpressCMS-Portable/htdocs/supcat/modules/Formulize_4.02_Final_Readme.pdf) [<a href='recursivedirectoryiterator.--construct'>recursivedirectoryiterator.--construct</a>]: The directory name is invalid. (code: 267)' in C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php:66 Stack trace: #0 C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php(66): RecursiveDirectoryIterator->__construct('C:/Users/EH068/...') #1 {main} thrown in C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php on line 66
Developer Dashboard
None | All | Errors (0) Queries (25) Blocks (6) Extra (2) Timers (4) Deprecated (1)
Errors (0)
Queries (25)
SET NAMES 'utf8'
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid IN (1,2,3,6,7,8,10,12,11,5)) ORDER BY conf_order ASC
SELECT sess_data, sess_ip FROM session WHERE sess_id = '618ee90faf084ea6e363e62a573a676c'
SELECT * FROM users WHERE uid = '1'
SELECT * FROM modules
SELECT * FROM config WHERE (conf_modid = '13') ORDER BY conf_order ASC
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '13') ORDER BY conf_order ASC
SELECT * FROM system_autotasks AS autotasks WHERE ((sat_lastruntime + sat_interval) <= '1377854437' AND 'sat_repeat' >= '0' AND sat_enabled = '1') ORDER BY sat_lastruntime ASC
SELECT * FROM banner ORDER BY RAND() LIMIT 0, 1
SELECT groupid FROM groups_users_link WHERE uid='1'
SELECT COUNT(*) FROM icmspage AS page WHERE (page_url = 'http://127.0.0.1:4001/supcat/modules/tools/admin/modulesadd.php' OR page_url = 'modules/tools/admin/modulesadd.php')
SELECT * FROM icmspage AS page WHERE (page_status = '1')
SELECT * FROM block_positions AS blockposition
SELECT * FROM group_permission WHERE (gperm_name = 'system_admin' AND gperm_itemid = '5' AND gperm_modid = '1')
SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = '1' AND gperm_groupid IN ('1','2')
SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive='1' AND b.visible='1' AND ((m.module_id='0' AND m.page_id=0) OR (m.module_id='13' AND m.page_id=0)) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) ORDER BY b.weight, b.bid
SELECT * FROM newblocks AS block WHERE (bid IN (1,2,3,5,12,14)) ORDER BY weight ASC
SELECT block_id, module_id, page_id FROM block_module_link WHERE block_id IN (1,2,3,5,12,14) ORDER BY block_id
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' OR tpl_tplset = 'default') AND (tpl_file = 'system_block_user.html' OR tpl_file = 'system_block_login.html' OR tpl_file = 'system_block_search.html' OR tpl_file = 'system_block_mainmenu.html' OR tpl_file = 'system_block_themes.html' OR tpl_file = 'system_block_socialbookmark.html') ORDER BY tpl_refid
SELECT COUNT(*) FROM priv_msgs WHERE (read_msg = '0' AND to_userid = '1')
SELECT * FROM modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC
SELECT * FROM group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2'))
SELECT * FROM group_permission WHERE (gperm_name = 'use_extension' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2'))
SELECT mimetypeid, dirname, types FROM system_mimetype WHERE (types LIKE '%application/zip%')
UPDATE session SET sess_updated = '1377854445', sess_data = 'xoopsUserId|s:1:\"1\";xoopsUserGroups|a:2:{i:0;s:1:\"1\";i:1;s:1:\"2\";}xoopsUserLastLogin|i:1377784501;xoopsUserTheme|s:6:\"iTheme\";UserLanguage|s:7:\"english\";ad_sess_regen|b:0;icms_fprint|s:64:\"a619ae587394f5b13479b07da79c0a1e9eae4e421551fd007ad3b3f1f9bec5bd\";XOOPS_TOKEN_SESSION|a:2:{i:0;a:2:{s:2:\"id\";s:32:\"af5fb375283bf33ed39a1195176ca070\";s:6:\"expire\";i:1377855294;}i:1;a:2:{s:2:\"id\";s:32:\"6ce3242a7cb7d4b53d52b8b448dffa7b\";s:6:\"expire\";i:1377855294;}}' WHERE sess_id = '618ee90faf084ea6e363e62a573a676c'
Total : 25 Queries
Blocks (6)
User Menu: No Cache
Login: No Cache
Search: No Cache
Main Menu: No Cache
Themes: No Cache
Share this page!: No Cache
Total : 6 Block(s)
Extra (2)
Included files: 132 files
Memory usage: 7.2 Mb
Timers (4)
ICMS took 7.960 seconds to load.
ICMS Boot took 0.125 seconds to load.
Module init took 0.020 seconds to load.
ImpressCMS CP Output Init took 7.815 seconds to load.
Deprecated (1)
(Deprecated) - icms_cp_header: use Elements from icms.css need to be moved to your theme instead. This will be removed in version 2.0
Call Stack:
-icms_cp_header in C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php, line 22
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(C:/Users/EH068/Documents/ImpressCMS-Portable/htdocs/supcat/modules/Formulize_4.02_Final_Readme.pdf,C:/Users/EH068/Documents/ImpressCMS-Portable/htdocs/supcat/modules/Formulize_4.02_Final_Readme.pdf) [<a href='recursivedirectoryiterator.--construct'>recursivedirectoryiterator.--construct</a>]: The directory name is invalid. (code: 267)' in C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php:66 Stack trace: #0 C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php(66): RecursiveDirectoryIterator->__construct('C:/Users/EH068/...') #1 {main} thrown in C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php on line 66
Developer Dashboard
None | All | Errors (0) Queries (25) Blocks (6) Extra (2) Timers (4) Deprecated (1)
Errors (0)
Queries (25)
SET NAMES 'utf8'
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid IN (1,2,3,6,7,8,10,12,11,5)) ORDER BY conf_order ASC
SELECT sess_data, sess_ip FROM session WHERE sess_id = '618ee90faf084ea6e363e62a573a676c'
SELECT * FROM users WHERE uid = '1'
SELECT * FROM modules
SELECT * FROM config WHERE (conf_modid = '13') ORDER BY conf_order ASC
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '13') ORDER BY conf_order ASC
SELECT * FROM system_autotasks AS autotasks WHERE ((sat_lastruntime + sat_interval) <= '1377854437' AND 'sat_repeat' >= '0' AND sat_enabled = '1') ORDER BY sat_lastruntime ASC
SELECT * FROM banner ORDER BY RAND() LIMIT 0, 1
SELECT groupid FROM groups_users_link WHERE uid='1'
SELECT COUNT(*) FROM icmspage AS page WHERE (page_url = 'http://127.0.0.1:4001/supcat/modules/tools/admin/modulesadd.php' OR page_url = 'modules/tools/admin/modulesadd.php')
SELECT * FROM icmspage AS page WHERE (page_status = '1')
SELECT * FROM block_positions AS blockposition
SELECT * FROM group_permission WHERE (gperm_name = 'system_admin' AND gperm_itemid = '5' AND gperm_modid = '1')
SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = '1' AND gperm_groupid IN ('1','2')
SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive='1' AND b.visible='1' AND ((m.module_id='0' AND m.page_id=0) OR (m.module_id='13' AND m.page_id=0)) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) ORDER BY b.weight, b.bid
SELECT * FROM newblocks AS block WHERE (bid IN (1,2,3,5,12,14)) ORDER BY weight ASC
SELECT block_id, module_id, page_id FROM block_module_link WHERE block_id IN (1,2,3,5,12,14) ORDER BY block_id
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' OR tpl_tplset = 'default') AND (tpl_file = 'system_block_user.html' OR tpl_file = 'system_block_login.html' OR tpl_file = 'system_block_search.html' OR tpl_file = 'system_block_mainmenu.html' OR tpl_file = 'system_block_themes.html' OR tpl_file = 'system_block_socialbookmark.html') ORDER BY tpl_refid
SELECT COUNT(*) FROM priv_msgs WHERE (read_msg = '0' AND to_userid = '1')
SELECT * FROM modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC
SELECT * FROM group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2'))
SELECT * FROM group_permission WHERE (gperm_name = 'use_extension' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2'))
SELECT mimetypeid, dirname, types FROM system_mimetype WHERE (types LIKE '%application/zip%')
UPDATE session SET sess_updated = '1377854445', sess_data = 'xoopsUserId|s:1:\"1\";xoopsUserGroups|a:2:{i:0;s:1:\"1\";i:1;s:1:\"2\";}xoopsUserLastLogin|i:1377784501;xoopsUserTheme|s:6:\"iTheme\";UserLanguage|s:7:\"english\";ad_sess_regen|b:0;icms_fprint|s:64:\"a619ae587394f5b13479b07da79c0a1e9eae4e421551fd007ad3b3f1f9bec5bd\";XOOPS_TOKEN_SESSION|a:2:{i:0;a:2:{s:2:\"id\";s:32:\"af5fb375283bf33ed39a1195176ca070\";s:6:\"expire\";i:1377855294;}i:1;a:2:{s:2:\"id\";s:32:\"6ce3242a7cb7d4b53d52b8b448dffa7b\";s:6:\"expire\";i:1377855294;}}' WHERE sess_id = '618ee90faf084ea6e363e62a573a676c'
Total : 25 Queries
Blocks (6)
User Menu: No Cache
Login: No Cache
Search: No Cache
Main Menu: No Cache
Themes: No Cache
Share this page!: No Cache
Total : 6 Block(s)
Extra (2)
Included files: 132 files
Memory usage: 7.2 Mb
Timers (4)
ICMS took 7.960 seconds to load.
ICMS Boot took 0.125 seconds to load.
Module init took 0.020 seconds to load.
ImpressCMS CP Output Init took 7.815 seconds to load.
Deprecated (1)
(Deprecated) - icms_cp_header: use Elements from icms.css need to be moved to your theme instead. This will be removed in version 2.0
Call Stack:
-icms_cp_header in C:\Users\EH068\Documents\ImpressCMS-Portable\htdocs\supcat\modules\tools\admin\modulesadd.php, line 22
Leave a comment