Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2010
    Posts
    79
    Plugin Contributions
    0

    Default i got an error message "PHP Fatal error: 1055:Expression #1......"

    ZC 1.5.1
    PHP 5.6

    i moved hosting company.

    However, i can not see bottom of product pages.

    so i checked log file.

    there is an error message like below.

    how can i solve this problem without ZC upgrade.

    thanks.

    [19-Jul-2019 03:23:15 UTC] PHP Fatal error: 1055:Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'thefollo_db.o.date_purchased' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by :: select p.products_id, p.products_image
    from orders_products opa, orders_products opb, orders o, products p
    where opa.products_id = '111'
    and opa.orders_id = opb.orders_id
    and opb.products_id != '111'
    and opb.products_id = p.products_id
    and opb.orders_id = o.orders_id
    and p.products_status = 1
    group by p.products_id
    order by o.date_purchased desc
    limit 3 in /home/thefollow/public_html/includes/classes/db/mysql/query_factory.php on line 120

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: i got an error message "PHP Fatal error: 1055:Expression #1......"

    You'll need to contact your host and ask them to disable ONLY_FULL_GROUP_BY in your MySQL config files.
    You're probably using MySQL 5.7.5 or higher which has this enabled by default, and your previous server was probably running an older version on MySQL.

    Unless you have root access and are comfortable using console, this is something for your host to change for you.

  3. #3
    Join Date
    Jan 2010
    Posts
    79
    Plugin Contributions
    0

    Default Re: i got an error message "PHP Fatal error: 1055:Expression #1......"

    Quote Originally Posted by balihr View Post
    You'll need to contact your host and ask them to disable ONLY_FULL_GROUP_BY in your MySQL config files.
    You're probably using MySQL 5.7.5 or higher which has this enabled by default, and your previous server was probably running an older version on MySQL.

    Unless you have root access and are comfortable using console, this is something for your host to change for you.
    Thank you so much

    you solved my big problem...:)

    Thanks again balihr

    Have a good one.

  4. #4
    Join Date
    Dec 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: i got an error message "PHP Fatal error: 1055:Expression #1......"

    I have a similar issue, but in my case the message is displaying on the sidebar of the shopping cart, not in the log file, even after the host has "disabled ONLY_FULL_GROUP_BY in your MySQL config files."

    Any other ideas?

    Zen Cart v1.3.9g/v1.3.9g
    MySQL 5.7.26
    PHP 7.27
    PHP 4.8.5


    David

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: i got an error message "PHP Fatal error: 1055:Expression #1......"

    Quote Originally Posted by greenman161 View Post
    I have a similar issue, but in my case the message is displaying on the sidebar of the shopping cart, not in the log file, even after the host has "disabled ONLY_FULL_GROUP_BY in your MySQL config files."

    Any other ideas?

    Zen Cart v1.3.9g/v1.3.9g
    MySQL 5.7.26
    PHP 7.27
    PHP 4.8.5


    David
    You're not going to want to hear this, but perhaps upgrading to a version of Zen Cart that will actually run under those newer versions of MySQL and PHP? v139g is coming up on its 9th birthday.

  6. #6
    Join Date
    Dec 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: i got an error message "PHP Fatal error: 1055:Expression #1......"

    Thanks.

    Will run the upgrade.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: i got an error message "PHP Fatal error: 1055:Expression #1......"

    Best to follow the instructions at https://www.zen-cart.com/entry.php?3...d-of-upgrading

 

 

Similar Threads

  1. Replies: 7
    Last Post: 16 Dec 2018, 10:02 PM
  2. v154 PHP Fatal error: 1055 p.products_image
    By Rock-n-Roll in forum Basic Configuration
    Replies: 5
    Last Post: 18 Nov 2015, 05:27 AM
  3. v151 "PHP Fatal error: 1065:Query was empty" in admin
    By plot0808 in forum General Questions
    Replies: 2
    Last Post: 4 Feb 2014, 09:42 AM
  4. "Fatal error" message - can;t save edited files
    By musicman77 in forum Customization from the Admin
    Replies: 16
    Last Post: 29 Jun 2010, 05:11 PM
  5. Replies: 8
    Last Post: 3 Jun 2007, 03:51 PM

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