bainternet / Wamp-WordPress-installer

Simple WordPress Auto Installer for WAMP
GNU General Public License v3.0
41 stars 25 forks source link

Could not open archive message #12

Open kevinmamaqi opened 8 years ago

kevinmamaqi commented 8 years ago

I don't know what's going on, but I only receive this message. A latest.zip file is downloaded but it can't be open. It has 1kb size.

bystrzan commented 8 years ago

I guess - You are using the latest php version? I have the same problem from the moment when I switched to 7.0. I had no time for now to check it (I use my own fork that is modified in many parts) so for now I bak to 5.6.10 (Mamp Mac)

nmharleyrider commented 7 years ago

was this ever resolved? I just got the same error message

ThatChocolateGuy commented 5 years ago

Just figured out that the issue is with a syntax change from PHP 5 to PHP 7. In installer.php simply remove the parentheses from $zip = new ZipArchive(); on line 385. The result should be $zip = new ZipArchive;.

You may get numerous other errors on other lines for similar reasons, but at least we now know it's just syntax updates that broke the script.