• Resolved davidtrebacz

    (@davidtrebacz)


    Great plugin! I have been using it for about 2 months and find it very full featured and capable of a lot.

    I was appending the product URL’s with Google Analytics campaign tags using the plugin. I wanted to get get better tracking out of my PLA feeds in Google analytics. I set the link attribute to “add suffix” to the Permalink for the “link” XML attribute in the feed.

    When I use the “Save and generate” function in the edit feed area the proper permalink is used and the string I append needs a question mark: https://www.glasshousestore.com/product/pro-drilling-guide-and-drilling-platform/?utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla

    When the feed is automatically updated the URL is not the standard permalink for my site. In this case the campaign parameters need to be added with an &:
    https://www.glasshousestore.com/?product=pro-drilling-guide-and-drilling-platform&utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla

    My preference is that both the manually and automatically generated feed files use the same permalink structure, so that my test and automatically generated files are the same…

    Here is the feed. Depending on when you pull it it will be the manual or automatic version:

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter davidtrebacz

    (@davidtrebacz)

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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

    Thread Starter davidtrebacz

    (@davidtrebacz)

    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…

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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.

    Thread Starter davidtrebacz

    (@davidtrebacz)

    Here are the current settings ??

    WooCommerce Permalinks Settings

    Link to image

    • This reply was modified 7 years, 8 months ago by davidtrebacz.
    • This reply was modified 7 years, 8 months ago by davidtrebacz.
    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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 https://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.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hello Davidtrebaz,

    Could you confirm that you are using version 1.4.3 of the plugin?

    Best regards,
    Michel

    Thread Starter davidtrebacz

    (@davidtrebacz)

    Yes version 1.4.3. I’ll try the supplied patch today and let you know…

    Thread Starter davidtrebacz

    (@davidtrebacz)

    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.

    Thread Starter davidtrebacz

    (@davidtrebacz)

    I swapped out the wppfm-cron.php file with your changes. I let the automatic jobs run overnight (they run fine). Unfortunately the URLS’s are still not properly permalinked when created using the cron function.

    Here is another feed file as an example:
    https://www.glasshousestore.com/wp-content/uploads/wppfm-feeds/GlassBevels.xml

    Cron generated links look like this:
    https://www.glasshousestore.com/?product=quilt-star-bevel-cluster&utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla

    Instead of the canonical version:
    https://www.glasshousestore.com/product/quilt-star-bevel-cluster/?utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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.

    Thread Starter davidtrebacz

    (@davidtrebacz)

    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.www.ads-software.com/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.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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: https://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

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Issue solved through e-mails.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Different Permalink URL when manually generating feeds’ is closed to new replies.