Hack Forums
MyBB Tabbed Menu plugin issues [Solved] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: MyBB Tabbed Menu plugin issues [Solved] (/showthread.php?tid=6282454)



MyBB Tabbed Menu plugin issues [Solved] - SIM-587985 - Oct 15, 2024

Plugin: MyBB Tabbed Menu 2.2 Author
Plugin Post: http://web.archive.org/web/20191230094454/http://www.mybbcentral.com/thread-7687.html
Plugin link: https://community.mybb.com/thread-230891.html

Whenever I have the plugin activated, I get a completely blank page instead of a normal index page.
Any idea what the problem could be?

MyBB Version 1.8.38

Quote:Fatal error: Uncaught Error: Call to undefined function each() in /home/vol10_5/infinityfree.com/if0_37513797/htdocs/inc/plugins/tab_menu.php:296 Stack trace: #0 /home/vol10_5/infinityfree.com/if0_37513797/htdocs/inc/class_plugins.php(142): tab_menu_list('') #1 /home/vol10_5/infinityfree.com/if0_37513797/htdocs/index.php(466): pluginSystem->run_hooks(Array) #2 {main} thrown in /home/vol10_5/infinityfree.com/if0_37513797/htdocs/inc/plugins/tab_menu.php on line 296


Ok folks, I got it working. So Upload>Inc>Plugins>tab_menu.php
change it to be this:
Spoiler (Click to View)


RE: MyBB Tabbed Menu plugin issues - SIM-587985 - Oct 15, 2024

(Oct 15, 2024 02:55 PM)m0hx Wrote:  check the error log history, it's probably old plugin that is not compatible.
post the errors related to ur code/plugin.

Where is the error log?
Thanks for the help, been like 15 years since I have messed with MyBB


RE: MyBB Tabbed Menu plugin issues - SIM-587985 - Oct 15, 2024

(Oct 15, 2024 03:06 PM)m0hx Wrote:  no idea lol.

if ur running xampp then its in the control center/ there's access.log // error.log // php.logs ?idk

or check whatever ur host error logs they must have php section or smthn.
or in mybb there's section for logs.

Fatal error: Uncaught Error: Call to undefined function each() in /home/vol10_5/infinityfree.com/if0_37513797/htdocs/inc/plugins/tab_menu.php:296 Stack trace: #0 /home/vol10_5/infinityfree.com/if0_37513797/htdocs/inc/class_plugins.php(142): tab_menu_list('') #1 /home/vol10_5/infinityfree.com/if0_37513797/htdocs/index.php(466): pluginSystem->run_hooks(Array) #2 {main} thrown in /home/vol10_5/infinityfree.com/if0_37513797/htdocs/inc/plugins/tab_menu.php on line 296

Edit: Finding Error Log for infinityfree - https://forum.infinityfree.com/t/where-is-error-log-file/53978


RE: MyBB Tabbed Menu plugin issues - SIM-587985 - Oct 15, 2024

(Oct 15, 2024 03:18 PM)m0hx Wrote:  f, there's some errors in it that's y. it won't work. u must fix em.
open tab_menu.php

look on those specific lines where the errors are, try to fix 'em

i could help u but im goin out and come back sleep atm >.< mayb tomo i'll do.

No need, fixed that error and another on line 170 for PHP version.
Will post updated code in the original post.