Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default [Done v156a] Admin>Configuration Unknown column 'val_function' in 'field list

    PHP
    PHP Version: 7.1.25 (Zend: 3.1.0)
    Here are a few things I have tried to change under configuration menu:

    Trying to change Down For Maintenance to False
    My Store>Telephone-Customer service - add info
    Customer Details>Email Salutation, etc etc etc

    WARNING: An Error occurred, please refresh the page and try again.

    Error log says

    [27-Dec-2018 23:32:39 UTC] Request URI: /admin/configuration.php?gID=1&cID=3&action=save, IP address: 67.143.193.32
    #1 trigger_error() called at [/home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php:171]
    #2 queryFactory->show_error() called at [/home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php:143]
    #3 queryFactory->set_error() called at [/home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php:270]
    #4 queryFactory->Execute() called at [/home/xxxxx/public_html/admin/configuration.php:26]

    [27-Dec-2018 23:32:39 UTC] PHP Fatal error: 1054:Unknown column 'val_function' in 'field list' :: SELECT val_function FROM configuration WHERE configuration_id = '3' ==> (as called by) /home/xxxxx/public_html/admin/configuration.php on line 26 <== in /home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php on line 171

    Is anyone else experiencing this?

    Thanks!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Admin>Configuration Unknown column 'val_function' in 'field list

    Quote Originally Posted by stellarweb View Post
    PHP
    PHP Version: 7.1.25 (Zend: 3.1.0)
    Here are a few things I have tried to change under configuration menu:

    Trying to change Down For Maintenance to False
    My Store>Telephone-Customer service - add info
    Customer Details>Email Salutation, etc etc etc

    WARNING: An Error occurred, please refresh the page and try again.

    Error log says

    [27-Dec-2018 23:32:39 UTC] Request URI: /admin/configuration.php?gID=1&cID=3&action=save, IP address: 67.143.193.32
    #1 trigger_error() called at [/home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php:171]
    #2 queryFactory->show_error() called at [/home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php:143]
    #3 queryFactory->set_error() called at [/home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php:270]
    #4 queryFactory->Execute() called at [/home/xxxxx/public_html/admin/configuration.php:26]

    [27-Dec-2018 23:32:39 UTC] PHP Fatal error: 1054:Unknown column 'val_function' in 'field list' :: SELECT val_function FROM configuration WHERE configuration_id = '3' ==> (as called by) /home/xxxxx/public_html/admin/configuration.php on line 26 <== in /home/xxxxx/public_html/includes/classes/db/mysql/query_factory.php on line 171

    Is anyone else experiencing this?

    Thanks!
    Only when/if the upgrade hasn't completed successfully (ie. not all queries have been run).

    What is the history of this particular site and in particular the database?.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Admin>Configuration Unknown column 'val_function' in 'field list

    For this particular issue (and this one issue only) the following query could be run in the install sql patches under the tools menu:

    Code:
    ALTER TABLE configuration ADD val_function text default NULL AFTER set_function;
    Then you should be able to at least work with the down for maintenance section, though shouldn't the store already be in down for maintenance when doing the upgrade?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Admin>Configuration Unknown column 'val_function' in 'field list

    The failure to add the val_function field in the configuration table is most likely caused by a prior MySQL error about invalid dates in the existing records of that table.

    Running the command shown at https://github.com/zencart/zencart/c...40f1db63319d57 will fix those dates.
    After that you can run the ALTER TABLE statement as mentioned above.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: Admin>Configuration Unknown column 'val_function' in 'field list

    Whoo hoo!! That worked! Never seen that happen before - the install and upgrade went through the way it normally does, no issues, so I was surprised when I started trying to change things that it wouldn't work.
    Thanks!!

 

 

Similar Threads

  1. v155 Unknown column 'stripe_card_token' in 'field list'
    By Ron44124 in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 11 Nov 2016, 06:59 PM
  2. Unknown column 'zen_order_id' in 'field list'
    By rramirezb in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 4 Sep 2008, 07:56 PM
  3. 1054 Unknown column 'products_prid' in field list
    By luckykat in forum General Questions
    Replies: 1
    Last Post: 21 May 2006, 01:14 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR