vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Poll Hack v1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=4386)

12-02-2000 10:36 PM

Doron, can you help me? I got this error when I ran the updatepoll.php - the weird thing is that my directory is not /usr/local/apache/sites...

But my board is still functional so I don't know what this is about!

<!-- Database error in vBulletin: Invalid SQL: ALTER TABLE thread ADD poll SMALLINT (1) DEFAULT '0' not null
mysql error: Duplicate column name 'poll'
mysql error number: 1060
Date: Saturday 02nd of December 2000 08:33:54 PM
Script: /updatepoll.php
Referer:
-->

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/sites/***.com/htdocs/updatepoll.php:7) in /usr/local/apache/sites/***.com/htdocs/global.php on line 754

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/sites/***.com/htdocs/updatepoll.php:7) in /usr/local/apache/sites/***.com/htdocs/global.php on line 757
Editing thread table ...

[Edited by Me2Be on 12-02-2000 at 07:44 PM]

12-02-2000 11:27 PM

Me2b, I had a kind of similar problem than the one you mention in you last 2 quotes.

Check my recent thread:
http://www.vbulletin.com/forum/showt...?threadid=5041

I'm sure you have the same blank lines problem.

Benj

[Edited by Benj on 12-02-2000 at 08:37 PM]

12-03-2000 02:27 AM

Benj, I just tried checking for blank spaces and couldn't find anything. The weird thing is that the board is working fine - It just gives me the error when I run the updatepoll.php file

12-03-2000 09:04 PM

ALTER TABLE thread ADD poll SMALLINT (1) DEFAULT '0' not null

look for that and comment it ouy with a //, you seem to already have the poll column in thread. As for the other error, that other thread seems to cover it.

you probably got the 2nd error once, retried the updatescript, but it succedded the first time to create that column. What sort of system are you on?

12-04-2000 07:08 AM

Quote:

Originally posted by ukliam
I have added this hack for 1.1.4 on my test board... but it did not add any of the templates when I ran the makepolltables.php file.

Any ideas?

Right... could I have a copy of the templates or an edited makepolltables.php file that just does the templates and does not add any tables...

thanks

12-04-2000 10:51 AM

Quote:

Originally posted by ukliam
Quote:

Originally posted by ukliam
I have added this hack for 1.1.4 on my test board... but it did not add any of the templates when I ran the makepolltables.php file.

Any ideas?

Right... could I have a copy of the templates or an edited makepolltables.php file that just does the templates and does not add any tables...

thanks

just comment out (by putting a // infront of the line) the lines where the tables are created ie ALTER etc. The onlyones you need are the INSERT lines.

12-04-2000 11:27 AM

Cheers... it was a problem with my header as well.
But it all works fine now.

12-04-2000 02:06 PM

doron, commenting out that line worked perfectly! I still got that header error even after making sure there was no white space, but nevertheless, it still worked!

Thanks doron!

12-05-2000 07:04 AM

hmm, the header issue is wierd, I'll try to reproduce. Are you all running php4?

12-05-2000 02:06 PM

php4 for me! But like I said, it did work though!


All times are GMT. The time now is 02:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01293 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete