inclusion of list field causes error in admin

6 posts by 3 authors in: Forums > CMS Builder
Last Post: February 17, 2011   (RSS)

By Deborah - February 15, 2011

Hi. Hoping someone can help me here as I've not been able to find this same issue in the forum.

I have a section editor (home_pg_random_ads) for which I have specified a list field from another table (graphics_home_pg_random_ads) for image selection.

I can upload images to the (graphics_home_pg_random_ads) editor, but when I choose to modify or create a new ad in the (home_pg_random_ads) editor, I see the following error message:

Warning: Cannot modify header information - headers already sent by (output started at /vservers/mysite/htdocs/cmsmysite/lib/menus/header.php:13) in /vservers/mysite/htdocs/cmsmysite/lib/database_functions.php on line 587 There was an error creating the list field. MySQL Error: Unknown column 'file_upload' in 'field list'

*path edited for security
---------

Section editor for upload of graphics:
graphics_home_pg_random_ads

Upload textfield title:
title

Upload field name:
file_upload

---------

Section editor for web page display:
home_pg_random_ads

List field for images (pulldown):
graphic_for_ad

List Options: Get options from database
Section Tablename: graphics_home_pg_random_ads
Use this field for option values: file_upload
Use this field for option labels: title

---------

I don't know if this is an issue with version 2.04 or if I'm doing something incorrect (most likely the latter).

Any advice would be greatly appreciated.

~ Deborah

Re: [Deborah] inclusion of list field causes error in admin

By Deborah - February 16, 2011

Please disregard my prior post.

I'm not 100% sure, but I believe the admin error was due to my of the pound symbol (#) in the 'title' field of the file_upload field, combined with my use of 'title' for value. I removed the # and am using 'num' for values.

Deborah

Re: [Deborah] inclusion of list field causes error in admin

By Jason - February 16, 2011

Hi Deborah,

Is everything working for you now? Let us know if you run into any issues.

thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] inclusion of list field causes error in admin

By Deborah - February 16, 2011

Jason,

Thanks for the follow up. Yes. All is working now. On to the next challenge!

~ Deborah

Re: [Rusty] inclusion of list field causes error in admin

By Jason - February 17, 2011

Hi Rusty,

The error your experiencing is from MySQL:
MySQL Error: Unknown column 'img' in 'field list'

Somewhere you're trying to select a field called img that doesn't exist.

Hope this helps shed some light on the issue.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/