• Welcome to Simple Machines Community Forum. Please login or sign up.

Can't Figure Out Error Source

Started by Rayvon, June 24, 2015, 08:57:30 PM

Previous topic - Next topic

Rayvon

Have been doing a really good job keeping that error log clean, just had this show up twice over the past couple days. I tried a bunch of google searches, but can't locate what mod may use the 'to_name' hook.

QuoteURLhttp://forums.newsithorder.info/index.php?action=pm;sa=send;f=inbox;pmsg=5235;quote;u=all
8: Undefined index: to_name
File: /home/newsi908/public_html/forums/Sources/PersonalMessage.php
Line: 1823

Line 1823 is in red:

Quotewhile ($row = $smcFunc['db_fetch_assoc']($request))
            $context['recipients']['to'][] = array(
               'id' => $row['id_member'],
               'name' => ($row['is_activated'] > 10 ? '<s>' . $row['to_name'] . '</s>' : $row['to_name']),
            );
         $smcFunc['db_free_result']($request);
      }


Can anyone help me figure out which mod may be causing this - and potentially a fix???  :o

Kindred

Mods installed?
Smf version?

San you attach the whole file?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Rayvon

Quote from: Kindred on June 24, 2015, 09:02:30 PM
Mods installed?
Smf version?

San you attach the whole file?

