Page 72 of 87 FirstFirst ... 2262707172737482 ... LastLast
Results 711 to 720 of 869
  1. #711
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,363
    Plugin Contributions
    94

    Default Re: Sales report 2.0

    Quote Originally Posted by lat9 View Post
    I've just submitted v3.2.0 of the "Sales Report" to the plugins for review; I'll post back here once it's available.

    This version contains the following changes/bugfixes:

    [CHANGE] Updated class selector for use under PHP 7.0 and later
    [BUGFIX] Column-count "off" for CSV output when taxes are included.
    [BUGFIX] Manufacturer filter was not being honored
    [CHANGE] Applied PSR-2 styling to the various modules.
    [BUGFIX] Correct year display for "Last Year" selection.
    v3.2.0 is now available for download.

  2. #712
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    Just installed this mod but when I go to the report link I get a white page with the words "Illegal Access" at the top left of the screen. Zen vrs 1.5.5c
    Last edited by Congerman; 10 Nov 2017 at 01:03 PM.

  3. #713
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,363
    Plugin Contributions
    94

    Default Re: Sales report 2.0

    Quote Originally Posted by Congerman View Post
    Just installed this mod but when I go to the report link I get a white page with the words "Illegal Access" at the top left of the screen. Zen vrs 1.5.5c
    That "Illegal Access" usually means that the plugin was being used outside of the Zen Cart environment (the IS_ADMIN_FLAG definition is used for the determination). The only place in the Sales Report's distribution that the message is used is in /YOUR_ADMIN/includes/functions/extra_functions/stats_sales_report.php.

    Unfortunately, the plugin has historically included multiple files of the same name, i.e. stats_sales_report.php. Make sure that you didn't "finger-check" and copy that extra_functions version of the file to the /YOUR_ADMIN directory.

  4. #714
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    Quote Originally Posted by lat9 View Post
    That "Illegal Access" usually means that the plugin was being used outside of the Zen Cart environment (the IS_ADMIN_FLAG definition is used for the determination). The only place in the Sales Report's distribution that the message is used is in /YOUR_ADMIN/includes/functions/extra_functions/stats_sales_report.php.

    Unfortunately, the plugin has historically included multiple files of the same name, i.e. stats_sales_report.php. Make sure that you didn't "finger-check" and copy that extra_functions version of the file to the /YOUR_ADMIN directory.
    All I did was put all the files, in the supplied structure, into my admin folder. Not sure what you mean by "finger-check" are you saying that I should put all the files except the extra functions one?

  5. #715
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,363
    Plugin Contributions
    94

    Default Re: Sales report 2.0

    Quote Originally Posted by Congerman View Post
    All I did was put all the files, in the supplied structure, into my admin folder. Not sure what you mean by "finger-check" are you saying that I should put all the files except the extra functions one?
    Nope, that extra-functions one is what adds the link to the report itself. What happens if you edit that /extra_functions/sales_report.php, changing
    Code:
    <?php
    /**
     * SALES REPORT 3.1
     *
     * @author     Frank Koehl (PM: BlindSide)
     * @author     Conor Kerr <[email protected]>
     * @updated by stellarweb to work with version 1.5.0 02-29-12 
     * @copyright  Portions Copyright 2003-2006 Zen Cart Development Team
     * @copyright  Portions Copyright 2003 osCommerce
     * @license    http://www.gnu.org/copyleft/gpl.html   GNU Public License V2.0
    */
    
    
    if (!defined('IS_ADMIN_FLAG')) {
        die('Illegal Access');
    }
    
    if (function_exists('zen_register_admin_page')) {
        if (!zen_page_key_exists('stats_sales_report')) {
            // Add Monthly Report link to Reports menu
            zen_register_admin_page('stats_sales_report', 'BOX_REPORTS_SALES_REPORT','FILENAME_STATS_SALES_REPORT', '', 'reports', 'Y', 17);
        }
    }
    ?>
    to
    Code:
    <?php
    /**
     * SALES REPORT 3.1
     *
     * @author     Frank Koehl (PM: BlindSide)
     * @author     Conor Kerr <[email protected]>
     * @updated by stellarweb to work with version 1.5.0 02-29-12 
     * @copyright  Portions Copyright 2003-2006 Zen Cart Development Team
     * @copyright  Portions Copyright 2003 osCommerce
     * @license    http://www.gnu.org/copyleft/gpl.html   GNU Public License V2.0
    */
    
    
    if (!defined('IS_ADMIN_FLAG')) {
        trigger_error('Illegal Access', E_USER_WARNING);
    }
    
    if (function_exists('zen_register_admin_page')) {
        if (!zen_page_key_exists('stats_sales_report')) {
            // Add Monthly Report link to Reports menu
            zen_register_admin_page('stats_sales_report', 'BOX_REPORTS_SALES_REPORT','FILENAME_STATS_SALES_REPORT', '', 'reports', 'Y', 17);
        }
    }
    ?>
    Is a debug-log generated after that change or do you still see the "Illegal access" message? If a debug-log is created, please post it back.

  6. #716
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    Interesting. I made the change and as dreamweaver was uploading, part of the text kept saying "sales report gives illegal access error. I then went to admin and the report is there ( not fully tested it yet so do not know if working as should be) an error log was created but it is 1723 lines long I am just replacing my admin folder details on it. Would you still like it posted here or PM'd

  7. #717
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,363
    Plugin Contributions
    94

    Default Re: Sales report 2.0

    Quote Originally Posted by Congerman View Post
    Interesting. I made the change and as dreamweaver was uploading, part of the text kept saying "sales report gives illegal access error. I then went to admin and the report is there ( not fully tested it yet so do not know if working as should be) an error log was created but it is 1723 lines long I am just replacing my admin folder details on it. Would you still like it posted here or PM'd
    PM sent.

  8. #718
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,463
    Plugin Contributions
    11

    Default Re: Sales report 2.0

    Quote Originally Posted by Congerman View Post
    I made the change and as dreamweaver was uploading...
    Paraphrasing Elmer Fudd, be vewwy, vewwy careful when using dreamweaver for file editing, etc. Unless you are vewwy, vewwy careful, it will add code that will munge things up in a hurry.

    I often tell customers that want to use programs like that to open Word, type Hello World!, save it as html, then open it in notepad. You'll be amazed.

    Stick to the simple editors. If you've just got to have some bells and whistles, try Ultra-Edit. Like Dreamweaver, it's commercial but it does not add extraneous code.

  9. #719
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Sales report 2.0

    Or use Notepad++ as a simple txt editor with some whistles, it is free. Or if you want a full IDE editor use something like NetBeans, which is also free
    Quote Originally Posted by dbltoe View Post
    Paraphrasing Elmer Fudd, be vewwy, vewwy careful when using dreamweaver for file editing, etc. Unless you are vewwy, vewwy careful, it will add code that will munge things up in a hurry.

    I often tell customers that want to use programs like that to open Word, type Hello World!, save it as html, then open it in notepad. You'll be amazed.

    Stick to the simple editors. If you've just got to have some bells and whistles, try Ultra-Edit. Like Dreamweaver, it's commercial but it does not add extraneous code.

  10. #720
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    Quote Originally Posted by dbltoe View Post
    Paraphrasing Elmer Fudd, be vewwy, vewwy careful when using dreamweaver for file editing, etc. Unless you are vewwy, vewwy careful, it will add code that will munge things up in a hurry.

    I often tell customers that want to use programs like that to open Word, type Hello World!, save it as html, then open it in notepad. You'll be amazed.

    Stick to the simple editors. If you've just got to have some bells and whistles, try Ultra-Edit. Like Dreamweaver, it's commercial but it does not add extraneous code.
    I have been using dreamweaver for 17 years and never had an issue with it. Have you been using free, copied, cut down versions?

 

 
Page 72 of 87 FirstFirst ... 2262707172737482 ... LastLast

Similar Threads

  1. v139b Sales Report
    By irishshopper in forum General Questions
    Replies: 1
    Last Post: 26 Jan 2014, 01:00 AM
  2. Sales Report
    By jgold723 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Nov 2011, 05:58 PM
  3. Sales report
    By tlahtine in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 27 Dec 2010, 10:01 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