My one month old problem: I can't get a digital file to be uploaded. I am getting a 500 error saying "Premature end of headers scripts - cgi_php5"
I am hosting with Ixwebhosting.
They said it is a "rewriterule" issue in the .htaccess file.
I got 3 htaccess files in this drupal installation.
One is in the root (original htaccess file)
One is created by drupal in the "files" directory with couple of lines
One is created by drupla in the "tmp" director with same couple of lines
I can't figure out where is the problem.
Drupal is supposed to place the "digital product" in the "tmp" during preview, then move it to "downloads" foldere (set in the product type), then move it to the final folder (set in the product feature). The file is moved to "downloads" only, but not to final destination. I tried to place final destination everywhere including outside document root. same thing.everytime.
Below i attach additional info.
INSTALLED MODULES:
Drupal 5.15
Security update: 5.16 (2009-Feb-25) Download · Release notes
Includes: Block, Help, Search, Menu, Taxonomy, Path, Node, User, Statistics, Watchdog, Filter, Upload, System, Contact, Color
Update availableAdministration menu 5.x-2.6
Recommended version: 5.x-2.8 (2009-Jan-23) Download · Release notes
Also available: 5.x-3.x-dev (2009-Feb-12) Download · Release notes
Includes: Administration Menu
Up to dateAdministration Menu Dropdown 5.x-2.x-dev (2008-Dec-11)
Includes: Administration Menu Dropdown
Up to dateBackup Client-Server 5.x-1.x-dev (2008-Jul-11)
Includes: Backup Client
Up to dateCAPTCHA 5.x-3.2
Includes: Text CAPTCHA, CAPTCHA, Image CAPTCHA
Up to dateContent Construction Kit (CCK) 5.x-1.10
Includes: Text, Content, User Reference, Option Widgets, Number, Fieldgroup, Node Reference, Content Copy
Up to dateFileField 5.x-2.4
Includes: FileField - Meta, File Field
Up to dateForm store 5.x-1.0
Includes: Form store, Form collect
Up to dateFormfilter 5.x-1.0
Includes: Formfilter
Up to dategetID3() 5.x-1.2
Includes: getID3()
Up to dateGoogle Analytics 5.x-1.7
Includes: Google Analytics
Up to dateImageAPI 5.x-1.4
Includes: ImageAPI GD2, ImageAPI, ImageAPI ImageMagick
Up to dateImageCache 5.x-1.7
Also available: 5.x-2.3 (2009-Jan-05) Download · Release notes
Includes: ImageCache
Update availableImageField 5.x-2.1
Recommended version: 5.x-2.4 (2009-Feb-12) Download · Release notes
Includes: ImageField
Up to dateJQuery Interface 5.x-1.0
Includes: JQuery Interface Library
Up to datejQuery Update 5.x-2.0
Includes: jQuery Update
Up to dateJavascript Tools 5.x-1.2
Includes: JS Calendar, Activeedit, Activeedit Theme Assist, Javascript tools, Tabs, Tabs Example, Collapsiblock, AJAX submit, Active Search, Activemenu
Up to dateMimeDetect 5.x-1.0
Includes: MimeDetect
Up to datePathauto 5.x-2.3
Includes: Pathauto
Up to datePoormanscron 5.x-1.1
Includes: Poormanscron
Up to dateUser Referral 5.x-1.0
Includes: User Referral
Up to dateTAPIr 5.x-1.6
Includes: Tables API
Up to dateThickbox 5.x-1.2
Also available: 5.x-2.1 (2009-Jan-06) Download · Release notes
Includes: Thickbox
Up to dateToken 5.x-1.11
Includes: Token
Update availableUbercart 5.x-1.6
Recommended version: 5.x-1.7 (2009-Jan-16) Download · Release notes
Includes: PayPal, Payment, Recurring Payments, Catalog, Shipping, Shipping Quotes, Taxes, Importer, Cart, Repeater, Google Analytics for Ubercart, Notify, Store, Cart Links, Stock, Attribute, File Downloads, Product, Reports, Order, Product Kit, Roles
Up to dateUbercart Marketplace 5.x-1.0-beta5
Includes: mp_notify, mp_file, mp_orders, mp_product_kit, mp_products, mp_reports, mp_shipping
Up to dateuBrowser 5.x-1.4
Includes: uBrowser
Up to dateUC Free Order Payment Method 5.x-1.0
Includes: Free Order
Up to dateUC Promotions 5.x-1.0
Includes: Promotions
Up to dateUpdate Status 5.x-2.3
Includes: Update status
Up to dateUpgrade Status 5.x-1.3
Includes: Upgrade Status
Up to dateUser-Selectable Roles 5.x-1.0
Includes: User-Selectable Roles
Up to dateUsername originality AJAX check 5.x-1.3
Includes: Username AJAX check
Up to dateView Alias 5.x-1.2
Includes: View TermID Aliases
Up to dateViewfield 5.x-1.5
Includes: Viewfield
Up to dateViews 5.x-1.6
Includes: Views UI, Views, Views Theme Wizard, Views RSS
Up to dateViews Argument API 5.x-1.6
Includes: Views Argument API
Up to dateViews Bulk Operations (VBO) 5.x-1.3
Includes: Views Bulk Operations
Up to dateViews Multiblock 5.x-1.0
Includes: Views_Multiblock
Up to dateViews Rotator 5.x-1.0-rc2
Includes: Views Rotator
Up to dateViews Slideshow 5.x-1.0-beta1
Includes: Views Slideshow
Up to dateViews Taxargs 5.x-1.0
Includes: Views Taxargs
Update availableWorkflow-ng 5.x-2.1
Recommended version: 5.x-2.2 (2009-Feb-20) Download · Release notes
Includes: Configurable Content Links, Per-Entity Logs, Workflow-ng, Workflow-ng UI, State Machines
STATUS REPORT:
Drupal 5.15
CAPTCHA Already 0 blocked form submissions
Configuration file Protected
Cron maintenance tasks Last run 6 sec ago
You can run cron manually.
Database schema Up to date
Drupal core update status Not secure! (version 5.16 available)
There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information.
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
Mime type detection PHP Fileinfo Extension
Module update status Out of date
There are updates available for one or more of your modules. To ensure the proper functioning of your site, you should update as soon as possible. See the available updates page for more information.
MySQL database 5.0.41
PHP 5.2.3
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server Apache/1.3.37 (Unix) mod_throttle/3.1.2 FrontPage/5.0.2.2635 mod_psoft_traffic/0.2 mod_ssl/2.8.28 OpenSSL/0.9.8b
getID3() 1.7.7
jQuery Update Installed correctly
The current installed version of jQuery is 1.2.6
Comments
Comment #1
Turgrid commentedOff the top of my head, check to make sure the file download settings (product feature) are correct and most importantly the mask property is at its default (.* if I recall). I have seen people change this in the past accidentally and receive 500 errors.
Comment #2
omer60 commentedI have been trying everything for a month.
I didn't touch the (.*) default setting of the file mask.
I have placed the required file download directory in the product feature everywhere (i.e. outside the drupal directory, inside drupal directory - same level as "files", inside the "files" directory, etc.)....no dice. same problem.
If i create a product with an image only - it is fine. no problem there.
If i creare a digital product - consistent 500 error. The digital file in the "downloads" directory within the "files" directory. But it is not being moved to the final destination specified in the product feature.
Either i am missing something BIG TIME..... or the stupid hosting company (i.e. ixwebhosting) has restricted something somewhere. Their support staff are useless. Some of them don't even understand i am talking about when i say "drupal". They said it is an .htaccess file issue. It may as well be a permission issue. They also told me that apache is running under my own username. Is that possible? They have "my username" under both "user" and "group" for permissions. If apache is running as the same user as me, then drupal is running as the same user as me. I DON'T KNOW WHAT IS GOING!!!!.
i am seriously considering going with another hosting company, but i don't know which one is best for a combination of drupal+ubercart+ubercart_marketplace. if you know a good hosting company, let me know too.....but first, i want to solve this problem if i can for another week.
Comment #3
omer60 commentedNever mind guys.
I moved my site from ixwebhosting to hostgator, and the problem described in this thread was solved. Obviously it was the hosting company's server configuration...and they were saying it is my coding....My $&@#&!!....GOOD BYE IXWEBHOSTING