errors on field setup

kenorb - March 15, 2008 - 11:37
Project:Autonode CCK widget
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

If you have db_url variable in settings.php as an associative array, you have following errors:

    * warning: parse_url() expects parameter 1 to be string, array given in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\sites\all\modules\contributions\autonode\autonode.module on line 389.
    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: _get_columns SHOW COLUMNS FROM in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\includes\database.mysql.inc on line 172.
    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE field=''' at line 1 query: autonode_field_settings SHOW COLUMNS FROM WHERE field='' in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\includes\database.mysql.inc on line 172.
    * warning: parse_url() expects parameter 1 to be string, array given in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\sites\all\modules\contributions\autonode\autonode.module on line 389.
    * warning: parse_url() expects parameter 1 to be string, array given in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\sites\all\modules\contributions\autonode\autonode.module on line 389.

In settings.php you can read followed text:

* To specify multiple connections to be used in your site (i.e. for
* complex custom modules) you can also specify an associative array
* of $db_url variables with the 'default' element used until otherwise
* requested.

Patch for this bug in attachment.

AttachmentSize
autonode.module.patch452 bytes

#1

snufkin - March 16, 2008 - 17:53
Status:patch (to be ported)» patch (reviewed & tested by the community)

thanks for the patch, I will commit it as soon i can get to cvs close.

#2

snufkin - March 17, 2008 - 10:03
Status:patch (reviewed & tested by the community)» fixed

patch committed.

#3

Anonymous (not verified) - March 31, 2008 - 10:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#4

agrohippy - September 2, 2008 - 22:45

I recently uploaded your module and I am still getting this error. Question, will module automatically create nodes with populated tables or do I have to run cron jobs or something. Sorry not a programmer, a designer but I'm learning.

#5

snufkin - September 3, 2008 - 20:13
Status:closed» active

Could you paste the exact error message you're getting?

To answer your question: it should automatically create the node when you submit a not-yet existing reference.

#6

agrohippy - September 4, 2008 - 15:56
Title:parse_url() expects parameter 1 to be string, array given in» errors and morehelp getting started!!
Category:bug report» support request

My client wants to download a Vendor account information database (including long/lang and keywords eventually) into the Drupal database and have Drupal automatically create nodes where we will then create a searchable database for businesses using a mix of other fun modules. Every once in awhile client would like to update listings the same way (can we avoid duplicates)

Thank you for your assistance or reality check:

First field set up I get:

* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.

#7

snufkin - September 5, 2008 - 14:40
Title:errors and morehelp getting started!!» errors on field setup

So you get this error the very first time you click save field? Unfortunately this error is pretty obscure. Could you give me a sample data i could test with? Are there other modules that can affect the creation of the "business nodes"?

 
 

Drupal is a registered trademark of Dries Buytaert.