Jump to content

PHP Notice - Undefined Index

Recommended Posts


I'm using with PHP 5.6.40,  MySQL 5.6.44 

I'm hunting for errors on my site and in my log file I have tones of instances of this same error:

[16-Jan-2019 22:23:13 Greenwich] PHP Notice:  Undefined index: hook in /home/rieraalta/public_html/cache/smarty/compile/cb/6f/4f/cb6f4f62fc1fecfa8a51eb7b687bf99ab9421a45.file.hook.tpl.php on line 34

So I went looking for file and found this to be line 34:

<?php ob_start();?><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hook']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>


I'm not an expert on the matter and I really can't make anything of this, I was wondering If someone out there can point me to the right direction. 



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More