I just recently ran across this module and I am hoping that it will do what I am aiming to do on a website that I am building. Going through the steps in testing out the module though I have noticed a few errors.

1. I get

"user warning: Duplicate entry '' for key 'PRIMARY' query: INSERT INTO flag_lists_types (name) VALUES ('fl_template_test2') in /var/www/html/sites/xxxxxx/modules/contrib/flag_lists/flag_lists.admin.inc on line 328."

when creating a new template.

2. I get

"The flaggable content type(s) "0" is(are) already assigned to the template(s) "fl_template_test." A content type may be assigned to only one template. To reassign a content type you must first remove its other assignment."

when trying to recreate a template with the same name of one that I had before, but had deleted. I created a template called 'test'. I deleted that template after playing with it for a bit, then later went back to add a new template. I decided to name it 'test' again since I had deleted the old one. It doesn't let me assign content types to it though after it has been created and deleted already. I created a 'test2' template and it let me assign content types just fine.

3. I get an HTTP 500 error when trying to add a node to a created flag list. I can create/edit/delete the flag list name just fine, but I get a javascript alert box with the 500 error in it anytime I try to add a node to the list.

Thanks for this module. I am looking forward to it continuing to mature and advance!

Comments

awolfey’s picture

Thanks for trying this and reporting back. Please use the dev version until there is a recommended official release. Let me know if you still have these problems on the dev version.

bocaj’s picture

Thanks for your reply awolfey. I tried out the dev release and things appear to be, somewhat better.

1. I don't get that error anymore.

2. I dont' get that error anymore either.

3. I don't get a 500 error, but I get a 200 error, which really isn't an error. I am assuming that the text in the javascript alert() box is something that you had configured to test things? This is the message in the alert() box: An HTTP error 200 occurred.
http://localhost/sandbox/flag-lists/flag/flag_lists_1_1/1?destination=no...
However, I do see at admin/build/flags/lists/list that the node is listed, but there is no notification of this in the block on the node's page.

Also, it seems like the first time I enable the flag_lists module and create a new template, under admin/build/flags/edit/fl_template_[name of template] after creating the list name, the Display options fieldset contains the three available options in the flag module plus an "Array" option. Leaving this alone (set to Array) seems to work ok, but then when you create other flag lists the Display options fieldset just says "Unlike normal flags, lists are only displayed in a block provided by this module or in views blocks. See the block admin page to place the block." I understand what this is doing, since you don't want admins to select a display option, but when the first one gives options and the following ones don't it can be somewhat confusing.

Thanks again for your help and time on this module. I think it will be a great addon to Drupal and to the flag module!

bocaj’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
awolfey’s picture

I don't recall seeing this, but I will try to duplicate. You might try a fresh install of the module, and make sure all tables and variables are gone.

awolfey’s picture

Status: Active » Needs review

I found some problems with template creation and fixed them, but I couldn't reproduce your js error. Can you try again and let me know?

I also changed a key in the flag_lists_types table, so you'll need to reinstall or update manually. I'm not going to bother with module updates until it's a bit more stable an in wider use.

Thanks

awolfey’s picture

Status: Needs review » Postponed (maintainer needs more info)
jbangerter’s picture

I also ran into this error.

I found this code in flag.js, so I backed it up and replaced it with a blank file.

Tried again, and this was returned

Fatal error: Call to undefined method flag_node::access() in (...drupal)/modules/flag_lists/flag_lists.module on line 861

It is attempting to call an undefined method (access) from a class that is provided through the parameter.
I'm too tired to find which class that is right now. More later, if I get time.

awolfey’s picture

Title: Errors in List Creation and Adding to List » Adding to List returns http 200 error

jbangerter,

You can't use flag_lists without flag.js. Please restore that, and then provide steps to duplicate the error you're seeing.

Thanks

jbangerter’s picture

After installing, I moved the list block element to the content section of one page on my site. I created a new list as user/1, named standard. Upon clicking "Add to your Standard Word Lists" the http 200 "error" came up.

Since this message came from a function in flag.js, I replaced the file with a blank to see if any other helpful error messages might show.

rosko’s picture

I also had the 200 error and similar behavior. The problem was I was using Flag module 6.x-1.3 instead of the required 6.x-2.0-beta5 from 2011.

awsfanboy’s picture

Assigned: Unassigned » awsfanboy
Category: bug » support
Priority: Normal » Critical

guys i am also getting the same error ,i am using this valuable module for a Stock photo website ,you every one know in stock photo web site they have a lightboxes funcion ,which means we can add favorite images in a our own lightbox and we can email it ,so i am trying to do the same thing using these modules ,i need some helps please ,this is very urgent

awolfey’s picture

Assigned: awsfanboy » Unassigned

arshadcreed, please confirm you're using the 2.x version of flag and describe the steps to reproduce the error you're seeing.

awsfanboy’s picture

Assigned: Unassigned » awsfanboy

@ awolfey ,yeah i am using 2.x version ,and i am duing a stock photo website ,you know in stock photo sites they have a function call "Lightboxes" (not jquery lightboxes ) ,i mena we can create unlimited lightboxes and email to friends those functions ,please help me to figure out this issue

awolfey’s picture

arshadcreed: Please list the exact versions of drupal, flag and flag_lists. Then list the steps you took to configure flag and flag lists. Then list the steps to recreate the error. Otherwise, I can't really help because I've never had the error before.

awsfanboy’s picture

hey thanks i fixed that error :) ..and i am using drupal 6.x and flag 2.x flag list 1.x ..now i am stuck in that Lightboxes issue ,if you have any idea or suggestions please give me some helps

awolfey’s picture

Assigned: awsfanboy » Unassigned
Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I'm closing the issue. If anyone can give steps to reproduce the 200 error I'll look at it again. @arshadcreed I'm not sure what you're requirements are, but it sounds like a general support request and not a flag_lists issue, so I suggest you try the forums or IRC support.

awsfanboy’s picture

ok thanks