Apply Filter: Only show the errors with the same message8: Undefined index: move_to_boardsApply Filter: Only show the MessageIndex.template.php
Line: 356
336: <td colspan="6" align="right">
337: <select class="qaction" name="qaction"', $context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' : '', '>
338: <option value="">--------</option>', $context['can_remove'] ? '
339: <option value="remove">' . $txt['quick_mod_remove'] . '</option>' : '', $context['can_lock'] ? '
340: <option value="lock">' . $txt['quick_mod_lock'] . '</option>' : '', $context['can_sticky'] ? '
341: <option value="sticky">' . $txt['quick_mod_sticky'] . '</option>' : '', $context['can_move'] ? '
342: <option value="move">' . $txt['quick_mod_move'] . ': </option>' : '', $context['can_merge'] ? '
343: <option value="merge">' . $txt['quick_mod_merge'] . '</option>' : '', $context['can_restore'] ? '
344: <option value="restore">' . $txt['quick_mod_restore'] . '</option>' : '', $context['can_solve'] ? '
345: <option value="solve">' . $txt['topic_solved_quick'] . '</option>' : '', $context['can_approve'] ? '
346: <option value="approve">' . $txt['quick_mod_approve'] . '</option>' : '', $context['user']['is_logged'] ? '
347: <option value="markread">' . $txt['quick_mod_markread'] . '</option>' : '', '
348: </select>';
349:
350: // Show a list of boards they can move the topic to.
351: if ($context['can_move'])
352: {
353: echo '
354: <select class="qaction" id="moveItTo" name="move_to" disabled="disabled">';
355:
==>356: foreach ($context['move_to_boards'] as $category)
357: {
358: echo '
359: <optgroup label="', $category['name'], '">';
360: foreach ($category['boards'] as $board)
361: echo '
362: <option value="', $board['id'], '"', $board['selected'] ? ' selected="selected"' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=>' : '', ' ', $board['name'], '</option>';
363: echo '
364: </optgroup>';
365: }
366: echo '
367: </select>';
368: }
369:
370: echo '
371: <input type="submit" value="', $txt['quick_mod_go'], '" onclick="return document.forms.quickModForm.qaction.value != \'\' && confirm(\'', $txt['quickmod_confirm'], '\');" class="button_submit qaction" />
372: </td>
373: </tr>';
374: }
375:
376: echo '
did search entire smf site for answer but couldnt find any, who can help me out to solve this error, thx
what version of SMF do you have installed and which mods?
version 2.0.8
Mod Name Version
1. View IP Permissions 1.1.3 [ Uninstall ] [ List Files ] [ Delete ]
2. APImage 0.3.1 [ Install Mod ] [ List Files ] [ Delete ]
3. Registered Links 3.0 [ Uninstall ] [ List Files ] [ Delete ]
4. SMF Gallery Lite 3.7 [ Uninstall ] [ List Files ] [ Delete ]
5. Misc Anti Spam 1.0 [ Uninstall ] [ List Files ] [ Delete ]
6. Activity_Bar 1.0.1.3 [ List Files ] [ Delete ]
7. SMF Staff Page 1.7 [ Uninstall ] [ List Files ] [ Delete ]
8. Users Online Today 2.1 [ Uninstall ] [ List Files ] [ Delete ]
9. Custom Form Mod 1.7 [ Uninstall ] [ List Files ] [ Delete ]
10. Birthday Posts 0.13 Beta [ Uninstall ] [ List Files ] [ Delete ]
11. Stars And Badges 2.2 [ Uninstall ] [ List Files ] [ Delete ]
12. Highslide Image Viewer 1.7 [ Uninstall ] [ List Files ] [ Delete ]
13. SMF Arcade 2.5 RC1 [ List Files ] [ Delete ]
14. Global Topics 2.2 [ Uninstall ] [ List Files ] [ Delete ]
15. Users mass actions 0.1.1 [ Uninstall ] [ List Files ] [ Delete ]
16. Treasury 2.12 [ Uninstall ] [ List Files ] [ Delete ]
17. Spoiler Tag 0.7.2a [ Uninstall ] [ List Files ] [ Delete ]
18. Tapatalk SMF 2.0 Plugin 4.0.1 [ Uninstall ] [ List Files ] [ Delete ]
19. Recent Forum Topics Boardindex 1.0 [ Uninstall ] [ List Files ] [ Delete ]
20. SimpleColorizer 1.1 [ Uninstall ] [ List Files ] [ Delete ]
21. Personal Messages to Membergroups 1.4.3 [ List Files ] [ Delete ]
22. Vimeo Embedder BBC Mod 2.2 [ Uninstall ] [ List Files ] [ Delete ]
23. Footer Menu 1.1.2 [ Uninstall ] [ List Files ] [ Delete ]
24. nCode Image Resizer 1.4 [ Install Mod ] [ List Files ] [ Delete ]
25. Downloads System 2.1a [ Uninstall ] [ List Files ] [ Delete ]
26. Smart Pagination 0.8.2 [ Uninstall ] [ List Files ] [ Delete ]
27. Topic Solved 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]
28. Simple Youtube Video Embedder/BBC 1.1 [ Uninstall ] [ List Files ] [ Delete ]
29. Topic View Log 1.2 [ Uninstall ] [ List Files ] [ Delete ]
30. Google Analytics Code 1.4 [ Uninstall ] [ List Files ] [ Delete ]
31. Gamer IDs 1.4 [ Uninstall ] [ List Files ] [ Delete ]
32. SMF 2.0.8 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
33. SimplePortal 2.3.5 [ Uninstall ] [ List Files ] [ Delete ]
Please attach your MessageIndex.php file.
dont have ftp atm, think the code will do it to.
*edit oopsy i posted the template lol.
ill add messageindex.php file later when i'm on other pc.
Quote from: ‽ on August 06, 2014, 08:23:07 AM
Please attach your MessageIndex.php file.
here it is.
also this error happens at the same time, so actually there are 2 errors on one thing.
Apply Filter: Only show the error messages of this URL
http://nrns-games.com/index.php?board=17.0
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home2/****/public_html/Themes/nrns/MessageIndex.template.php
Line: 356
Hmm, $context['move_to_boards'] appears to be set up correctly.
In the error log, is the error against your account or someone else's? If it's against someone else's, are they are a moderator in that board and have permission to move topics?
Quote from: ‽ on August 06, 2014, 04:15:39 PM
Hmm, $context['move_to_boards'] appears to be set up correctly.
In the error log, is the error against your account or someone else's? If it's against someone else's, are they are a moderator in that board and have permission to move topics?
some one else's account (atleast 2 members), they are in different groups, and they have permissions on some boards to edit, move etc
Strange, very strange. OK, can I get a copy of Sources/Subs-MessageIndex.php and your theme's MessageIndex.template.php please?
ok some update about this.
I made new account with same permissions and group as the member who made the error, then he logged in with that newly account and asked him to move some posts, and guess what no errors, so only with his old account and moving topics he makes error in log.
To fix it i attribute the posts from his old account to the newly account for him, and problem solved.
Still 2 members to do the same with as far as i see in the logs.
Pipke as this sounds solved I have marked it as such if this is wrong please update us.
Quote from: Μπράιαν on August 26, 2014, 06:07:18 PM
Pipke as this sounds solved I have marked it as such if this is wrong please update us.
Well i think users(we) only get(got) this error when they have migrated phpbb3 users db to smf db, cos thats what whe have done and after that we had these errors, the above post is the only solution sofar i could think of as the scripts(php files) have no errors in it.
topic solved.