Alien Ads
Developer Exception Inspector
Search Solution
Error HTTP 500 PHP v7.3.33 GET /blog/future-of-advertising-in-india-2026

Call to undefined function get_blog_cat_meta()

/home/alienads/public_html/Blog/blog-details.php : Line 86
Spatie Smart Error Solution
Call to Undefined Function: get_blog_cat_meta()
The function get_blog_cat_meta() has not been defined or its source file was not included.
blog-details.php
78
79
if ($row) {
80
// Increment the views count in the database
81
try {
82
$db->prepare("UPDATE blogs SET views = views + 1 WHERE id = ?")->execute([$row['id']]);
83
} catch (Exception $e) {}
84
85
$cat_raw = trim($row['category'] ?? 'Advertising & Marketing');
86
$cat_meta = get_blog_cat_meta($cat_raw);
87
$cat_slug = $cat_meta['slug'];
88
$cat_color = $cat_meta['color'];
89
$cat_icon = $cat_meta['icon'];
90
91
$date_str = !empty($row['published_at']) ? date('F d, Y', strtotime($row['published_at'])) : date('F d, Y', strtotime($row['created_at']));
92
$img_src = !empty($row['image_url']) ? get_image_url($row['image_url']) : get_image_url('assets/images/why-us.jpeg');
93
94
// Calculate Word Count & Accurate Reading Time
95
$word_count = str_word_count(strip_tags($row['content'] ?? ''));
Call Stack Trace 0 frames
#0
[Exception Origin]
in /home/alienads/public_html/Blog/blog-details.php at line 86
URL /blog/future-of-advertising-in-india-2026
HTTP Method GET
$_GET Parameters { "slug": "future-of-advertising-in-india-2026" }
$_POST Parameters (empty)
Session ID (none)
PHP Version 7.3.33
Operating System Linux (4.18.0-553.129.1.el8_10.x86_64)
Server Web Server Apache
Document Root /home/alienads/public_html
User Agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
Error details copied to clipboard!