• Resolved ck2069

    (@ck2069)


    Hi, I have issues generating the google feed.

    First problem: I have problems generating a feed with any products, there is 100s of active products so should be some products in the feed.

    Secondary bug: Nested categories does not look correctly in the category selector using ‘is equal to’ (hierarchy shows as compact text strings, and is repeated over and over again, makes it almost impossible to select categories using that method.)

    Third issue: “processing” is not stopping without any indicator the process is done, even though it should be.

    Fourth (minor) problem: menu icons in manager are too small.

    Plugin downloaded today
    WP version 4.8.2
    WC version 3.1.2
    Local staging test site.

    Error logs sample lines (these are repeated over and over):

    
    PHP Warning:  array_map(): Argument #2 should be an array in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 1069
    PHP Warning:  Invalid argument supplied for foreach() in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 914
    PHP Warning:  Illegal string offset 'g:id' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:title' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:description' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:link' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:image_link' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:availability' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:price' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:google_product_category' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    PHP Warning:  Illegal string offset 'g:condition' in C:\...\woo-product-feed-pro\classes\class-get-products.php on line 903
    
    • This topic was modified 7 years, 5 months ago by ck2069.
    • This topic was modified 7 years, 5 months ago by ck2069.
    • This topic was modified 7 years, 5 months ago by ck2069.
Viewing 13 replies - 1 through 13 (of 13 total)
  • @ck2069 Thanks for your post and letting me know, in such great detail, what’s going wrong with the plugin. The snippet of debug.log is of great help.

    I will look into your issues the upcoming days and inform you about the progress. Might need some help with some extra debugging as I cannot reproduce your issues on my own environments.

    Thanks, greatly appreciated!
    Joris

    @ck2069,

    I checked the code and the errors are caused by the fact the plugin starts processing 0 products. Which is strange as you mention you have 100’s of products.

    I need your help to understand what exactly is going wrong.

    Could you go to the “Manage feeds” page and add this to your URL &debug=true

    Your URL should look something like this now:
    ….wp-admin/admin.php?page=woosea_manage_feed&debug=true

    On the screen you should now see a box with a red line on the left side. Could you copy / past the content of that box and e-mail it to me ([email protected])? It will help me to understand how exactly you have configured your product feeds and what the processing status of them is.

    Thank you very much.

    All the best,
    Joris

    Also, please update to version 1.5.7. It offers some extended debugging information for us ??

    “Secondary bug: Nested categories does not look correctly in the category selector using ‘is equal to’ (hierarchy shows as compact text strings, and is repeated over and over again, makes it almost impossible to select categories using that method.)”

    This issue has been solved and put live.

    Thread Starter ck2069

    (@ck2069)

    I have emailed the debug log to help with empty feed.

    Also nested categories is resolved yes, now that I can see the (some) categories, I can see that some characters will at some times be shown as html code, like ‘&’ is shown as & or as ‘&’, categories with ??? (Norwegian special characters) does not show at all.

    If I try to write in a category with ‘?’ in the name, and I know that has products, the debug log ads this:

    
    PHP Notice:  Undefined variable: maincat in C:\wamp\...\plugins\woo-product-feed-pro\woocommerce-sea.php on line 606
    
    • This reply was modified 7 years, 5 months ago by ck2069.
    • This reply was modified 7 years, 5 months ago by ck2069.
    • This reply was modified 7 years, 5 months ago by ck2069.

    @ck2069 I checked, for me the category autosuggest does pick up on strange characters, including Norwegian ones. Could you let me know if you still have this issue?

    With regards to the error you found on line 606. That one is fixed with the release of the plugin that I just pushed out.

    Thanks again!
    Joris

    Thread Starter ck2069

    (@ck2069)

    Hi again @jorisverwater,
    Yes, the ??? characters are picked up, it seems like some times if a category is not selected and the suggestions disappear the suggestion will not give any results if you try again.
    I see that the & is working, but the categories are suggested twice, once with the character and once with the code equivalent.

    The feed is still not generating any products, it stays at processing (0%) and the debug log spits out the same lines hundreds of times, I had to raise the php execution time to 600 as it stops the process if set at anything below 300. Seem like the script crashes at some point not resulting in any products and the processing indicator continues like it is still working.

    
    PHP Warning:  Illegal string offset 'g:id' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:gtin' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:title' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:brand' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:description' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:link' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:image_link' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:availability' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:price' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:google_product_category' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:mpn' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:condition' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  Illegal string offset 'g:item_group_id' in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 940
    PHP Warning:  array_map(): Argument #2 should be an array in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 1106
    PHP Warning:  Invalid argument supplied for foreach() in C:\wamp\...\woo-product-feed-pro.1.5.9\classes\class-get-products.php on line 951
    
    
                [page] => analytics
                [utm_on] => on
                [utm_medium] => cpc
                [utm_campaign] => 159test061017
                [utm_term] => id
                [utm_content] => 
                [active] => 1
                [last_updated] => 06 Oct 2017 17:32
                [running] => processing
                [nr_products] => 360
                [nr_products_processed] => 0
    

    @ck2069,

    I have just released a new version of the plugin, version 1.6.0, that should fix the issue you are experiencing with the non-processing of the feeds. Can you update the plugin, create a new project/feed and let me know if it worked out for you?

    Have a great weekend!
    Joris

    Thread Starter ck2069

    (@ck2069)

    @jorisverwater

    Does not seem to be fixed.

    @ck2069

    I see you are running the plugin on your (windows) localhost, I am not sure but it is not a standard set-up ofcourse and I have no clue how the plugin handles it, especially with regards to paths it needs.

    Nonetheless, I checked the debug log you send me and don’t see anything weird in your configuration. I cannot check these output logs as they are on your localhost:

    [query_log] => https://localhost/glimty/public_html/media/woo-product-feed-pro/logs/query.log
    [query_output_log] => https://localhost/glimty/public_html/media/woo-product-feed-pro/logs/query_output.log

    Can you send them to me so I can check its content?

    Thanks!
    Joris

    Hi, I’m working on the same project. The issue seems to be that $xml_product is never declared as a array. Declaring it $xml_product = array(); solves the issue.

    Another potential issue is the ?> at the end of the file, which could result in unwanted whitespace output.

    • This reply was modified 7 years, 5 months ago by Kim.

    @kimikaze

    Wow, open source to its full potential ?? Great you looked into the code yourself to find the cause. I’ve been trying to find the cause to this issue for weeks but was unable to reproduce the error on my side as all worked.

    Can you tell me on what line of code you added the declaration of $xml_product and was it in version 1.6.0 of the plugin?

    Thanks for your help on this, greatly appreciated!

    Joris

    If I am correct all the issues mentioned in the post are solved so I am closing this issue. Please let me know if I missed something or when more help is needed.

    Best,
    Joris

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Not able to generate a feed with products’ is closed to new replies.