Hi,
i tried to import two different designs into cmsms. After I chose the xml-file and pressed the next-button, the Servererror 500 occured.
I use the latest version of cmsms. I can choose between php 7.4, 8.0 and 8.1, but it doesn't change anything, which version I use.
How can I fix this?
Thx.
Martin
Error 500 while importing a new desgin Topic is solved
Re: Error 500 while importing a new desgin
You'll need to look at your PHP error log and see what the error message is.
Not getting the answer you need? CMSMS support options
Re: Error 500 while importing a new desgin
Maybe this helps:
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php:56 Stack trace: #0 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php(75): dm_design_reader->{closure}() #1 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php(237): dm_design_reader->_scan() #2 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/action.admin_import_design.php(103): dm_design_reader->get_design_info() #3 /customers/0/f/7/martinlechler.de/httpd.www/lib/classes/class.CMSModule.php(1403): include('/customers/0/f/...') #4 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/DesignManager.module.php(56): CMSModule->DoAction('admin_import_de...', 'm1_', Array, '') #5 /customers/0/f/7/martinlechler.de/httpd.www/lib/classes/class.CMSModule.php(1479): DesignManager->DoAction('admin_import_de...', 'm1_', Array, '') #6 /customers/0/f/7/martinlechler.de/httpd.www/admin/moduleinterface.php(74): CMSModule->DoActionBase('admin_import_de...', 'm1_', Array, '', Object(Smarty_CMS)) #7 {main} thrown in /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php on line 56
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php:56 Stack trace: #0 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php(75): dm_design_reader->{closure}() #1 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php(237): dm_design_reader->_scan() #2 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/action.admin_import_design.php(103): dm_design_reader->get_design_info() #3 /customers/0/f/7/martinlechler.de/httpd.www/lib/classes/class.CMSModule.php(1403): include('/customers/0/f/...') #4 /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/DesignManager.module.php(56): CMSModule->DoAction('admin_import_de...', 'm1_', Array, '') #5 /customers/0/f/7/martinlechler.de/httpd.www/lib/classes/class.CMSModule.php(1479): DesignManager->DoAction('admin_import_de...', 'm1_', Array, '') #6 /customers/0/f/7/martinlechler.de/httpd.www/admin/moduleinterface.php(74): CMSModule->DoActionBase('admin_import_de...', 'm1_', Array, '', Object(Smarty_CMS)) #7 {main} thrown in /customers/0/f/7/martinlechler.de/httpd.www/modules/DesignManager/lib/class.dm_design_reader.php on line 56
Re: Error 500 while importing a new desgin
Works in PHP 7.4, but bug report filed for PHP 8+, thanks for bringing it to our attention.
http://dev.cmsmadesimple.org/bug/view/12556
http://dev.cmsmadesimple.org/bug/view/12556
Not getting the answer you need? CMSMS support options