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

CommentFileSizeAuthor
#3 Page.png25.86 KBArshad Vayani

Comments

Arshad Vayani’s picture

Title: Getting error while updating database!! » Getting error when adding another field

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!

fractile81’s picture

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!

Arshad Vayani’s picture

StatusFileSize
new25.86 KB

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

dropchew’s picture

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.

fractile81’s picture

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?

buzzybron’s picture

Version: 6.x-1.0-beta2 » 5.x-1.0-beta7
Component: Code » int_meta_cck.module
Priority: Critical » Normal

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.

avpaderno’s picture

Version: 5.x-1.0-beta7 » 6.x-1.0-beta2

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.

avpaderno’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta7
Status: Active » Postponed (maintainer needs more info)

Is the issue valid also for beta7?

avpaderno’s picture

Version: 6.x-1.0-beta7 » 6.x-1.x-dev
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

I am closing this issue, which is for a not supported Drupal version.