Cannot create a quickfile node
Bèrto ëd Sèra - January 27, 2007 - 06:06
| Project: | Quickfile |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The error message I get is:
Fatal error: Cannot use string offset as an array in E:\www\drupal-5.0\includes\form.inc on line 663
Upon analyzing the Array with print_r($form) I get
Array ( [#type] => value [#value] => [#post] => Array ( ) [#programmed] => [#tree] => [#parents] => Array ( [0] => nid ) [#weight] => 0 [#processed] => [#description] => [#attributes] => Array ( ) [#required] => [#input] => 1 [#name] => nid [#id] => edit-nid )
So it kinda shouldn't even execute line 663, which reads
662 if (isset($form['#disabled']) && $form['#disabled']) {
663 $form['#attributes']['disabled'] = 'disabled';
664 }Now I know I should disable ALL of the added modules and try it entirely on its own. I'll do it if it gets necessary, but it's LOTS of modules I'll have to disable... any hint?

#1
Please provide details about your environment and the steps you're following to reproduce the error.
Regards.
#2
Hi!
System is:
* P4 running on XP pro (my home comp for development)
* Apache 2.2.3
* PHP 5.2.0
* mysql-5.1.11-beta-win32
* Drupal 5.0
* quickfile timestamp on quickfile.info ; $Id: quickfile.info,v 1.3 2006/12/08 14:54:13 alexis Exp $
Modules on Drupal (yeah... many)
*ACL 5.x-1.3
*Forum Access 5.x-1.6
*Audio 5.x-0.1
*Audio getID3 5.x-0.1
*Audio Images 5.x-0.1
*Similar entries HEAD
*Aggregator 5.0
*Blog 5.0
*Blog API 5.0
*Book 5.0
*Color 5.0
*Comment 5.0
*Contact 5.0
*Forum 5.0
*Help 5.0
*Locale 5.0
*Menu 5.0
*Path 5.0
*Ping 5.0
*Poll 5.0
*Profile 5.0
*Search 5.0
*Statistics 5.0
*Taxonomy 5.0
*Throttle 5.0
*Tracker 5.0
*Upload 5.0
*Decisions 5.x-1.x-dev
*Ranking 5.x-1.x-dev
*Selection 5.x-1.x-dev
*Donations 5.x-1.x-dev
*Quickfile 5.x-1.x-dev
*Reward scheme $Name$ (our own development, so far it only publish a query in a block, not dangerous)
*Image HEAD
*Image Attach HEAD
*SpamSpan 5.x-1.0
*lm_paypal HEAD
*lm_paypal_donations HEAD
*lm_paypal_paid_adverts HEAD
*lm_paypal_subscriptions HEAD
*Mime Mail 5.x-1.x-dev
*Mailing List Manager 5.x-1.x-dev
*News 5.x-1.x-dev
*Notify 5.x-1.x-dev
*Send 5.x-1.x-dev
*Node relativity HEAD
*Organic groups 5.x-1.0
*Organic groups mandatory group Not found (not found refers to a missing version number, the module works normally)
*Organic groups vocabularies 5.x-1.x-dev
*Accents 5.x-1.0
*Acidfree HEAD
*Actions 5.x-1.x-dev
*AdSense 5.x-1.2
*Avatar Gallery 5.x-1.x-dev
*Comment mover 5.x-1.x-dev
*Content Templates 5.x-1.1
*Custom Breadcrumbs 5.x-1.1
*Custom Links 5.x-1.1
*Forward HEAD
*Google Analytics 5.x-1.x-dev
*Greybox 5.x-1.2
*Google Sitemap 5.x-1.x-dev
*Modr8 5.x-2.1
*nodeauthor 5.x-1.2
*Node stack 5.x-1.x-dev
*Panels 1.1
*Pathauto 5.x-1.0
*Pdfview 5.x-1.x-dev
*Persistent Login 5.x-1.0
*phpFreeChat 5.x-1.x-dev
*Private 5.x-1.0
*Scheduler 5.x-1.2
*Simplenews 5.x-1.x-dev
*Spam 5.x-1.x-dev
*Text Image 5.x-1.0
*TinyMCE 5.x-1.x-dev
*Upload preview 5.x-1.1
*Weather 5.x-1.0
*Project 5.x-0.1-beta
*Project issue tracking 5.x-0.1-beta
*Project releases 5.x-0.1-beta
*Captcha 5.x-1.0
*AdSense Injector 5.x-1.x-dev
*Smileys 5.x-1.1
*Smileys Import 5.x-1.1
*Userpoints 5.x-1.1
*Userpoints Reset 5.x-1.1
*Userpoints Retroactive 5.x-1.1
*Video HEAD
*Video Image HEAD
*Video Upload HEAD
*Calendar 5.x-1.1
*daterange 5.x-1.2
*Views 5.x-1.4-2rc1
*Views RSS 5.x-1.4-2rc1
*Views UI 5.x-1.4-2rc1
*Voting API 5.x-1.2
*Voting API Actions 5.x-1.2
*Advanced Poll 5.x-1.x-dev
*Fivestar 5.x-1.3
There are redundancies and a few problems here and there. Some stuff is going to be disabled and deleted once we make a choice among the available variants, but this is (almost) everything. In the faraway future I'd expect the ERP module to join the band, since we will start to sell things, too. But that's ages from now...
Events...
As soon as I navigate to ?q=node/add/quickfile I get the error message.
Quickfile settings
* directory: /files/quickfiles (so far security does not matter much, just trying how it works)
*URLs: thank_you and error_downloading (both audio nodes, they have both an audio and a text version of their messages)
Maybe it's important... we have no PAGE content type on our system. Everything here is a book page or a multimedia node. We'd like to have all product nodes as audio nodes, for people to be able to hear a product description rather than read it.
Thanks for helping :)
#3
#4
You are using the latest version of QuickFile, I used the same in a clean Drupal 5 installation and worked without problems. I have the same version working in three production sites too.
I'd suggest disabling all those modules and then trying enabling them, along with QuickFile, one by one.
I'm aware of certain namespace issues, specially with url of payment forms (which conflict with some of the modules of Ecommerce), and will fix them in future versions.
Regards.
#5
Hola! I verified by disabling them all and it all works now. I hav a couple of features requests, but I'll open them as such. This one is closed(but I'll open a bug report to the module that is breaking yours, as soon as I find it). I'll keep you informed about it, it might be worth adding a few lines for people to know if there are incompatibilities among different modules.
#6
just closing the issue :)