Quote1.   Activity in Profile   1.1     May 11, 2015, 01:19:10 PM   [ Uninstall ] [ List Files ] [ Delete ]
2.   Add Favicon.ico Support   1.101     May 11, 2015, 01:49:23 PM   [ Uninstall ] [ List Files ] [ Delete ]
3.   Add Table, Td, Tr Button   1.0     May 11, 2015, 01:22:16 PM   [ Uninstall ] [ List Files ] [ Delete ]
4.   Additional Profile Permissions   1.0.0     May 11, 2015, 01:06:49 PM   [ Uninstall ] [ List Files ] [ Delete ]
5.   AdditionalMembergroups   1.04     May 18, 2015, 11:46:04 AM   [ Uninstall ] [ List Files ] [ Delete ]
6.   Advanced News   1.2     May 11, 2015, 12:47:17 PM   [ Uninstall ] [ List Files ] [ Delete ]
7.   Annoy User   1.2.4     June 14, 2015, 12:43:07 PM   [ Uninstall ] [ List Files ] [ Delete ]
8.   Autocomplete   0.3.4     May 11, 2015, 01:05:13 PM   [ Uninstall ] [ List Files ] [ Delete ]
9.   Ban Link in Post   1.1     May 11, 2015, 01:43:44 PM   [ Uninstall ] [ List Files ] [ Delete ]
10.   Better Profile Menu   1.8     May 11, 2015, 01:18:06 PM   [ Uninstall ] [ List Files ] [ Delete ]
11.   Board Viewers Mod   1.2.1.1b     June 14, 2015, 02:32:25 PM   [ Uninstall ] [ List Files ] [ Delete ]
12.   Bookmarks   2.5     May 11, 2015, 01:48:33 PM   [ Uninstall ] [ List Files ] [ Delete ]
13.   Custom Action Mod   3.2     May 11, 2015, 01:21:47 PM   [ Uninstall ] [ List Files ] [ Delete ]
14.   Custom Permissions   1.1.0     May 20, 2015, 07:53:54 PM   [ Uninstall ] [ List Files ] [ Delete ]
15.   Customize *Child Board*   2.7     May 11, 2015, 01:25:17 PM   [ Uninstall ] [ List Files ] [ Delete ]
16.   Default_Membergroup   2.0     June 01, 2015, 01:18:32 PM   [ Uninstall ] [ List Files ] [ Delete ]
17.   dQuoteSelection   2.5 b2     May 11, 2015, 01:24:44 PM   [ Uninstall ] [ List Files ] [ Delete ]
18.   Dynamic_Memberlist   2.0.7     May 11, 2015, 01:25:49 PM   [ Uninstall ] [ List Files ] [ Delete ]
19.   Enhanced Dropdown   1.3     May 11, 2015, 01:19:56 PM   [ Uninstall ] [ List Files ] [ Delete ]
20.   Lazy Admin Menu   1.8     May 11, 2015, 01:19:28 PM   [ Uninstall ] [ List Files ] [ Delete ]
21.   Mibbit Ajax IRC Chat Mod   2.1     May 11, 2015, 12:46:41 PM   [ Uninstall ] [ List Files ] [ Delete ]
22.   Modified No Topics Message   1.1     May 11, 2015, 01:34:51 PM   [ Uninstall ] [ List Files ] [ Delete ]
23.   NChat   1.3.2     May 19, 2015, 12:15:03 PM   [ Uninstall ] [ List Files ] [ Delete ]
24.   No Log Certain User Errors   1.0     May 29, 2015, 05:56:43 PM   [ Uninstall ] [ List Files ] [ Delete ]
25.   Online Only Groups in the Group Key   1.0     June 15, 2015, 01:07:56 PM   [ Uninstall ] [ List Files ] [ Delete ]
26.   Order Custom Profile Fields   1.1.1     May 11, 2015, 01:24:25 PM   [ Uninstall ] [ List Files ] [ Delete ]
27.   Original Poster in Topic View   0.1.1     May 11, 2015, 01:21:23 PM   [ Uninstall ] [ List Files ] [ Delete ]
28.   PHP Information Mod   1.0.3     May 20, 2015, 08:46:33 PM   [ Uninstall ] [ List Files ] [ Delete ]
29.   PM Quick Reply   1.1     May 16, 2015, 01:37:04 PM   [ Uninstall ] [ List Files ] [ Delete ]
30.   Post and PM Inline Attachments   3.7     June 06, 2015, 03:45:35 PM   [ Uninstall ] [ List Files ] [ Delete ]
31.   Quick Moderation on Quick Reply   1.1.2     May 11, 2015, 01:26:50 PM   [ Uninstall ] [ List Files ] [ Delete ]
32.   Quick Spoiler   0.9.4     May 11, 2015, 01:21:02 PM   [ Uninstall ] [ List Files ] [ Delete ]
33.   ResizeImagesToFitScreen   0.1.6     May 11, 2015, 01:06:05 PM   [ Uninstall ] [ List Files ] [ Delete ]
34.   Semasa - Surfer's Live Local Time   1.0.0     May 11, 2015, 01:23:20 PM   [ Uninstall ] [ List Files ] [ Delete ]
35.   Signature Dropdown Choices   1.3     May 11, 2015, 01:06:25 PM   [ Uninstall ] [ List Files ] [ Delete ]
36.   Simple Audio Video Embedder   3.1     June 06, 2015, 01:39:59 PM   [ Uninstall ] [ List Files ] [ Delete ]
37.   Simple Theme Changer   1.0.2     May 11, 2015, 01:07:59 PM   [ Uninstall ] [ List Files ] [ Delete ]
38.   SimplePortal   2.3.6     May 11, 2015, 01:20:35 PM   [ Uninstall ] [ List Files ] [ Delete ]
39.   Slash through Banned Usernames   3.0     May 11, 2015, 01:44:38 PM   [ Uninstall ] [ List Files ] [ Delete ]
40.   SMF 1.1.21 / 2.0.10 Update   1.0     May 11, 2015, 10:00:24 AM   [ Uninstall ] [ List Files ] [ Delete ]
41.   SMF Arcade   2.6     May 11, 2015, 01:48:13 PM   [ Uninstall ] [ List Files ] [ Delete ]
42.   Sortable Packages (and Installed Time)   1.3.5     May 11, 2015, 11:14:03 AM   [ Uninstall ] [ List Files ] [ Delete ]
43.   Switch Permissions   1.0     May 11, 2015, 01:03:33 PM   [ Uninstall ] [ List Files ] [ Delete ]
44.   Tabs for Admin & Moderator Menus   1.2     June 18, 2015, 07:30:18 PM   [ Uninstall ] [ List Files ] [ Delete ]
45.   Tapatalk SMF 2.0 Plugin   4.2.4     May 11, 2015, 02:19:54 PM   [ Uninstall ] [ List Files ] [ Delete ]
46.   Topic Solved   1.1.1     May 11, 2015, 01:26:17 PM   [ Uninstall ] [ List Files ] [ Delete ]
47.   Transparent Offline Avatars   1.1     May 11, 2015, 01:44:12 PM   [ Uninstall ] [ List Files ] [ Delete ]
48.   Unknown Actions   1.0     May 11, 2015, 01:17:48 PM   [ Uninstall ] [ List Files ] [ Delete ]
49.   Users Online Today   2.1     May 11, 2015, 01:17:01 PM   [ Uninstall ] [ List Files ] [ Delete ]

QuoteSMF File   Your Version   Current Version
SMF Package   SMF 2.0.10   SMF 2.0.10
Sources   2.0.10   2.0.10
Default Templates   2.0.10   2.0.10
Language Files   2.0.10   2.0.10
Current Templates   2.0   2.0

Attached PersonalMessage.php

Thanks for responding quick Kindred :)

margarett

The error is easy to understand... The code is using a 'to_name' column which isn't being retrieved by the query.

The culprit is this
http://custom.simplemachines.org/mods/index.php?mod=2266
http://www.simplemachines.org/community/index.php?topic=347716.0
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Illori

the error seems related to the Slash through Banned Usernames mod, the support topic seems to say the mod is pretty buggy. i would recommend uninstalling it. to_name is not defined in the query before it is used in this location from what i can see that is causing the error.

http://www.simplemachines.org/community/index.php?topic=347716.0

Advertisement: