Page 49 of 53 FirstFirst ... 394748495051 ... LastLast
Results 481 to 490 of 524
  1. #481
    Join Date
    Dec 2012
    Location
    Singapore
    Posts
    27
    Plugin Contributions
    0

    Default Re: Export Shipping & Order Information v1.5.0

    Hi I just downloaded the latest version of the "Export Shipping & Order Information" : export_shipping_information-ESIv1.5.0.
    I am using the version for v1.5.7. I have no problem exporting for option : "1 Product per row" but when I select "1 Order per row" it throws out an error.
    The message is :

    "WARNING: An Error occurred, please refresh the page and try again.If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields."

    I tried all options but still hit an error. Anyone facing the same issue? Would appreciate any help I can get.

    Many thanks in advance.

    Best regards

    Noi

  2. #482
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,292
    Plugin Contributions
    125

    Default Re: Export Shipping & Order Information v1.5.0

    This means there's a debug log in your logs folder that shows the issue. Please post the log.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #483
    Join Date
    Dec 2012
    Location
    Singapore
    Posts
    27
    Plugin Contributions
    0

    Default Re: Export Shipping & Order Information v1.5.0

    Quote Originally Posted by swguy View Post
    This means there's a debug log in your logs folder that shows the issue. Please post the log.
    I see. Below is the log:

    [14-Feb-2024 21:43:16 Asia/Singapore] Request URI: /admin_noi123/index.php?cmd=shipping_export&page=2, IP address: 202.166.24.46
    #1 trigger_error() called at [/home/beads304/public_html/includes/classes/db/mysql/query_factory.php:170]
    #2 queryFactory->show_error() called at [/home/beads304/public_html/includes/classes/db/mysql/query_factory.php:142]
    #3 queryFactory->set_error() called at [/home/beads304/public_html/includes/classes/db/mysql/query_factory.php:269]
    #4 queryFactory->Execute() called at [/home/beads304/public_html/admin_noi123/shipping_export.php:211]
    #5 require(/home/beads304/public_html/admin_noi123/shipping_export.php) called at [/home/beads304/public_html/admin_noi123/index.php:11]
    --> PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC
    ORDER BY max_num_of_products DESC
    LIMIT 1' at line 4 :: SELECT COUNT( * ) AS max_num_of_products
    FROM (orders o LEFT JOIN orders_products op ON o.orders_id = op.orders_id), orders_total ot
    WHERE o.orders_id = ot.orders_id
    AND ot.class = 'ot_shipping' GROUP BY o.orders_id ASC
    ORDER BY max_num_of_products DESC
    LIMIT 1 ==> (as called by) /home/beads304/public_html/admin_noi123/shipping_export.php on line 211 <== in /home/beads304/public_html/includes/classes/db/mysql/query_factory.php on line 170.

    I don't understand though. Please advise.

    Many Thanks

    Noi
    Last edited by noi.ng; 15 Feb 2024 at 10:36 AM.

  4. #484
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,365
    Plugin Contributions
    94

    Default Re: Export Shipping & Order Information v1.5.0

    The query's GROUP BY clause doesn't support an ASC qualifier:
    Code:
    SELECT COUNT( * ) AS max_num_of_products
                    FROM (orders o LEFT JOIN orders_products op ON o.orders_id = op.orders_id), orders_total ot
                    WHERE o.orders_id = ot.orders_id
                    AND ot.class = 'ot_shipping' GROUP BY o.orders_id ASC
                    ORDER BY max_num_of_products DESC
                    LIMIT 1
    I've got no clients who use this plugin, so don't know where in the code that "ASC" is added, but removing that will remove that MySQL error.

  5. #485
    Join Date
    Dec 2012
    Location
    Singapore
    Posts
    27
    Plugin Contributions
    0

    Default Re: Export Shipping & Order Information v1.5.0

    Quote Originally Posted by lat9 View Post
    The query's GROUP BY clause doesn't support an ASC qualifier:
    Code:
    SELECT COUNT( * ) AS max_num_of_products
                    FROM (orders o LEFT JOIN orders_products op ON o.orders_id = op.orders_id), orders_total ot
                    WHERE o.orders_id = ot.orders_id
                    AND ot.class = 'ot_shipping' GROUP BY o.orders_id ASC
                    ORDER BY max_num_of_products DESC
                    LIMIT 1
    I've got no clients who use this plugin, so don't know where in the code that "ASC" is added, but removing that will remove that MySQL error.
    I see. Guess I will not use the plugin then since i also have no idea. Appreciate your input.

  6. #486
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    309
    Plugin Contributions
    6

    Default Re: Export Shipping & Order Information v1.5.0

    SELECT COUNT( * ) AS max_num_of_products
    FROM (orders o LEFT JOIN orders_products op ON o.orders_id = op.orders_id), orders_total ot
    WHERE o.orders_id = ot.orders_id
    AND ot.class = 'ot_shipping' GROUP BY o.orders_id ASC
    ORDER BY max_num_of_products DESC
    Quote Originally Posted by noi.ng View Post
    I see. Guess I will not use the plugin then since i also have no idea. Appreciate your input.
    That error in the code has been there since v1.2.2 with zc1.3.7. I'll fix it ASAP and post a link to my GitHub file when completed.

    Can you tell me what database you are using? The code error exists but I haven't managed to trigger it with either MariaDB or MySQL.
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  7. #487
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    309
    Plugin Contributions
    6

    Default Re: Export Shipping & Order Information v1.5.0

    The corrected Export Shipping & Order Information v1.5.0 file for zcV157 is located in https://github.com/OldNGreyBMR/expor....7/files/admin

    The zc158 version is located in https://github.com/OldNGreyBMR/expor...n/v1.5.0/admin
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  8. #488
    Join Date
    Dec 2012
    Location
    Singapore
    Posts
    27
    Plugin Contributions
    0

    Default Re: Export Shipping & Order Information v1.5.0

    Quote Originally Posted by OldNGrey View Post
    That error in the code has been there since v1.2.2 with zc1.3.7. I'll fix it ASAP and post a link to my GitHub file when completed.

    Can you tell me what database you are using? The code error exists but I haven't managed to trigger it with either MariaDB or MySQL.
    Thank you!

    It says : Version mysqlnd 5.0.12-dev - 20150407 - $Id:

    Hope this helps.
    Otherwise, please tell me where I can retrieve the data.

    Best regards

    Noi

  9. #489
    Join Date
    Dec 2012
    Location
    Singapore
    Posts
    27
    Plugin Contributions
    0

    Default Re: Export Shipping & Order Information v1.5.0

    Quote Originally Posted by OldNGrey View Post
    The corrected Export Shipping & Order Information v1.5.0 file for zcV157 is located in https://github.com/OldNGreyBMR/expor....7/files/admin

    The zc158 version is located in https://github.com/OldNGreyBMR/expor...n/v1.5.0/admin
    Thanks so much for the corrections!
    It works for "1 order per row' now as well.

    However, a new error pops up. This time it pertains to the date range chosen.
    The custom date range is supposedly optional. Here is the error msg:

    --> PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BY o.orders_id ORDER BY orders_id ASC' at line 5 :: SELECT DISTINCT o.orders_id, sum(-ABS(round(ot.value,2))) AS value
    FROM (orders o LEFT JOIN orders_total ot ON o.orders_id = ot.orders_id)
    WHERE o.orders_id = ot.orders_id
    AND ot.class IN ('ot_coupon' , 'ot_custom', 'ot_group_pricing', 'ot_payment_type', 'ot_paymentmodulefee')
    AND ot.orders_id = 1GROUP BY o.orders_id ORDER BY orders_id ASC ==> (as called by) /home//public_html/admin/shipping_export.php on line 585 <== in /home//public_html/includes/classes/db/mysql/query_factory.php on line 170.

    Note: Path has been edited to hide actual.

    Prior to your version, I would export for all orders to date with by leaving them blank, but now I have to specifically specify the date range. Not a big issue now as your revised version still meet my needs but I just point out.

    Many thanks for your help & all the inputs from the other members!

    Noi

  10. #490
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    309
    Plugin Contributions
    6

    Default Re: Export Shipping & Order Information v1.5.0

    Aaargh.
    Code:
    AND ot.orders_id = 1GROUP BY o.orders_id ORDER BY orders_id ASC ==> (as call
    There is a space missing from the front of the GROUP statement.
    I have updated the GitHub file https://github.com/OldNGreyBMR/expor....7/files/admin

    Please let me know if you have any other problems with this. I couldn't operate without it for monthly reconciliations.
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

 

 
Page 49 of 53 FirstFirst ... 394748495051 ... LastLast

Similar Threads

  1. Export Shipping+Order Information plugin not exporting some orders
    By woemlavy in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 22 Mar 2013, 02:01 PM
  2. v138a Trouble Installing Export Shipping+Order Information
    By scripto in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Jan 2013, 11:36 PM
  3. Export Shipping/Order Information - dump down to 2 sheets or XML
    By sbbemn in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Oct 2012, 05:37 PM
  4. Export Shipping / Order Information
    By digruk in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Oct 2011, 08:25 PM
  5. Export Shipping Order Information doesn't include downloadable products?
    By rcaroe in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 31 Jul 2010, 05:14 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