Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2004, 08:54 PM
Funkworkz Funkworkz is offline
 
Join Date: Jan 2004
Location: Wanamingo
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default paFileDB Integration Error

I am getting this header error, It is something to do with vB's header info, I cannot find anywhere to fix this in vB. Any help would be appreciated!

Here is the error -

PHP Code:
WarningCannot modify header information headers already sent by (output started at /home/exius/public_html/forum/pafiledb.php(14) : eval()'d code:17) in /home/exius/public_html/forum/downloads/includes/download.php on line 6 
Here is paFileDB's code that effects this -

PHP Code:
<?php
$file 
$pafiledb_sql->query($db"SELECT * FROM $db[prefix]_files WHERE file_id = '$id'"1);
$time time();
$update $pafiledb_sql->query($db"UPDATE $db[prefix]_files SET file_dls=file_dls+1, file_last=$time WHERE file_id = '$id'"0);
if (
$download == 1) { startdl(); exit; }
header("Location: $file[file_dlurl]");
?>
http://forum.exius-ent.com/pafiledb.php
Reply With Quote
  #2  
Old 06-26-2004, 11:04 AM
CarCdr CarCdr is offline
 
Join Date: Apr 2004
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe there is a trailing space at the end of the PHP code you pasted. That would do it.
Reply With Quote
  #3  
Old 06-26-2004, 11:11 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing should be outputted or processed before a header is outputted
Reply With Quote
  #4  
Old 06-26-2004, 05:32 PM
Funkworkz Funkworkz is offline
 
Join Date: Jan 2004
Location: Wanamingo
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, there is not a trailing space, I tried moving the header tag above the rest of the code, no luck. Could there be any other way to re-write the PHP code I pasted to bypass the header tag?
Reply With Quote
  #5  
Old 06-26-2004, 08:12 PM
13th_Disciple 13th_Disciple is offline
 
Join Date: Jan 2003
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

funworkz.. i would be interested to know how you did your bit of integration there.. do you allow user uploads and are those who registered thru the forums considered members thru pafiledb or do you have it open to guest uploads or uploads turned completely off?

your integration looks a lot like the deal i am using now but goes that extra step in creating a simgle page per file instead of downloading from the full list like the hack i am currently using..
Reply With Quote
  #6  
Old 06-26-2004, 08:20 PM
Funkworkz Funkworkz is offline
 
Join Date: Jan 2004
Location: Wanamingo
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am working on it at the moment, I am planning on including permissions for usergroups, but probably not in the first release. I modded the standard paFileDB files to no end, so I hope I can get Todd (paFileDB Dev) to let me distribute the files instead of making a huge novel of a text file for everyone to mod.

I do not have user uploads currently on the mod, but I probably will have it in a future release.

Now I am trying to fix the header error it gives you and finish the AdminCP. I will post pictures of my current work so far if anyone wants.
Reply With Quote
  #7  
Old 06-26-2004, 08:25 PM
13th_Disciple 13th_Disciple is offline
 
Join Date: Jan 2003
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah man.. i am really interested in this.. i have thought about doing this myself.. but thought it a bit too ambitious a deal to attempt as my first hack.. besides, i don't know if document well enough to release anything.. i just do and then forget what i did.. but i am very interestd in your project..
Reply With Quote
  #8  
Old 06-26-2004, 08:32 PM
Funkworkz Funkworkz is offline
 
Join Date: Jan 2004
Location: Wanamingo
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I'm glad to see some people would want this. I will post some pictures when I get done with more of the mod.

Some help with the error above would be nice.
Reply With Quote
  #9  
Old 06-26-2004, 08:43 PM
13th_Disciple 13th_Disciple is offline
 
Join Date: Jan 2003
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't know enough about pafiledb to even make an educated guess.. sorry man..

however, have you asked at the pafiledb forums to see if anyone else may be able to give you some insight?
Reply With Quote
  #10  
Old 06-26-2004, 08:45 PM
Funkworkz Funkworkz is offline
 
Join Date: Jan 2004
Location: Wanamingo
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, their forums are almost always dead.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:13 PM.


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.04736 seconds
  • Memory Usage 2,250KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete