peteratomic
Forum Replies Created
-
Forum: Plugins
In reply to: [Object Sync for Salesforce] syncing issuesHi @jonathanstegall tried to backup, disable and delete but not really sure where that worked. Does your setting to delete all data work in multisite contexts? Soon as I deleted, I reinstalled and the odd thing is that I saw the salesforce keys already before importing. There were also two posts from days ago that instantly reappeared after re-installing, which seemed odd.
So far nothing is importing after 10 minutes or so, which led to me wonder if multisite is somehow interfering with the delete process.
Forum: Plugins
In reply to: [Object Sync for Salesforce] syncing issuesStill trying to debug. ACF support said:
If you donβt find the updated data then the import could be a draft post. In this case the data could be attached to a different post ID and this post ID will be a child post of the real post ID. You can look for this by looking for posts where the post_parent is the real post ID.
After frustrating attempts to find the postmeta tables for the existing post IDs, I decided to try deleting all of the imported assets and just start over.
Now I can’t even sync anything. Turned on logging and got this:
Error: WordPress update for assets ID 21960 from Salesforce record 02i5I0000049jPsQAI was unsuccessful with these errors: Errors from WordPress result: WP_Error Object ( [errors] => Array ( [invalid_post] => Array ( [0] => Invalid post ID. ) ) [error_data] => Array ( ) [additional_data:protected] => Array ( ) )So the plugin seems to be permanently mapping SF assets to posts that are gone, with no way to reset that? Only thing I can find in the settings that seems remotely close is “Prevent Duplicate Field Mapping?” but that’s not checked. Any ideas so I can start over?
Forum: Plugins
In reply to: [Object Sync for Salesforce] syncing issuesDid another round of testing with debugging turned on and got these errors:
[08-Sep-2021 13:57:35 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /www/htdocs/w01a2ea9/sanktoberholz.de/wp-includes/class-wp-query.php on line 4044
[08-Sep-2021 13:57:35 UTC] PHP Notice: Trying to get property ‘post_title’ of non-object in /www/htdocs/w01a2ea9/sanktoberholz.de/wp-includes/class-wp-query.php on line 4046
[08-Sep-2021 13:57:35 UTC] PHP Notice: Trying to get property ‘post_name’ of non-object in /www/htdocs/w01a2ea9/sanktoberholz.de/wp-includes/class-wp-query.php on line 4048This happened in this intermediate state, where I change content in SF, it appears in the ACF field in the back-end post editor, but then the post disappears from the post query.
That provide any useful clues?
Forum: Plugins
In reply to: [Object Sync for Salesforce] syncing issuesThanks for the quick reply @jonathanstegall!
1. Its not actually switching from “published” to “draft” in the classic WP sense, but in terms of it being visible or not via post query
2. we don’t have any caching system in place, so does that make it sound like its an ACF problem? That your plugin could be importing data from SF, where it “almost” is saved into an ACF field, but then isn’t visible until manually published?
3. will see if someone on our team can do that.
Finally, if its just you… are you available for hire to help solve these issues?
Forum: Plugins
In reply to: [Object Sync for Salesforce] syncing issuesP.S. There’s budget for this if custom investigation and solutions are required, we could likely hire your team to solve this.
Forum: Plugins
In reply to: [Object Sync for Salesforce] various steps to publishHope my last comment didn’t come across that I was blaming you @jonathanstegall. Think you’ve done something amazing with this plugin and I can appreciate if you can’t support what seems to be an outlier case with this one.
There may be some budget available if you or your team are able to look in to this “on the clock”.
Forum: Plugins
In reply to: [Object Sync for Salesforce] various steps to publishAnd another problem… repeatedly trying to import a SF post (possibly deleted in WP from an earlier test). Never works. Other records update just fine, but can’t get this ‘orphaned’ one to show.
Can’t make sense out of any of this. Close to telling my client they’ll have to hire someone else to do this. Seems so incredibly buggy the whole process.
Forum: Plugins
In reply to: [Object Sync for Salesforce] various steps to publishThink we’re going in circles a bit. I only used bulk edit to change all imported posts to publish. Mentioned it only to be thorough in describing the total experience.
The code snippet to set automatically to publish definitely works. But it doesn’t solve the problem, as the posts still won’t show up unless I manually click Update inside each one. Could live with it if we have to, but definitely isn’t as efficient.
So from everything you said, I thought I was supposed to write a custom function to make sure
save_postfires after data is imported into WP.FYI – once the post is manually saved using the Update button, then all data changes ARE getting instantly saved, so its just the first initial save that is needed.
Forum: Plugins
In reply to: [Object Sync for Salesforce] various steps to publishExcellent, thanks for the clarification @jonathanstegall .
Thanks for the code snippet. Works! (Duh.)
So in order to get the
save_postaction, I’d need a special filter, right? Looking at this:My first guess is to use the ‘after success’ one, since this needs to fire after data is pulled in, but this code comment (“do things if the save succeeded”) makes it sound like it is for AFTER
save_postfires. Or is the “save succeeded” rather “pull succeeded”?Forum: Plugins
In reply to: [Object Sync for Salesforce] various steps to publishhey @jonathanstegall thanks for the quick response. Apologies for the murky post… realized part way thru that it was a bit more complicated to describe than I thought, but was rushed to get it posted.
thanks for confirming #1 and #2… that’s all I was hoping for.
The bulk edit feature I mentioned is when you’re in post list view and you can click the checkbox in the header to select all posts and then reset various properties, like from “draft” to “published”. If in #3 “this plugin” refers to ACF (rather than yours) then I would seem to have confirmed that this bulk edit feature doesn’t trigger
save_postfrom what I’ve seen. (Since nothing showed up until I’d manually clicked “update’.) But sounds like that also won’t happen with your suggestion in #1/2? Will check the link above and see… πForum: Plugins
In reply to: [Object Sync for Salesforce] can’t sync after URL changeOh dear. Found that the client had randomly used a different record type than all the rest.
Solved!
Forum: Plugins
In reply to: [WooCommerce] product shortcode problemsThank you @3sonsdevelopment !
Curious though… was this something that changed with a new version of Woocommerce? The default we’ve had since launch was a product page link on the add to cart button, then it suddenly changed, but can’t say exactly when.
Forum: Plugins
In reply to: [WooCommerce] product shortcode problemsAlso noticed something odd… whether using storefront or our regular theme, the link on the product image is correct:
https://fourvisionsmarket.com/product/handmade-one-of-a-kind-seed-bead-earrings-7/
But the Add to Cart button is:
https://fourvisionsmarket.com/product-category/feminine-tools/earrings-feminine-tools/?add-to-cart=987468929Tried two or three times to do plugin + theme resets, but that had no effect.
Forum: Plugins
In reply to: [WooCommerce] product shortcode problemsActually found that this is happening on ALL product links, not just shortcodes. Tried disabling plugins and using storefront, but neither helped. Tried permalink reset, no help.
Forum: Plugins
In reply to: [WooCommerce] product shortcode problemsFollowed from the documentation here: https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-9