Wondering if this will always be free? See why free is better.
Started by Ray Cardillo, May 02, 2012, 12:25:01 PM
1. Adapt Database database_211.php File not found
Quote from: Diego Andrés on March 29, 2022, 04:14:24 PMTechnically the user is only uploading the instructions, not the mod itself (for anyone not following the disc)
https://www.NOFOLLOW.com/index.php?action=votelog;topic=35166 /home/ahaforum/public_html/Sources/VoteLog.php (Line 65) Backtrace informationType of error: GeneralError messageSelect8: Trying to access array offset on value of type null
#0: smf_error_handler()Called from /home/ahaforum/public_html/Sources/VoteLog.php on line 65#1: VoteLog()Called from /home/ahaforum/public_html/index.php on line 187
https://www.NOFOLLOW.com/index.php?action=votelog;topic=35166 /home/ahaforum/public_html/Sources/VoteLog.php (Line 65) Backtrace informationType of error: UndefinedError messageSelect8: Undefined index: poll
// This is almost the same as the code in Display.php because you should not see voters if you cannot see the poll60: // You're allowed to view the results if:61: // 1. you're just a super-nice-guy, or62: // 2. anyone can see them (hide_results == 0), or63: // 3. you can see them after you voted (hide_results == 1), or64: // 4. you've waited long enough for the poll to expire. (whether hide_results is 1 or 2.)==>65: $context['allow_poll_view'] = allowedTo('moderate_board') || $pollinfo['hide_results'] == 0 || ($pollinfo['hide_results'] == 1 && $context['poll']['has_voted']) || $context['poll']['is_expired'];66: $context['poll']['show_results'] = $context['allow_poll_view'] && (isset($_REQUEST['viewresults']) || isset($_REQUEST['viewResults']));67: $context['poll']['question'] = $pollinfo['question'];68: $context['poll']['is_locked'] = !empty($pollinfo['voting_locked']);69: $context['poll']['vvis'] = $pollinfo['vote_visibility'];
Quote from: Joey Smith™ on April 27, 2022, 11:59:29 AMWhat's line 65 of that file? The error references an undefined index error. Which means there needs to be a slight change in the code. Most likely, if it works as expected, there just needs to be a check to make sure it's set.The script is trying to access $someVar['poll'] with poll being the index. May just need a isset($someVar['poll']) but it's hard to say without seeing it.