"An illegal choice has been detected. Please contact the site administrator."
This is what comes up when I try change the access control's for Table Manager...any idea why?

Comments

pobster’s picture

Hmmmm I've absolutely no idea what that's all about... Please could you provide:

Your table manager version - from the line at the top of the module that looks like this:

// $Id: tablemanager.module,v 1.48 2006/06/19 16:04:45 pobster Exp $

And then if you could please write a little bit about:

  • What system you're using (os, mysql, php)
  • How many tables you have in total (and their table names)
  • Could you post the offending tables serialized data from the header column in your tablemanager table from your database (purely so I can try and replicate your problem)
  • Please could you note whether there are any particular circumstances that can easily replicate the problem
  • Also please try updating to the latest CVS version and seeing if this fixes your problem

If updaing fixes your problem PLEASE POST to let me know. There's nothing worse than me thinking I have a problem when it's something I've already noticed and fixed...

Thank you

Pobster

Anonymous’s picture

Today, I was switching my site and database over to a new host. Before I was using a free one that had limitations. I no longer have that error message. As a result, I am assuming that the errors were being formed as a result of my host not allowing certain permissions.

pobster’s picture

Assigned: » pobster
Status: Active » Fixed

If that were the case then nothing would work properly not just my module? I don't do anything differently to anybody else with regards to the access page? In fact mine is nigh on identical to how the flexinode module works...

I'll close this ticket, but I'm not overly happy that this problem is fixed... (Mind you, I'm also not convinced that the problem is with my module!)

Pobster

pobster’s picture

Status: Fixed » Closed (fixed)
Anonymous’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

Okay, I have the problem again. Guess you were right before.

// $Id: tablemanager.module,v 1.41 2006/06/12 21:21:52 pobster Exp $

I am using mysql 4.1 and php.

I have 3 tables:

Mall Openings:
Mall Name Largest Shop in Mall Owner of Mall Positions Open

looking for a mall:
Username Shop size Willing to Stock Prefer to Stock

r99 owner list:
r99 owner

No data in any of them.
I have no idea what you can do to replicate the problem. I simply try to set Access Controll and it won't let me.

Anonymous’s picture

Oh yea and I CAN check/uncheck the following:
administer tables
list tables

But CAN'T check/uncheck these:
create 'Mall Openings' content
create 'looking for a mall' content
create 'r99 owner list' content
edit any 'Mall Openings' content
edit any 'looking for a mall' content
edit any 'r99 owner list' content
edit own 'Mall Openings' content
edit own 'looking for a mall' content
edit own 'r99 owner list' content

pobster’s picture

I'm still not entirely convinced that the problem stems from my module, but I do (now) know that I've messed up some of my access restrictions. As to whether this would cause your issue... I doubt it... But then again, what do I know ;o)

Could you try this version of tablemanager.module:

http://www.ciclosuno.com/tablemanager.cvs

Now bear in mind that this is a development version and so is a little bit suspect about working correctly... I'd suggest that if it solves your issue, you let me know but still go back to using the old version temporarily until I can release a fix (which will still be today).

Pobster
PS. If you trust me, I'd love to take a look at your site and tablemanager for myself ;o) You can contact me through Drupals contact form (if you want, I won't be offended if you're not keen!)

pobster’s picture

Hmmmm... http://drupal.org/search/node/An+illegal+choice+has+been+detected.+Pleas....

Okay... I'm coming up with a theory... Is the user who is getting these error messages NOT the root user? ie. NOT user 1?

If not, then I dunno :o( Perhaps you could list all the other modules you've got enabled for your site?

Pobster

Anonymous’s picture

Hey, your first link did not work "Requested Page Not Found". That's for the Beta version of tables mangager.

pobster’s picture

Hmmmm that's because I posted it 12 hours ago and thought you'd have got it by now ;o)

Try:

http://www.ciclosuno.com/tablemanager.cvs2

Pobster

Anonymous’s picture

Oh and not sure if this is any better of an error...what shows up in error log:
Illegal choice create \'Mall Openings\' content in 2 element.
Illegal choice edit own \'r99 owner list\' content in 2 element.
Illegal choice create \'looking for a mall\' content in 2 element
etc

And yes, I am doing this from the root user, user 1.

Anonymous’s picture

Oh and newbie question here, what do I do with a CVS file, what's it for?

pobster’s picture

Just rename your module file to tablemanager.module.bak or whatever, then put the cvs file into the folder and rename it to tablemanager.module and then perhaps empty your cache (just for fun!)

Let me know how it goes...

Pobster

Anonymous’s picture

Alright, I put it in...unfortunitly it didn't work.

pobster’s picture

Are you still using version 1.41 btw? That's waaaaay old now if you are...

I'm wondering whether you may be having problems regarding the use of apostrophes in the access settings... I've not come across this before though? Only that your error logs show them escaped like this /' /' just a thought...

Do you know what version of php you're using? And also what operating system you're using?

Pobster

Anonymous’s picture

here, I sent you an email, let me know.

pobster’s picture

Fixed in version 1.58 problem with encoding escaping apostrophes in user permissions. They're not required, only there for neatness so I just removed them.

Pobster

pobster’s picture

Status: Active » Fixed
pobster’s picture

Status: Fixed » Closed (fixed)