Page 17 of 24 FirstFirst ... 71516171819 ... LastLast
Results 161 to 170 of 237
  1. #161
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,691
    Plugin Contributions
    9

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by twitchtoo View Post
    Running SQL 5.6 this mod works great.

    5.7 and this lookup is no longer supported:
    i'm sorry, i just do not agree with that statement....

    Quote Originally Posted by twitchtoo View Post
    Logs error looks like:
    PHP Fatal error: 1055:Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'njpbusin_155f_2018.o.date_purchased' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by ::
    as you can see from the error log, you no doubt have a different setting for mysql 5.6 v mysql 5.7. these setting do not carry over from version to version.

    you can change this mode from the mysql console:

    Code:
    mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
    you can read a bit about it here:

    https://goo.gl/pnB1HW

    else, you can make the change suggested by swguy... although you may have other mysql queries that could fail, as you have different settings in the versions.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #162
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    @CarlWhat These changes will certainly work in local testing but do they work in all hosting environments?
    That Software Guy. My Store: Zen Cart Modifications
    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. #163
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,691
    Plugin Contributions
    9

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    @swguy if you are asking about a shared hosting environment, and the settings of a global config for mysql, we are now getting beyond the resources i have available to test and check. as well as the energy.

    i suppose you bring up an interesting point. hard to imagine a host having different settings for different versions.... but no doubt possible/probable. and pretty easy to tell the host that they have changed the settings across versions.

    that said, i am sure in a shared hosting environment that is properly setup, one could change the config to only affect your account as opposed to the whole server. similar to having one's own php config, i'm positive one could globally change mysql mode configs to ONLY affect their account.... but don't quote me on it...

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #164
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Hello (V1.5.5),

    I made a mistake and uploaded [monthly_sales_report-master-patched] folder to admin.

    After I realized it, I deleted it using C-Panel File manager. So, everything should be removed.

    Then I uploaded contents from [YOUR_ADMIN] folder to admin.

    For some reason I have now twice "Monthly Report" menu in admin:

    Click image for larger version. 

Name:	monthly report.JPG 
Views:	41 
Size:	25.0 KB 
ID:	18033

    But everything is working.

    Is it possible to remove redundant menu, or just leave it along?

    Thank you for your time upfront.

  5. #165
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Looks like the admin/includes/functions/extra_functions/stats_monthly_sales.php is the culprit.

    It checks to see if the stats_monthly_sales page key exists and adds the extra report menu item. It apparently does not check to see if the specific menu item (FILENAME_STATS_MONTHLY_SALES) already exists. Thus your second menu item is registered in the admin_pages table of the database.

    You can use the phpMyAdmin to search the table for FILENAME_STATS_MONTHLY_SALES and delete one of the entries. That should fix it.

  6. #166
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by dbltoe View Post
    Looks like the admin/includes/functions/extra_functions/stats_monthly_sales.php is the culprit.

    It checks to see if the stats_monthly_sales page key exists and adds the extra report menu item. It apparently does not check to see if the specific menu item (FILENAME_STATS_MONTHLY_SALES) already exists. Thus your second menu item is registered in the admin_pages table of the database.

    You can use the phpMyAdmin to search the table for FILENAME_STATS_MONTHLY_SALES and delete one of the entries. That should fix it.
    Thank you for the suggestion.

    I have the dilemma which line to delete, top or bottom?

    Click image for larger version. 

