• Resolved joelrozen

    (@joelrozen)


    Hi Team,

    Am wrestling with trying to get product feeds as xml files.
    Whenever I try to create a feed, the process appears to create 3x files called [hash]_tmp.xml in /wp-content/uploads/woo-product-feed-pro/xml

    When the feed says “Ready”, and gives me a link to the file which is of the form [hash]-[another hash].xml, that file doesn’t actually exist, and the 3 tmp.xml files are still there.

    All three _tmp.xml files contain the <channel> tag with <title>, <link> and <description> and nothing else.

    The “settings” page shows the product directory as being writeable “false” however the /wp-content/uploads is recursively 775 and owned by www-data. The fact the plugin is able to both create an ‘xml’ folder AND write the _tmp.xml files also tells me that it is, in fact, writeable.

    I am also unable to provide a debug log:
    Warning: fopen(/var/www/html/wp-content/uploads/woo-product-feed-pro/logs/debug.log): failed to open stream: No such file or directory

    Lastly, and I don’t know if this is related. I noticed upon installing the plugin, it automatically created uploads/woo-product-feed-pro in both my root dir AND the /wp-content dir. The one in the root dir is chowned by root and 755. If I delete this folder (since it shouldn’t be in the root dir anyway), and deactivate/reactivate the plugin, it appears again, however all the tmp files are still created in the /wp-content… path.

    I have no tried with other file types as I specifically need xml.

    WordPress: 5.1.1 (unable to update to 5.4 for other reasons)
    Woocommerce: 3.8.1

    Alternatively, is there a way I can save the files to a cloud provider rather than in my server’s directory?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter joelrozen

    (@joelrozen)

    Update: I have fixed the dir in the root dir – that one was on me binding the wrong path to my host’s drive.

    Still the issue persists creating tmp.xml files but not the final file.

    Thread Starter joelrozen

    (@joelrozen)

    Further edit – Same thing happens for CSV files. Creates a [hash]_tmp.csv in the /csv/ folder, but then nothing else after that.

    supportadtribes

    (@supportadtribes)

    Hi Joel,

    Thanks for using our plugin and reaching out to us.

    First some background information: the plugin creates a _tmp file when feeds are created or updated. Only when the creation/update is fully finished it will move the _tmp file to the permanent file.

    When the _tmp file remains and no permanent file is created this could be caused by numerous reasons, permissions is one of them however when for example there is a WP-cron issue the plugin can’t finish the creation of when for some reason a fatal WooCommerce error happens during creation you will see the same behaviour.

    So let’s start with the WooCommerce fatal error logs. Can you check todays and yesterdays fatal error logs and send them over to us so we can have a look if there is anything relevant in there? Please find instructions for retrieving those here: https://docs.woocommerce.com/document/finding-php-error-logs/#:~:text=To%20access%20the%20WooCommerce%20Fatal,%2Ddown%20labeled%20fatal%2Derrors.

    Thread Starter joelrozen

    (@joelrozen)

    Hi @supportadtribes ,

    Thanks for coming back to me so quick.

    The entirety of my fatal errors log is here:
    https://pasteboard.co/JbDYVv7.png

    A few yesterday as you suggested, but none before or after (or while I have been manually trying to recreate feeds) for the last 4 days. None relate to your plugin either.

    supportadtribes

    (@supportadtribes)

    Hi Joel,

    Thanks for sharing the screenshot of your error logs. I am however somewhat confused as they look differently than the typical WooCommerce fatal error log page. I would expect it to look something like this: https://www.dropbox.com/s/ttfhc0ijvv42qh0/fatal-error-logs.png?dl=0

    Where is your log coming from and are you sure it is the content of the entire log?

    Thread Starter joelrozen

    (@joelrozen)

    Hi @supportadtribes ,

    Yes, I am sure. I store my WC logs to the database, not in a .log file, as such the GUI is much cleaner.
    See https://docs.woocommerce.com/wc-apidocs/class-WC_Log_Handler_DB.html

    That is everything for the last 30 days.

    supportadtribes

    (@supportadtribes)

    Alright, let’s focus on your WP-cron then. Do you have the WP-cron enabled in your wp-config.php file?

    Thread Starter joelrozen

    (@joelrozen)

    Certainly do.

    supportadtribes

    (@supportadtribes)

    Then its becoming hard to find out what could be causing it, probably a permission issue on your server but thats out of our sight.

    Hi,

    Assuming the issue at hand has been resolved or our support is no longer required I am going to close this topic for housekeeping reasons now.

    Please do not hesitate to reach out to us again whenever you need our help.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Plugin only creates tmp xml, not the final’ is closed to new replies.