S
S
SLaMeeR2018-03-01 21:30:46
PHP
SLaMeeR, 2018-03-01 21:30:46

How to fix Fatal error: Call to undefined function mozg_cache()?

How to fix the error?

Fatal error: Call to undefined function mozg_cache() in /var/www/html/index.php on line 37

line 37
<b>$CacheNews = mozg_cache('user_'.$user_info['user_id'].'/new_news');</b>
if($CacheNews){
  $new_news = "<div class=\"newNews2\" style=\"margin-left:150px;margin-top:1px\">{$CacheNews}</div>";
  $news_link = '/notifications';
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2018-03-01
@Sanasol

It looks like you need to declare a function...

S
SagePtr, 2018-03-01
@SagePtr

Forgot to include the file that defines the mozg_cache function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question