Name:	monthly report table.jpg 
Views:	55 
Size:	30.0 KB 
ID:	18034

    Why, do you think, the file stats_monthly_sales.php was not copied to admin/includes/functions/extra_functions/ in first place?

    All other files were. Is it permission issue?

    Should I copy it manually now?

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

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Looks like a bigger question as they both should be sort 17 if it was actually a duplicate. Instead, it looks like you have another program (mod) loaded that uses the same menu name.

    Never said the file was not copied. I thought the file had created a duplicate entry. Now I see you have two mods loaded.

    No files need to be copied.

    As to a fix....

    Do both the menu items show a result?

    When you click on the entries in the menu, is either result correct, is either incorrect, are both incorrect, or are both correct outputs?


    Using the Developer's Tool Kit, search for the define of FILENAME_STATS_MONTHLY_SALES. There should be two. Post the names of the two files with the define.

  8. #168
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by dbltoe View Post
    Looks like a bigger question as they both should be sort 17 if it was actually a duplicate. Instead, it looks like you have another program (mod) loaded that uses the same menu name.

    Never said the file was not copied. I thought the file had created a duplicate entry. Now I see you have two mods loaded.

    No files need to be copied.

    As to a fix....

    Do both the menu items show a result?

    When you click on the entries in the menu, is either result correct, is either incorrect, are both incorrect, or are both correct outputs?


    Using the Developer's Tool Kit, search for the define of FILENAME_STATS_MONTHLY_SALES. There should be two. Post the names of the two files with the define.
    Do both the menu items show a result? -> YES

    When you click on the entries in the menu, is either result correct -> YES

    is either incorrect -> NO

    are both incorrect -> NO

    or are both correct outputs? -> YES

    Search for define('FILENAME_STATS_MONTHLY_SALES' returns one file:

    admin/includes/languages/english/extra_definitions/stats_monthly_sales.php

    Search for FILENAME_STATS_MONTHLY_SALES adds second file:


    admin/stats_monthly_sales.php

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

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Both admin files are correct. One is the define of the variable and the other places the variable on the report page. HOWEVER>> If you searched for FILENAME_STATS_MONTHLY_SALES, you should have come up with 6 times it shows up. Only one of those should have been the define in admin/includes/languages/english/extra_definitions/stats_monthly_sales.php (which you said you found).

    Your response makes me ask if you saw the other five places the variable is used in the mod.

    And, the one question I left out before was:

    Do the two menu entries bring up the same page? IOW, does it make no difference which item you click on? Or, does one bring up different information than the other.

    If they both bring up the same page, you probably have a holdover from an earlier mod. And that brings us back to the five times the variable should have shown up without the define.

    If --
    1. Both menu items bring up the same data AND
    2. You have five variable locations and 1 define when searching with Developers Tool

    Then, I'd delete the item in the table that has the sort_order of 1000.

    If they don't bring up the same data, we'll need to look further.

  10. #170
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by dbltoe View Post
    Both admin files are correct. One is the define of the variable and the other places the variable on the report page. HOWEVER>> If you searched for FILENAME_STATS_MONTHLY_SALES, you should have come up with 6 times it shows up. Only one of those should have been the define in admin/includes/languages/english/extra_definitions/stats_monthly_sales.php (which you said you found).

    Your response makes me ask if you saw the other five places the variable is used in the mod.

    And, the one question I left out before was:

    Do the two menu entries bring up the same page? IOW, does it make no difference which item you click on? Or, does one bring up different information than the other.

    If they both bring up the same page, you probably have a holdover from an earlier mod. And that brings us back to the five times the variable should have shown up without the define.

    If --
    1. Both menu items bring up the same data AND
    2. You have five variable locations and 1 define when searching with Developers Tool

    Then, I'd delete the item in the table that has the sort_order of 1000.

    If they don't bring up the same data, we'll need to look further.
    Thank you for looking at this.

    Back to beginning.
    When I scan (search) on my hard drive for key word stats_monthly_sales original installation folder of module (after download) I get this result:

    1. /YOUR_ADMIN/includes/languages/english/extra_definitions/stats_monthly_sales.php

    2. /YOUR_ADMIN/includes/languages/english/stats_monthly_sales.php

    3. /YOUR_ADMIN/includes/functions/extra_functions/stats_monthly_sales.php

    4. /YOUR_ADMIN/includes/boxes/extra_boxes/stats_monthly_sales_reports_dhtml.php

    5. /YOUR_ADMIN/stats_monthly_sales.php

    There are 5 files found.

    After I FTP files to Zen Cart admin folder and make search in Zen Cart:

    Click image for larger version. 

Name:	monthly report search 2.JPG 
Views:	26 
Size:	16.9 KB 
ID:	18035

    I get this result:

    Click image for larger version. 

Name:	monthly report result.jpg 
Views:	32 
Size:	68.7 KB 
ID:	18036

    One file is missing: /YOUR_ADMIN/includes/functions/extra_functions/stats_monthly_sales.php

    Zen Car does not see file in extra_functions folder (?)

    If I search as you advise for FILENAME_STATS_MONTHLY_SALES

    Click image for larger version. 

Name:	monthly report search.JPG 
Views:	33 
Size:	17.2 KB 
ID:	18037

    The result is:

    Click image for larger version. 

Name:	monthly report result 2.jpg 
Views:	34 
Size:	53.1 KB 
ID:	18038

    Now 2 files are missing in /english/ and /extra_functions/ folders

    I do not see any different permission on these folders compare to others.

    Both menus when clicked return absolutely the same result.

    I am afraid to delete the line 1000 due to my illiteracy.
    But 2 menus, if there is no harm to other areas, will not stop me sleeping at night.

    If there is no damage, may be we should stay as is (?)

    I experimented a little and methodically deleted all files which came with this module.
    Both menus disappeared.
    After uploading all files again they appeared again.

    Thank you.

 

 
Page 17 of 24 FirstFirst ... 71516171819 ... LastLast

Similar Threads

  1. Local Sales Tax Mod - Support Thread
    By LadyHLG in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 634
    Last Post: 8 Dec 2023, 06:59 PM
  2. v151 codeTrio Sales Summary Graph v1.0 [Support Thread]
    By imranulh in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 25 Jul 2020, 04:00 AM
  3. v151 Sales Report with Graphs support thread
    By JacobBushnell in forum Addon Admin Tools
    Replies: 17
    Last Post: 25 Jul 2019, 02:27 PM
  4. Monthly Sales Report
    By Bruce1952 in forum General Questions
    Replies: 3
    Last Post: 10 Aug 2010, 01:06 PM
  5. Sales Tax Summary Report
    By fred_artemis in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Mar 2008, 02:54 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