Error 500 while importing a new desgin Topic is solved

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
maddintb
New Member
New Member
Posts: 2
Joined: Tue Jul 26, 2022 9:40 am

Error 500 while importing a new desgin

Post by maddintb »

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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1658
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Error 500 while importing a new desgin

Post by DIGI3 »

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
maddintb
New Member
New Member
Posts: 2
Joined: Tue Jul 26, 2022 9:40 am

Re: Error 500 while importing a new desgin

Post by maddintb »

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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1658
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Error 500 while importing a new desgin

Post by DIGI3 »

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
Not getting the answer you need? CMSMS support options
Locked

Return to “CMSMS Core”