MyBB Community Forums

Full Version: Error in index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Detailed description of your problem, including steps to reproduce if necessary: I upgraded to MyBB 1.6.7 and whenever any one tried to access my forums, they got the error:
Quote:Fatal error: Call to undefined function my_unserialize() in /home/megalogs/public_html/forum/index.php on line 348
URL to your forum/URL to specific problematic page: http://forum.ihubhost.net
New installation or upgrade (from which version of MyBB): Upgrade from MyBB 1.6.6

I had a look in index.php and line 348 is:
Quote:$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);

I replaced the index.php file with the original and nothing happened, so I have commented out for now to get my forums working again, but something tells me I shouldn't really comment that line out.

Has anyone else had this problem and knows how to fix this properly?
Reupload ./inc/functions.php from a fresh package.
After uploading a fresh index.php and ./inc/functions.php I now get:

Quote:Fatal error: Call to undefined function iif() in /home/megalogs/public_html/forum/global.php(519) : eval()'d code on line 207
Can you please post the contents of your header template here?
Sorry, I have got this working now by replacing the ./inc/functions.php and ./inc/class_templates.php with the ones provided here: http://community.mybb.com/thread-75668.html

thank you for your help though.