Forum Replies Created

Viewing 15 replies - 31 through 45 (of 298 total)
  • Thread Starter peteratomic

    (@peteratomic)

    We have ultimate member installed but I deactivated that and still couldn’t access the settings.

    Not seeing your plugin listed under the settings menu.

    This is the link I’m trying to access, found on the plugins page: admin.php?page=wpcode

    Thread Starter peteratomic

    (@peteratomic)

    Solved it by uploading to Google Sheets then redownloading as a new CSV.

    Thread Starter peteratomic

    (@peteratomic)

    Have tried about four or five times now, including with other plugins off and its always the same.

    Thread Starter peteratomic

    (@peteratomic)

    WP 5.9.3
    PHP 7.4.29

    By “blank” I mean that the settings get duplicated (such as width and height and slider type) but that no slides are duplicated. Screen looks identical to creating a new slider.

    I turned on debug mode and refreshed the duplicated slider and no errors are visible.

    Thread Starter peteratomic

    (@peteratomic)

    Can see a screenshot here. Shows both that there ARE 16 slides and also no slides. Some of the settings were copied but there are no actual slides in the duplicated slideshow.

    https://goldprodukt.de/wp-content/uploads/2022/05/Screen-Shot-2022-05-19-at-1.56.33-PM.png

    Thread Starter peteratomic

    (@peteratomic)

    Worked! Thanks!

    Thread Starter peteratomic

    (@peteratomic)

    Here’s the snippet in case that’s relevant:

    // syncing data from salesforce -- changes default to publish
    add_filter( 'object_sync_for_salesforce_pull_params_modify', 'change_pull_params', 10, 6 );
    function change_pull_params( $params, $mapping, $object, $sf_sync_trigger, $use_soap, $is_new ) {
    	$params['post_status'] = array(
    		'value' => 'publish',
    		'method_modify' => 'wp_update_post',
    		'method_read' => 'get_post',
    	);
    	return $params;
    }
    Thread Starter peteratomic

    (@peteratomic)

    Tried unchecking the “pull to drafts” setting, as I remembered that I used one of the snippets in our functions file for automatically saving as published and may not have had that setting checked as a result. However, it didn’t matter as its still creating an additional post with every edit.

    Thread Starter peteratomic

    (@peteratomic)

    Ok, downloading the data tables to test as you describe.

    But what about this new issue of a second post being created, rather than the plugin editing the existing one? Thought you had it designed that it was locked in place that one asset in SF was assigned to a single post, which is why I couldn’t update after deleting all the posts.

    Tested again and another minor edit is creating an additional post, leaving us with three versions of the same item. I have “pull to drafts” selected: “If selected, WordPress will check for matches against existing drafts of this object type, and will also update existing drafts.” That’s clearly not happening. Would seem that this issue needs to be resolved, as there’s no way to check what’s happening with edits on an existing post when new ones are being created every time.

    Thread Starter peteratomic

    (@peteratomic)

    Assumed it was the multisite thing, so I went ahead and deleted the object_sync_sf_object_map table and am now seeing the last two edits syncing.

    I can see both of those newly synced posts in the database in wp_posts. Both marked there and in WP backend as published. I can also see all of the data from SF in the postmeta table in my ACF fields, as well as in the backend when editing the post.

    And yet, even with all of this, nothing is “live” until I manually click UPDATE.

    Next I try to make a text change in SF and rather than updating the existing post, a new one is created rather than updating the existing post.

    So… any ideas from the above info?

    Thread Starter peteratomic

    (@peteratomic)

    Hi @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.

    Thread Starter peteratomic

    (@peteratomic)

    Still 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?

    Thread Starter peteratomic

    (@peteratomic)

    Did 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 4048

    This 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?

    Thread Starter peteratomic

    (@peteratomic)

    Thanks 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?

    Thread Starter peteratomic

    (@peteratomic)

    P.S. There’s budget for this if custom investigation and solutions are required, we could likely hire your team to solve this.

Viewing 15 replies - 31 through 45 (of 298 total)