Failed to load resource: the server responded with a status of 404
Failed to load resource: the server responded with a status of 404 (Not Found) в файле доменное-имя.com.ua/wp-content/themes/draco/getPrice.php?yrs=1&pcs=1&pid=82
Код файла getPrice.php
<?php
require($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');
global $wpdb;
//$price = $wpdb->get_results($wpdb->prepare("SELECT price FROM prices where years = ".$_GET['yrs']." and pcs = ".$_GET['pcs']." and product_id = ".$_GET['pid']." limit 1 "));
$price = $wpdb->get_results($wpdb->prepare("SELECT price FROM prices, buy_link where years = ".$_GET['yrs']." and pcs = ".$_GET['pcs']." and product_id = ".$_GET['pid']." limit 1 "));
header('Content-Type: application/json');
http_response_code(200);
echo json_encode($price);
?>
При смене цены в select выбивает ошибку.
jquery.min.js:4 GET http://bitdefender.com.ua/wp-content/themes/draco/getPrice.php?yrs=1&pcs=3&pid=82 404 (Not Found)jquery.min.js:4 sendjquery.min.js:4 n.extend.ajax(index):45 get_price(index):229 onchange
Всё это на странице - http://bitdefender.com.ua/product/bitdefender-antivirus-plus-2015/
Скриншот:
Подскажите в чём может быть проблема. Заранее огромное Аригато!
Источник: Stack Overflow на русском