Getting error when adding another field
c4gamerz - September 12, 2008 - 15:04
| Project: | Integrated Metatags |
| Version: | 6.x-1.0-beta7 |
| Component: | int_meta_cck.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Description
I am getting error when updating database for upgrading module to beta2 version
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 'NOT NULL' at line 1 query: ALTER TABLE int_meta_fields ALTER combine SET NOT NULL in /home/***/update.php on line 77.
any fix for it?
Thanks

#1
okay i just uninstalled it and installed again now i am getting a old problem which i get everytime!
when i create a field and save it and than after some times i create another field and try to add it i get error in a popup and than when i refresh page i get this error
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/##/modules/int_meta/int_meta.module on line 392.* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/##/modules/int_meta/int_meta.module on line 392.
and than i refresh one more time that error disappears and i can add new field!
#2
That's odd. Looking at the code on that line, those errors would indicate that your form wasn't cached properly when you started working on that page. I'll have to dig into what might cause this, but any additional information might help. What kind of field were you adding (CCK? Taxonomy? Node?)? Any other settings when you clicked add? Can you reproduce this without any other tags defined, or is it only after you've added at least one?
As for the database error, I'll go back and verify I have the syntax right.
Thanks!
#3
I got that error when i tried to added taxonomy term in page content type under meta tags menu.
I think it is some sort of theme problem the table is breaking layout see the below screenshot.
i will try to reproduce that error
#4
Hi,
I got this error when adding a new cck field.
warning: array_keys() [function.array-keys]: The first argument should be an array in /home/jucaacom/public_html/sites/all/modules/int_meta/int_meta_cck.module on line 39.
warning: Invalid argument supplied for foreach() in /home/jucaacom/public_html/sites/all/modules/int_meta/int_meta_cck.module on line 39.
Also I notice after I unistall a cck field module, it still choosable from the field drop down list from the content type metatag admin page. Seems like adding/deleting cck fields after installation of the meta_tags_cck module remains at the same state when meta_tags_cck is installed.
#5
Is the error you got with BETA5? What kinds of field types are you defining with CCK? What version of PHP?
And how comfortable might you be with editing PHP code for debugging purposes?
#6
hey i have gotten this error with adding a multi reference node field -> http://drupal.org/project/multireference
After adding one of the multireference field type i get that error.
warning: array_keys() [function.array-keys]: The first argument should be an array in /modules/int_meta/int_meta_cck.module on line 39.
warning: Invalid argument supplied for foreach() in /int_meta/int_meta_cck.module on line 39.
Do let me know how i can help. I did some hack on the multireference module to utilize checkboxes instead of select inputs. Anyway the hack is not the cause of the warning, i have already check. I am very comfortable with editing the php code. Using PHP 5 and int_meta beta 7.
Please advice.
#7
This is a report for the Drupal 6 version of the module. If you have problems with the Drupal 5 version, you need to open a different report.
#8
Is the issue valid also for beta7?