MyBB Community Forums

Full Version: Warning: Invalid argument supplied for foreach
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
im after install mybb 1.6.7. Everything works fine so i decide to edit some visual stuff. But after vizual edit, i getting an error if i try to make new thread. Replying to thred is OK, it only happens if i try to start new thread.

I have another "issue". Whenever i try to click on name of a user, or on my own, im redirected to /user-2.html or /user-1.html. Im not really good in this, but how do i redirect it to user profile after click on name?

LINK TO FORUM:
http://forum.latexcraft.cz/

INSTALATION
Its a new installation. Version 1.6.7

TEST USER ACCOUNT:
name: testuser
pass: testuser

ERROR SCREEN:
http://www.imagehosting.cz/images/errorgcg.jpg

Thanks for help, you can also contact me via mail. Sorry for my bad english.

Error points to links in .php files. First is:

foreach($smilie_cache as $smilie)

second:

$smilieinserter = build_clickable_smilies();

I really don't get it, smilies are unchanged after install. I need to start forum in Monday. Have anybody some advice?

Thanks

Please, is there someone to help? I spend whole night to try figured this out, and still i have the warning, and can't go into any user profile. I found couple threads about this issue (user profile), but most of them are outdated, or useless. I edit my .htaccess countless times, but i still cant browse users profile. I try all possible settings for search engine friendly URLs, even trying to install google seo (advice from some site, but outdated). Still nothing work. Please i really need same help. Need to start my site on monday.

Thanks...
Firstly I advise upgrading to MyBB 1.6.8: http://docs.mybb.com/Upgrading.html

Please try upgrade to the latest version and let us know if you still get this error. Smile
Thanks! Im stupid, upgrading is the first thing what i have to do, if something goes wrong. Smile Thanks a lot Smile, next time i try to not be so mad, and think first Smile