I'm trying to upgrade my work env to wamp 3.0.6, I have an old prestashop 1.4.5.1 project that I have to maintain and the new WAMP refuses to cooperate
- CURL fails to to send files (solved)
This is a php backward comparability bug where sending files with CURL doesn't work unless I add curl_setopt($curl, CURLOPT_SAFE_UPLOAD, false);
before curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
see cURL file uploads not working anymore after upgrade from PHP 5.5 to 5.6 d
- MySql returns empty queries
This is a MySql backward comparability bug - see Error related to only_full_group_by when executing a query in MySql I disabled this according to Disable ONLY_FULL_GROUP_BY
hopefully I didn't break something there.
rename(C:\wamp64\www\...\wrtC25B.tmp,C:\wamp64\www\..\01476c9c6b5f1091c73262cd3be476dcc853ec82.file.blockcart.tpl.php): Access is denied. (code: 5).
Here is the code
// remove original file
if (file_exists($_filepath))
@unlink($_filepath);
// rename tmp file
rename($_tmp_file, $_filepath);
I tried to change the it to
// remove original file
if (file_exists($_filepath))
@unlink($_filepath);
// rename tmp file
copy ($_tmp_file,$_filepath);
unlink($_tmp_file);
And I get Permission denied
, I tried to change owner and give full control but still doesn't work.
However this problem normally disappear after a refresh (and then re-appear later) but I can ignore it since it doesn't break any thing else and happens only in the dev env.
- Order creation failed
Order creation fails with message Order creation failed
, this is caused because MySql doesn't accept empty (0000-00-00 00:00:00) date at insert any more, I solve it by adding
$this->invoice_date = date('Y-m-d H:i:s');
$this->delivery_date = date('Y-m-d H:i:s');
at line 200 file ObjectModel.php
This might be connected to issue number 2, since the related SO answer state that it could cause some other problems,
I was actually able to solve this but I keep this question for other to see and also if someone has better solutions.