Hello Davidtrebaz,
This is a known issue with our plugin. It has something to do with the fact that when executing a function with cron, it uses other presets for some wordpress functions than when you execute this function from a loaded plugin.
It is on our list of issues, but until now we’ve not been able to find a solution for it.
We will keep you up-to-date on our progress, but it can take some time.
Best regards,
Michel
Great. Thanks for the quick reply. I really like the non-cron version of the links much better. They are consistent with the URL structure on the public site and our canonical URL’s.
For now I have it set up to “work”. I was a little surprised when I saw my PLA links dropping in Google Merchant center (due to 404 errors), but it was an easy fix. Google will hopefully catch the updates tomorrow…
Yes, that’s what we are aiming for as well.
A cron always starts clean, without any thing loaded or initialized and I suspect that a specific WooCommerce code needs to be loaded to get the correct permalink response. But I’m having a hard time figuring out what it is that’s not being loaded.
Anyway it’s on our list and I will keep you informed when I can make some progress on it.
Hello Davidtrebaz,
Could you do me a favor and send me a screenshot of your WordPress Settings->Permalinks page? I want to replicate your settings in order to do some more testing.
Here are the current settings 🙂

Link to image
-
This reply was modified 9 years, 2 months ago by
davidtrebacz.
-
This reply was modified 9 years, 2 months ago by
davidtrebacz.
Hi, could you please try the following:
1) Open the ‘wp-content/plugins/wp-product-feed-manager/includes/application’ folder and make a backup of the wppfm-cron.php file
2) Download the following file http://dropcanvas.com/mw1r8
3) Copy the content of the downloaded file in the folder mentioned in 1). You can override the original file
4) Refresh the plugins page to make sure the plugin is still working fine.
If you encounter issues, just restore the backup file
Then please check if this solved the issue by waiting for an automatic refresh. Let me know if it solved the issue.
Hello Davidtrebaz,
Could you confirm that you are using version 1.4.3 of the plugin?
Best regards,
Michel
Yes version 1.4.3. I’ll try the supplied patch today and let you know…
I added the supplied patch to the production site and have scheduled a cron update of one feed in the next hour.
I also noticed that the feed manager screen uses UTC time (vs local time in WordPress). I assume that also applies to the feed generation, so I set the schedule using UTC time. I would suggest to have all the settings in local time in the plugin.
Yes, I know what is going wrong but I just do not understand why. In a cron triggered update the standard permalink function is not picking up the “pretty permalink” settings of WordPress.
I have a new file that would generate a debug logging, but it seems my dropcanvas (file sharing) account is down. I will send you the file tomorrow as soon as my account has been reset.
As for the time of the feed update, I currently use the standard PHP time command that uses the server time. As far as I know this is the only time I can work with, but I will investigate a bit further on this to see what I can do.
Thanks. Look forward to the debugging file.
I did change the php timezone on the shared server that I use, but GUI is still UTC. It looks like the localized time function for WordPress is: https://codex.ww.wp.xz.cn/Function_Reference/current_time
It would be helpful if the GUI worked on blog time (localized time) vs having to adjust… 🙂 Right now what seems to be happening is I schedule the updates to run at midnight, 00 UTC in WordPress and they actually run at ~5pm (or 17) Pacific time.
Thanks for the function reference. I will have a look at it. I might be able to integrate it in the next update we expect to be ready end of this month.
Here’s the debug file: http://dropcanvas.com/migbl
Please perform the following actions:
1) Open the ‘wp-content/plugins/wp-product-feed-manager/includes/application’ folder and make a backup of the class-feed-master.php file
2) Download the debug file
3) Copy the content of the downloaded file in the folder mentioned in 1). You can override the original file
4) Refresh the plugins page
5) Generate a manual feed update
6) Wait for at least one automatic update of the feed
You should have a file called “permalink-debug.log” in your ‘wp-content/plugins/wp-product-feed-manager’ folder. Please mail this file to michel @ wpmarketingrobot.com.
If you encounter issues, just restore the backup file
Issue solved through e-mails.