I have that problem. When I try to add mercadopago sdk to my site it does not let me, error 500 comes out.
This is the code I have:
include_once('./mercadopago/lib/mercadopago.php');
$mp = new MP($id, $secret);
$preference_data = array(
"items" => array(
array(
"title" => $name,
"quantity" => 1,
"currency_id" => "VEF",
"unit_price" => $price
)
)
);
$preference = $mp->create_preference($preference_data);
But there is an error in the last line, in which the create_preference () is called. Well when I put that comment line runs the normal site but when it is not in comment shows error 500 and I do not know what it can be :( Please help! Thank you!