=============================================

REST Test

=============================================

Request

http://ec2-52-76-250-69.ap-southeast-1.compute.amazonaws.com/api.php/v2/recipes/listMealPlanRecipes
=============================================

Response

<!DOCTYPE html>
<html lang="en">
<head>
<title>Database Error</title>
<style type="text/css">

::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }

body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}

a {
color: #003399;
background-color: transparent;
font-weight: normal;
}

h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}

code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}

#container {
margin: 10px;
border: 1px solid #D0D0D0;
-webkit-box-shadow: 0 0 8px #D0D0D0;
}

p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1>A Database Error Occurred</h1>
<p>Error Number: 1146</p><p>Table 'smpfc_db.foodie_meal_plans' doesn't exist</p><p>SELECT `fmp`.`foodie_id`, `mp`.`meal_plan_id`, `mp`.`name` AS meal_plan_name, `mp`.`description`, `mp`.`startdate`, `mp`.`enddate`, `mpr`.`day`, `mpr`.`meal_type`, `r`.`name` AS recipe_name, `r`.`slug` AS recipe_slug, `r`.`recipe_id`, `r`.`course_id`, `f`.`file_path`
FROM (`meal_plans` AS mp)
JOIN `meal_plan_recipes` AS mpr ON `mpr`.`meal_plan_id` = `mp`.`meal_plan_id`
LEFT JOIN `foodie_meal_plans` AS fmp ON `fmp`.`meal_plan_id` = `mpr`.`meal_plan_id`
INNER JOIN `recipes` AS r ON `r`.`recipe_id` = `mpr`.`recipe_id`
INNER JOIN `website_recipes` AS wr ON `wr`.`recipe_id` = `r`.`recipe_id` AND wr.published = 'y' AND wr.site_code='MGF'
LEFT JOIN `recipe_images` AS rim ON `rim`.`recipe_id` = `r`.`recipe_id` AND rim.cover = "y"
LEFT JOIN `content_files` AS f ON `f`.`file_id` = `rim`.`file_id`
WHERE `mp`.`meal_plan_id` = 65
ORDER BY `mpr`.`meal_type`, `mpr`.`position` ASC</p><p>Filename: /var/www/smpfc/models/v2/recipe_model.php</p><p>Line Number: 607</p> </div>
</body>
</html>

=============================================

Call details

Array
(
    [url] => http://ec2-52-76-250-69.ap-southeast-1.compute.amazonaws.com/api.php/v2/recipes/listMealPlanRecipes
    [content_type] => text/html; charset=utf-8
    [http_code] => 500
    [header_size] => 435
    [request_size] => 479
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 1
    [total_time] => 0.020481
    [namelookup_time] => 2.0E-5
    [connect_time] => 2.1E-5
    [pretransfer_time] => 4.3E-5
    [size_upload] => 78
    [size_download] => 2180
    [speed_download] => 106440
    [speed_upload] => 3808
    [download_content_length] => 2180
    [upload_content_length] => 78
    [starttransfer_time] => 0.009831
    [redirect_time] => 0.010635
    [redirect_url] => 
    [primary_ip] => 172.31.21.178
    [certinfo] => Array
        (
        )

    [primary_port] => 80
    [local_ip] => 172.31.26.3
    [local_port] => 57106
)