Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    red flag Problems in attribute controller - no option values

    Hello,

    I'm stuck - in my local xampp installation everything is working fine. But in production system the attribute controller does not work!

    I can insert new option names and corresponding values. But in the attribute controller the field beside the option name remains empty - no field with option values appears after I chose an option name.

    If i try to save the page without option value I get an error message - Warning: Invalid argument supplied for foreach() in /mnt/web8/xxx/attributes_controller.php on line 190 -
    which is probably normal without any option value submitted. Any help is highly appreciated ;-) Where is my option value field?


    Regards, Miriam

  2. #2
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Problems in attribute controller - no option values

    Mhm... I am not sure what caused the problem - after several tryouts I reinstalled a backup and the error was gone.

    Regards, Miriam

  3. #3

    Default Re: Problems in attribute controller - no option values

    Quote Originally Posted by miriam_t View Post
    Mhm... I am not sure what caused the problem - after several tryouts I reinstalled a backup and the error was gone.

    Regards, Miriam
    I just had the same problem. The solution was simple here: I had forgotten to select an option name and option value before hitting the insert button. (still it took me half an hour with the debugger to find that out)
    In this case the array field $_POST['values_id'] is not defined (that is what the error message refers to) and the foreach() command can not be executed.

    I found this problem mentioned a couple of times (not only here but also in the german zen-cart forum)
    It might help to check if $_POST['values_id'] is defined and create a more specific error message in case it is not.

    Note: the error is a bit difficult to spot when only a single attribute with a single option value exists in the shop (which can often be the case when downloads are sold)
    Then it looks as if the option value is already selected when in fact it is not.

    Thanks for listening!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problems in attribute controller - no option values

    Thanks for the update and for detailing the situation on this ...

    We will be looking into this for future releases ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v155 Attribute controller - error message when adding attribute values
    By rustwood in forum General Questions
    Replies: 8
    Last Post: 11 Jul 2016, 10:26 PM
  2. Option values in attributes controller sort order
    By Congerman in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 18 Feb 2014, 01:21 AM
  3. In Attribute Controller, Option Value is empty for Text Option
    By grossd in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Nov 2011, 07:39 PM
  4. Alphabetical order of Option Values in Attribute Controller
    By D-man in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 20 Dec 2008, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg