Closed matjazpotocnik closed 3 years ago
Thanks @matjazpotocnik I've moved that block of code up per your suggestion. It's unclear to me why sometimes it's in a ProcessWire-dev/master directory and sometimes not. I don't recall running into that particular case when testing, but I (or someone) must have at some point since the code check was there, but just in the wrong spot. Thanks for letting me know.
Thanks. Closing.
Hi, @ryancramerdesign! Thank you for working on this module again.
I was trying to upgrade PW from 3.0.174 to the latest dev 3.0.177 and got this warrings:
This line throws a warning:
$newIndexData = file_get_contents($rootTempPath . 'index.php');
since downloaded zip file contains a folder 'processwire-dev' and $rootTempPath is still pointing to
C:/inetpub/wwwroot/site/assets/cache/ProcessWireUpgrade/
instead ofC:/inetpub/wwwroot/site/assets/cache/ProcessWireUpgrade/processwire-dev/
I think the check for this situation should be done right after assigning $rootTempPtah and $wireTempPath: