HDTV Magazine
Welcome, Anonymous  •  Sign In  •  Register  •  Help
Whoops! There was an error.
Error
Call to undefined function getEntryInfo() Error thrown with message "Call to undefined function getEntryInfo()" Stacktrace: #0 Error in /var/www/html/news/index.php:130
Stack frames (1)
0
Error
/html/news/index.php:130
/var/www/html/news/index.php
                SELECT DISTINCT entry_blog_id, e.entry_id, entry_excerpt, entry_created_on, entry_title, author_name, topic_posts_approved, aux.topic_id, az.MediumImageURL img
                FROM mt_entry e, mt_author a, aux_mt_entry aux
                LEFT JOIN ". TOPICS_TABLE ." t ON (aux.topic_id = t.topic_id)
                LEFT JOIN az_main az ON (aux.ASIN = az.ASIN)
                WHERE entry_author_id = author_id
                    AND e.entry_id = aux.entry_id
                    AND e.entry_status = 2
                    AND e.entry_blog_id = 7
                ORDER BY entry_created_on DESC LIMIT 15";
                $result = $pdo->query($sql);
 
                $x = 0;
                $format = 'excerpt';
                while ($row = $result->fetch()) {
                    $x++;
                    $ts = strtotime($row['entry_created_on']);
                    $y = date('Y', $ts);
                    $m = date('m', $ts);
                    $ts_offset = $ts + $user->data['time_zone_offset'];
                    $entry = getEntryInfo($row['entry_blog_id']);
 
                    $entry['date'] = getDateString($ts);
                    $entry['link'] = "/$entry[blog_dir]/$y/$m/". dirify($row['entry_title']) .".php";
                    $entry['title'] = $row['entry_title'];
                    $entry['author'] = $row['author_name'];
                    $entry['excerpt'] = $row['entry_excerpt'];
                    $entry['entry_type'] = $entry_type;
                    $entry['topic_posts_approved'] = $row['topic_posts_approved'];
                    $entry['topic_id'] = $row['topic_id'];
                    $entry['image_src'] = $row['img'];
 
                    # Get categories
                    $sql = "
                    SELECT c.category_label, c.category_id FROM mt_category c, mt_placement p
                    WHERE {$row['entry_id']} = p.placement_entry_id
                        AND c.category_id = p.placement_category_id";
                    $res_categories = $pdo->query($sql);
                    $entry['catlinks'] = array();
                    while ($row_category = $res_categories->fetch()) {
                        $entry['catlinks'][] = '<a href="/category.php?id='. $row_category['category_id'] .'&category='. urlencode(stripslashes($row_category['category_label'])) .'">'. stripslashes($row_category['category_label']) .'</a>';

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER apache
HOME /usr/share/httpd
SCRIPT_NAME /news/index.php
REQUEST_URI /news/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 11847
SCRIPT_FILENAME /var/www/html/news/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/html
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /var/www/html
REMOTE_ADDR 104.23.243.216
SERVER_PORT 80
SERVER_ADDR 172.31.24.244
SERVER_NAME www.hdtvmagazine.com
SERVER_SOFTWARE Apache/2.4.65 (Amazon Linux)
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_FORWARDED_PROTO http
HTTP_CF_VISITOR {"scheme":"http"}
HTTP_CF_IPCOUNTRY US
HTTP_CF_CONNECTING_IP 216.73.216.112
HTTP_CDN_LOOP cloudflare; loops=1
HTTP_ACCEPT_ENCODING gzip
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_ACCEPT */*
HTTP_CONNECTION Keep-Alive
HTTP_CF_RAY 9c95f6f17de3f689-CMH
HTTP_X_FORWARDED_FOR 10.1.128.79,216.73.216.112
HTTP_CACHE_CONTROL max-age=259200
HTTP_VIA 1.1 squid-proxy-5b5d847c96-8sp5c (squid/6.13)
HTTP_REFERER http://www.hdtvmagazine.com/news
HTTP_HOST www.hdtvmagazine.com
proxy-nokeepalive 1
UNIQUE_ID aYUenJMS5Z69P_1gEuiuRAAAABI
FCGI_ROLE RESPONDER
PHP_SELF /news/index.php
REQUEST_TIME_FLOAT 1770331804.4031
REQUEST_TIME 1770331804
APP_ENV prod
MYSQL_DB_CANONICAL canonical
MYSQL_DB_MAIN main
MYSQL_HOST localhost
MYSQL_PASSWORD 6rl9uKOfreSpasWE?h9N9fOSiQUh2wot
MYSQL_USER app_hdtv_web
WHOOPS_ENABLED true
Key Value
APP_ENV prod
MYSQL_DB_CANONICAL canonical
MYSQL_DB_MAIN main
MYSQL_HOST localhost
MYSQL_PASSWORD 6rl9uKOfreSpasWE?h9N9fOSiQUh2wot
MYSQL_USER app_hdtv_web
WHOOPS_ENABLED true
0. Whoops\Handler\PrettyPageHandler