I was just starting a new MODX installation. I installed successfully a free copy of Redactor (for testing purpose), but when it comes to ContentBlock, I got the following error during the install process :
And here is the content of my error.log file :
[2019-01-21 14:33:37] (ERROR @ C:\Users\romainfallet\Documents\Projets\cci-solutions-manager\core\xpdo\compression\xpdozip.class.php : 151) PHP warning: ZipArchive::extractTo(C:\Users\romainfallet\Documents\Projets\cci-solutions-manager/core/packages//contentblocks-1.8.5-pl\xPDOFileVehicle\e23243b82a2c9409e022e5ad36341f92\contentblocks\model\vendor\imagine\imagine\lib\Imagine\resources\colormanagement.org/ISOcoated_v2_grey1c_bas.ICC): failed to open stream: No such file or directory
[2019-01-21 14:33:37] (ERROR @ C:\Users\romainfallet\Documents\Projets\cci-solutions-manager\core\xpdo\transport\xpdotransport.class.php : 682) Could not unpack package C:\Users\romainfallet\Documents\Projets\cci-solutions-manager/core/packages/contentblocks-1.8.5-pl.transport.zip to C:\Users\romainfallet\Documents\Projets\cci-solutions-manager/core/packages/. SIG: contentblocks-1.8.5-pl
My first though was a read/write access problem but the Redactor installation went fine. I also looked in the /core/packages/ directory and a content block folder is actually created with some files but not all of them.
Sounds like the download may be corrupt… Try removing it in the package manager (use force remove, as it’ll likely fail to remove without it) and download it again.
And it always fails with the same error (same filename), too?
If so, I think the problem is the length of the path it fails to extract: C:\Users\romainfallet\Documents\Projets\cci-solutions-manager/core/packages//contentblocks-1.8.5-pl\xPDOFileVehicle\e23243b82a2c9409e022e5ad36341f92\contentblocks\model\vendor\imagine\imagine\lib\Imagine\resources\colormanagement.org/ISOcoated_v2_grey1c_bas.ICC
I can’t really make that path inside the package much shorter, but perhaps you can move your entire site up a few directories to avoid hitting that problem. Instead of the root of your site being at C:\Users\romainfallet\Documents\Projets\cci-solutions-manager, you could perhaps do something like C:\Users\romainfallet\Sites\csm or even C:\Sites\csm.
Hi @romainfallet, just to be secure for future endeavours, you should consider changing that inside your Windows-machine (if you’ll stick with developing under windows):