• Resolved dantekavala

    (@dantekavala)


    Hello there

    My feed started to suck on processing (33%) when I manually trigger the update. I use the same plugin in other websites in the same server without an issue.

    – I added cron config to wp-config like this: define(‘DISABLE_WP_CRON’, false);

    – I installed WP control plugin. When I trigger a manual update, I can see job there and I don’t get any error notification

    – I checked woocommerce fatal errors and there is nothing there

    – Checking the apache log errors I have something related

    [Fri May 14 14:16:17.598764 2021] [proxy_fcgi:error] [pid 15865:tid 139866993837824] [client ****] AH01071: Got error 'PHP message: PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "****/public_html/wp-content/uploads/woo-product-feed-pro/xml/tVZxo2Tpul2mpRXRaNvvzpDEyW1Ism09_tmp.xml" in ****/public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 1212\nPHP message: PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "****/public_html/wp-content/uploads/woo-product-feed-pro/xml/tVZxo2Tpul2mpRXRaNvvzpDEyW1Ism09_tmp.xml" in *****/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 1212\n', referer: ****/wp-admin/admin.php?page=woosea_manage_feed

    Removed sensitive information from the log entry with ****

    Plugin version: Version 10.1.2
    PHP version: 7.2
    Wordpress version: 5.4.5
    Woocommerce version: 4.5.2

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    Thanks for using our plugin and reaching out to us. Sorry to hear you are experiencing a stuck feed.

    Based on the error log you shared it seems the plugin cannot open the _tmp.xml file that is being used to update or process feeds. So the feed has either been removed from your server or our plugin does not have the right permissions to read/write the _tmp.xml file. Could it be you or some process/plugin removed the file or have set permissions on it?

    Thread Starter dantekavala

    (@dantekavala)

    Can you please tell me where this file should be so I can check it? And really thanks for the super fast answer ??

    I just see it is in the logs ??

    The file is not there with the _tmp suffix. It is there without it, with the long string name + .xml

    • This reply was modified 3 years, 6 months ago by dantekavala.

    Then the file should have processed and your status say “ready”?

    Thread Starter dantekavala

    (@dantekavala)

    I tried it having the FTP opened. You are right. When I triggered a manual update, there was a xxxxx_tmp.xml file which started to increase its size. Then, after a while, it disappeared and the xxxxx.xml file changed size.

    However, I have the following two issues:

    – Even if it looks that the xml worked, the process was stuck to 33% until I refreshed the page. I waited for over 20 minutes while the whole generation took 2-3 minutes max.

    – I added a rule with a custom field, but the field is not there.

    I don’t know about the first one, but maybe you could help on the second? I want to have a custom field with the value NO or DISCOUNT if the product is on sale. So, I created an attribute called ‘has_discount’ and added the two terms. I did nothing to the products per se. Then, on the Field Mapping, I added the custom field with an empty value and on the Feed filters and rules and I did this

    https://www.dropbox.com/s/qfkb35olum202gf/Screenshot%202021-05-14%20at%2010.30.26%20PM.png?dl=0

    Even if it looks that the xml worked, the process was stuck to 33% until I refreshed the page. I waited for over 20 minutes while the whole generation took 2-3 minutes max.

    –> probably a caching issue. Make sure to clear the caching of your browser or that of a 3th party caching plugin you might be using.

    With regards to your second question. The rules you created seem fine to me however how did you add that “Has_discount” field to your field mapping?

    Thread Starter dantekavala

    (@dantekavala)

    Ok, it looks that the Has_discount works only for the case that the product is on sale. In the other case, the sale price tag is not there and as a result the custom element is also not presented in the XML result. Any idea how I could fix that?

    Thread Starter dantekavala

    (@dantekavala)

    Unfortunately, it didn’t work

    We tested this ourselves by creating a new “Has Discount” attribute and used the above rule set. For us it worked flawlessly. Make sure to clear the caching of your browser or any 3th party caching plugin. And ofcourse make sure to use the proper attribute in your rules and field mapping.

    Thread Starter dantekavala

    (@dantekavala)

    It seems there is some kind of issue with manual vs automated update of the XML. I left it for the night and after the automated update, the field was there. When I do a change and trigger the manual update, it’s not there. I will investigate more and if I find anything that is helpful, I will open a new topic. Thank you again for the super fast responses.

    Sounds like a caching issue to me. Make sure to clear the caching of your browser/caching plugins when feeds have updated so you are not looking at an old version of the feed.

    Anyhow, good to hear it is working now ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Stuck on processing (33%)’ is closed to new replies.