Page 324 of 367 FirstFirst ... 224274314322323324325326334 ... LastLast
Results 3,231 to 3,240 of 3668
  1. #3231
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    Line #605 : "orders-full-ep"=>ORDERSEXPORT_LINK_SAVE1,

    Line #606 : "orders-fullb-ep"=>ORDERSEXPORT_LINK_SAVE1B,

    Line #607 : "orders-noattribs-ep"=>ORDERSEXPORT_LINK_SAVE2,

    Line #608 : "orders-onlyAttribs-ep"=>ORDERSEXPORT_LINK_SAVE3

    I am getting: --> PHP Warning: Use of undefined constant ORDERSEXPORT_LINK_SAVE3 - assumed 'ORDERSEXPORT_LINK_SAVE3' (this will throw an Error in a future version of PHP)
    for these variables.... when I do a search through the ZC code I do not see them being called or used elsewhere.... do you think I could assign them some nominal value just to get them to not give a warning without something breaking?


    --> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/account/public_html/admin/easypopulate_4.php on line 655.

    It looks like $files is an array so why is it still getting the warning?

    if ($dirhandle = opendir($upload_dir)) {
    $files = array();



    for ($i = 0; $i < sizeof($files);





  2. #3232
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    okay, maybe the constant errors would be fixed by putting those in the

    /home/account/public_html/admin/includes/languages/english/easypopulate_4.php

    ????




  3. #3233
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    Line #605 : "orders-full-ep"=>ORDERSEXPORT_LINK_SAVE1,

    Line #606 : "orders-fullb-ep"=>ORDERSEXPORT_LINK_SAVE1B,

    Line #607 : "orders-noattribs-ep"=>ORDERSEXPORT_LINK_SAVE2,

    Line #608 : "orders-onlyAttribs-ep"=>ORDERSEXPORT_LINK_SAVE3

    I am getting: --> PHP Warning: Use of undefined constant ORDERSEXPORT_LINK_SAVE3 - assumed 'ORDERSEXPORT_LINK_SAVE3' (this will throw an Error in a future version of PHP)
    for these variables.... when I do a search through the ZC code I do not see them being called or used elsewhere.... do you think I could assign them some nominal value just to get them to not give a warning without something breaking?


    --> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/account/public_html/admin/easypopulate_4.php on line 655.

    It looks like $files is an array so why is it still getting the warning?

    if ($dirhandle = opendir($upload_dir)) {
    $files = array();



    for ($i = 0; $i < sizeof($files);




    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    okay, maybe the constant errors would be fixed by putting those in the

    /home/account/public_html/admin/includes/languages/english/easypopulate_4.php

    ????



    Looks like not using the version updated on github (have a few minor things to complete so that all language dependent imports will support the language designation (_en) instead of the old method of language_id "_1"). The location is: https://github.com/mc12345678/EasyPopulate-4.0. None of the described issues occur in that version.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #3234
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    Thank you! Will pull from there.

  5. #3235
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    Just an update. Changed Specials Price to Null and the other error messages I received are gone. Works Great!

    Updated records: 467
    New Imported records: 35726
    Errors Detected: 0
    Warnings Detected: 0
    Memory Usage: 152789664
    Memory Peak: 153206360
    Execution Time: 574 seconds.

    Would I be able to have these records load in more than just a second layer directory structure? Meaning could I have a main> posters> super heros> batman and have all those categories created on the load?

    Thank you!

  6. #3236
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    Just an update. Changed Specials Price to Null and the other error messages I received are gone. Works Great!

    Updated records: 467
    New Imported records: 35726
    Errors Detected: 0
    Warnings Detected: 0
    Memory Usage: 152789664
    Memory Peak: 153206360
    Execution Time: 574 seconds.

    Would I be able to have these records load in more than just a second layer directory structure? Meaning could I have a main> posters> super heros> batman and have all those categories created on the load?

    Thank you!
    If your question is: is it possible to upload a product to a category structure that doesn't already exist and if so, does it matter how deep the category structure is? Then the answer is yes it is possible and no it doesn't really matter how deep. I mean, I'm sure there is some super long text iimitation...

    For your category structure, the field: v_category_name_1
    Would contain: main^posters^super heroes^batman if the first category is called main, a sub-category off of there being posters that has a sub-category of super heroes that has a sub-category of batman. Now.... NOTE capitalization, extra spaces and any other characters between each carat (^) are used in evaluating the category relationship. So Batman is different from batman from BATMAN. This is something covered in the readme.

    Note also that when a category is created it has an empty description until the associated category data is imported.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #3237
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    I have found a couple of issues.


    1) If not able to insert into the products table then a csv file should be created of items that were not able to be inserted. There should also be a note noting number of products issues in the outcome note and noting file to look at.
    2) If not able to insert into the products_description then the record should be deleted from products and a csv file should be created of items that were not able to be inserted. There should also be a note noting number of products_description issues in the outcome note and noting file to look at.
    3) If not able to insert into the meta_tags_products_description is not able to be inserted into then a csv file should be created of items not loaded meta_tags to be worked on. There should also be a note noting number of meta_tag issues in the outcome note and noting file to look at.

    Thank you!

  8. #3238
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    I have found a couple of issues.


    1) If not able to insert into the products table then a csv file should be created of items that were not able to be inserted. There should also be a note noting number of products issues in the outcome note and noting file to look at.
    2) If not able to insert into the products_description then the record should be deleted from products and a csv file should be created of items that were not able to be inserted. There should also be a note noting number of products_description issues in the outcome note and noting file to look at.
    3) If not able to insert into the meta_tags_products_description is not able to be inserted into then a csv file should be created of items not loaded meta_tags to be worked on. There should also be a note noting number of meta_tag issues in the outcome note and noting file to look at.

    Thank you!
    Did you happen to scroll down the screen after performing an import?

    To what file(s) are you referring when stating "noting file to look at"? At the completion of each import, there is some level of information provided. If an "insert" fails, that basically is a problem with the data that has been provided which for the most part likely can not be identified as "successful" or flagged for failure... Meaning, one may have to identify what has been successful to identify what didn't work.

    As far some of the processes, it is possible that a message is not provided for one or another issues, for example I know that on a product import where products_model is the primary key, if the products_model field for a row is blank, there is no notification about any issue... Is it a problem? I say no, but that's because an empty products_model in that situation is expected and supposed to be skipped... I state some of that to try to further identify the expectational differences between early and experienced users.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #3239
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by mc12345678 View Post
    Did you happen to scroll down the screen after performing an import?

    To what file(s) are you referring when stating "noting file to look at"? At the completion of each import, there is some level of information provided. If an "insert" fails, that basically is a problem with the data that has been provided which for the most part likely can not be identified as "successful" or flagged for failure... Meaning, one may have to identify what has been successful to identify what didn't work.

    As far some of the processes, it is possible that a message is not provided for one or another issues, for example I know that on a product import where products_model is the primary key, if the products_model field for a row is blank, there is no notification about any issue... Is it a problem? I say no, but that's because an empty products_model in that situation is expected and supposed to be skipped... I state some of that to try to further identify the expectational differences between early and experienced users.
    Thanks for your work on this. I realize this is not a paid job and these are just my suggestions for whosoever may want to update this module to make it more excellent.

    Hello, yes I did scroll down the screen but this should really be spit out into a file with success and fail notices for each product.

    "noting file to look at" if there was a file that contained those errors (it does not currently exists).

    Hmmm... you cannot test to see if a sql insert was successful or not? Sorry, so easy to do with languages I have worked with just thought it would be easy in php also.

    Thank you for having this working for us currently!

  10. #3240
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    Thanks for your work on this. I realize this is not a paid job and these are just my suggestions for whosoever may want to update this module to make it more excellent.

    Hello, yes I did scroll down the screen but this should really be spit out into a file with success and fail notices for each product.

    "noting file to look at" if there was a file that contained those errors (it does not currently exists).

    Hmmm... you cannot test to see if a sql insert was successful or not? Sorry, so easy to do with languages I have worked with just thought it would be easy in php also.

    Thank you for having this working for us currently!
    What is the setting you have under configuration->Easy Populate 4->'Debug Logging'? Has it been changed from the default of true?

    If it is still set to true, then look at your list of files under 'This contains any other file. They will be processed like a full data file.' (The word They changes to this if there is only one file)

    If there were "sql" errors while importing the data then there should be a file "ep_debug_log.txt" in that list. In that file is the query/queries that caused errors. Based on the associated information, the issue(s) should be locatable.

    As far as logging the text that appears below the list of files, that is something that can be done using the EP4 function: write_debug_log_4($string) where $string is the text to be logged into the debug log.

    So for example in admin/easypopulate_4.php towards the end where:
    echo $display_output;
    is present, then could add:

    write_debug_log_4($display_output);

    If want to make it dependent on the debug logging setting from above, then:
    Code:
          if (EASYPOPULATE_4_CONFIG_DEBUG_LOGGING === 'true') {
            write_debug_log_4($display_output);
          }
    May also then want to incorporate the 'specials' data within the area below that with:
    Code:
          if (strlen($specials_print) > strlen(EASYPOPULATE_4_SPECIALS_HEADING)) {
            echo '<br />' . $specials_print . EASYPOPULATE_4_SPECIALS_FOOTER; // specials summary
            if ((EASYPOPULATE_4_CONFIG_DEBUG_LOGGING === 'true') {
              write_debug_log_4($specials_print . EASYPOPULATE_4_SPECIALS_FOOTER);
            }
          }
    Remember this is open source so you can do with it what you will and while it has been made available for free download/use, it doesn't mean that there hasn't been some sort of funding by someone to someone at some time. Thankfully Chad Deruski did an outstanding job many years ago with development of so many features and options. As I understand it was developed to support his line of work and then at some point made available for others. He still makes an appearance once in a while.

    Note though that you will need to clear that debug file periodically to prevent eating drive space.

    Oh and as far as "testing" the SQL, sure two additional lines and some other potential "switch" could be added to the query in the extra_functions file, to perform a transaction that gets reverted, or explained, or an alternate store could be used/tested rather than one's live store (this is a preferred situation so that zero damage is done to one's live store).
    Last edited by mc12345678; 30 Mar 2021 at 03:16 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 285
    Last Post: 23 Dec 2020, 10:40 AM
  3. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM
  4. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 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