Polls killed by upgrade. Please help :( Anyone please????

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Polls killed by upgrade. Please help :( Anyone please????

Post by oooooh »

Hi

I upgraded to .16 but all of my polls have died. Below is the error they all give when you click the post which they are in.

Could not obtain vote data for this topic

DEBUG MODE

SQL Error : 1030 Got error 28 from table handler

SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result FROM phpbb_vote_desc vd, phpbb_vote_results vr WHERE vd.topic_id = 80 AND vr.vote_id = vd.vote_id ORDER BY vr.vote_option_id ASC

Line : 688
File : viewtopic.php
Last edited by oooooh on Wed Jun 29, 2005 7:02 pm, edited 1 time in total.
indaleco
Registered User
Posts: 286
Joined: Sun Nov 07, 2004 12:00 am

Post by indaleco »

Are you using a mod that changed your polls in any way.
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Post by oooooh »

Hi

The only mod I have stops mods from viewing the IP of users.
User avatar
Snowboardalliance
Registered User
Posts: 98
Joined: Mon Nov 29, 2004 2:36 am

Post by Snowboardalliance »

Post the code at line 688 and around it.
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Post by oooooh »

Sorry dont understand
indaleco
Registered User
Posts: 286
Joined: Sun Nov 07, 2004 12:00 am

Post by indaleco »

Open viewtopic.php and using notepad -> click Goto. Enter the number 688 and copy approximately 5-10 lines above and below that line.
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Post by oooooh »

There are no line numbers :(
indaleco
Registered User
Posts: 286
Joined: Sun Nov 07, 2004 12:00 am

Post by indaleco »

That is why you use notepad. It has a GOTO (ctrl = G) which allows you to enter a line number.
Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f »

Hi ooooh!

Just for your info. I have updated to .16 a couple of days ago, and seeing this thread I went to check a few existing polls. There all ok and displayed as should be.

Regards,
Wolf
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Post by oooooh »

The control G is greyed out and notepad turns the file into a jumble
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Post by oooooh »

if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) )
{
asort($tracking_topics);
unset($tracking_topics[key($tracking_topics)]);
}

$tracking_topics[$topic_id] = time();

setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
} ( THIS IS 668 )

//
// Load templates
//
$template->set_filenames(array(
'body' => 'viewtopic_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx, $forum_id);

//
// Output page header
//
$page_title = $lang['View_topic'] .' - ' . $topic_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

//
// User authorisation levels output
Last edited by oooooh on Wed Jun 29, 2005 7:18 pm, edited 1 time in total.
indaleco
Registered User
Posts: 286
Joined: Sun Nov 07, 2004 12:00 am

Post by indaleco »

Open it in wordpad first and save it. Then open it in notepad.
oooooh
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:58 am

Post by oooooh »

Or this


POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id'] . '">', '</a>');

$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a>&nbsp;';

$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=move&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a>&nbsp;';

$topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=lock&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a>&nbsp;' : "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unlock&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a>&nbsp;';

$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' .
espicom
Registered User
Posts: 17905
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Post by espicom »

SQL Error : 1030 Got error 28 from table handler


Your polls were NOT killed by the upgrade, they are dead because the MySQL server has a serious problem... It can not allocate any space to insert the information you want to insert. Call your host and have them fix it.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer
User avatar
Lumpy Burgertushie
Registered User
Posts: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

indaleco wrote: Open it in wordpad first and save it. Then open it in notepad.


wordpad is better to use than notepad anyway, it doesn't show all the junk characters and it has line numbers.

why open in wordpad and save it and then open it in notepad? what is that supposed to do?


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Locked

Return to “2.0.x Support Forum”