On 4/4/2019 at 9:24 PM, musicmaster said:Hard to help you as your problem description is so minimalistic:
- which Prestashop version are you using?
- did you check for javascript errors?
- you say there is nothing strange on line 2101. Why don't you quote the lines. Maybe other people draw different conclusions.
- your save button problem suggests that not all tabs of your product page are loaded. However, you don't show us the box that appears that might give us a suggestion which tab is problematic. I suggest you to open every tab to look if it is there.
- did you have a look at the error log of your server?
I am using version 1.6.1.23
The problem is on every tab when I am opening a product. I just can't do a thing exept of seeing it. Because I can't save a thing. See picture for the error. I has been goin for 3 days, but thoday its back. So I realy can't figure out what the bug is, its to strange for me.
Notice on line 2101 in classes/Tools.php
[8] Array to string conversion.
On that line is this:
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
I have no idea what is going wrong and why.
It's part of this:
if (function_exists('curl_init')) {
Tools::refreshCACertFile();
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($curl, CURLOPT_CAINFO, _PS_CACHE_CA_CERT_FILE_);
if ($stream_context != null) {
$opts = stream_context_get_options($stream_context);
if (isset($opts['http']['method']) && Tools::strtolower($opts['http']['method']) == 'post') {
curl_setopt($curl, CURLOPT_POST, true);
if (isset($opts['http']['content'])) {
parse_str($opts['http']['content'], $post_data);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
}
}
}
$content = curl_exec($curl);
curl_close($curl);
return $content;
} else {
return false;
I asked my hosting to have a look in the error log. They found nothing.