Results 1 to 10 of 81

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,916
    Plugin Contributions
    13

    Default Re: Inventory Updater...

    @simon1066, version 1.2.1 removes the .php from the filename.

    in addition, hopefully the ZC team will merge this PR that actually does fix this issue for other plugin authors like myself that make the same mistake:

    https://github.com/zencart/zencart/pull/3653

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,916
    Plugin Contributions
    13

    Default Re: Inventory Updater...

    version 1.2.1 now available for download here:

    https://www.zen-cart.com/downloads.php?do=file&id=2279

    update base price as well as inventory!

    also, no modifications necessary to work within admin profile security.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Inventory Updater...

    Inventory Updater v1.2.1
    PHP v7.2.10

    Upgrading to ZCv1.57, I get these myDEBUG logs notices when viewing the Inventory Updater page - I know the notices are not critical but if I don't address these undefined index notices (and many others unrelated to Inventory Updater, across the site) the number of log files will become unmanageable.

    Code:
    [08-Jul-2020 10:59:08 Europe/London] PHP Notice:  Undefined index: sort in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 73
    [08-Jul-2020 10:59:08 Europe/London] PHP Stack trace:
    [08-Jul-2020 10:59:08 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 10:59:08 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    [08-Jul-2020 10:59:08 Europe/London] PHP Notice:  Undefined index: sort in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 285
    [08-Jul-2020 10:59:08 Europe/London] PHP Stack trace:
    [08-Jul-2020 10:59:08 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 10:59:08 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    
    ... followed by a line 285 entry for every product listed.
    inventory.php line 71-76
    Code:
    $sort = (isset($_GET['sort']) ? $_GET['sort'] : '0');
    	$order_by = " ";
    	switch ($_GET['sort']) {
    		case (0):
    			$order_by = " ORDER BY p.products_sort_order, pd.products_name";
    			break;
    inventory.php line 284-286
    Code:
     <a href="<?= zen_href_link(FILENAME_INVENTORY,
            'action=tg_stat' . '&pid=' . $prod_list->fields['products_id'] . $cid_params . '&sort=' . $_GET['sort'] . '&active=' . $_GET['active'],
            'SSL'); ?>">
    'PHP Notice: Undefined index:' seems to be a bit of a theme with my upgrade to ZCv1.57 - seems to be mainly caused by old mods and my crude hacking of php files, still trying to get my head around the whys and wherefores.
    Simon

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Inventory Updater...

    It strikes me that perhaps these notices are a result of the improved error logging in ZCv1.57. TBH I can't remember if ZCv1.56c showed notices or not. In any event I get too many of them.
    Simon

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,916
    Plugin Contributions
    13

    Default Re: Inventory Updater...

    Quote Originally Posted by simon1066 View Post
    It strikes me that perhaps these notices are a result of the improved error logging in ZCv1.57. TBH I can't remember if ZCv1.56c showed notices or not. In any event I get too many of them.
    simon,
    can you please provide me the first line in your debug log. the one that has the url you are going to.

    thanks.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Inventory Updater...

    Quote Originally Posted by carlwhat View Post
    simon,
    can you please provide me the first line in your debug log. the one that has the url you are going to.

    thanks.
    Here are the first few lines of the debug, there is no url on the first line - but the link I followed to the Inventory Updater page is

    mydomain.co.uk/myadmin/index.php?cmd=inventory

    Code:
    [08-Jul-2020 16:09:12 Europe/London] PHP Notice:  Undefined index: sort in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 73
    [08-Jul-2020 16:09:12 Europe/London] PHP Stack trace:
    [08-Jul-2020 16:09:12 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 16:09:12 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    [08-Jul-2020 16:09:13 Europe/London] PHP Notice:  Undefined index: sort in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 285
    [08-Jul-2020 16:09:13 Europe/London] PHP Stack trace:
    [08-Jul-2020 16:09:13 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 16:09:13 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    [08-Jul-2020 16:09:13 Europe/London] PHP Notice:  Undefined index: active in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 285
    [08-Jul-2020 16:09:13 Europe/London] PHP Stack trace:
    [08-Jul-2020 16:09:13 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 16:09:13 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    [08-Jul-2020 16:09:13 Europe/London] PHP Notice:  Undefined index: sort in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 285
    [08-Jul-2020 16:09:13 Europe/London] PHP Stack trace:
    [08-Jul-2020 16:09:13 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 16:09:13 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    [08-Jul-2020 16:09:13 Europe/London] PHP Notice:  Undefined index: active in D:\wamp64\www\mydomain.co.uk\myadmin\inventory.php on line 285
    [08-Jul-2020 16:09:13 Europe/London] PHP Stack trace:
    [08-Jul-2020 16:09:13 Europe/London] PHP   1. {main}() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:0
    [08-Jul-2020 16:09:13 Europe/London] PHP   2. require() D:\wamp64\www\mydomain.co.uk\myadmin\index.php:11
    These notices only appear on first entry to the Updater page, subsequent actions using the various dropdowns yield no notices.
    Simon

  7. #7
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Inventory Updater...

    BTW, the line numbers are different to your stock file because I added some custom lines to display product images - see a previous post for actual code.
    Simon

 

 

Similar Threads

  1. Dynamic Price Updater
    By Chrome in forum All Other Contributions/Addons
    Replies: 1683
    Last Post: 27 Apr 2026, 06:21 AM
  2. v154 Quick Updater
    By fabienne in forum General Questions
    Replies: 5
    Last Post: 30 Jan 2015, 01:46 AM
  3. Update Inventory with Suppliers XML inventory feed?
    By mafiasam in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 21 Jun 2007, 11:44 AM

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