• Resolved Gone Fishin

    (@terryg-1)


    On the Contact edit page, I am able to insert existing tags into the tag box. Upon Save, there is a popup notice saying the update was successful, but the tags do not get added. The tag_relationships table is not updated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Adrian Tobey

    (@trainingbusinesspros)

    Hi Terry

    Are you attempting this with tags you created, or some of the default tags?

    Please note that you cannot add/remove preference tags (Marketable, Unconfirmed, Confirmed, Unsubscribed, etc…) as they are synced to the current opt-in status of the contact.

    Thread Starter Gone Fishin

    (@terryg-1)

    These are tags that I created.

    And if it matters any, this is with PHP 7.4.33.

    Plugin Author Adrian Tobey

    (@trainingbusinesspros)

    Could you send screenshots or a video? That would help us diagnose the issue.

    Thread Starter Gone Fishin

    (@terryg-1)

    I don’t know how that will help you diagnose the issue. Seems to me all that will do is confirm that I am not lying about it. Nevertheless, here is a screen recording.
    https://www.dropbox.com/s/vkwwodo18jifzra/groundhogg-screen.mkv?dl=0

    The browser developer console shows that the tags are being sent by data.min.js in the PATCH request to https://localhost/wordpress/wp-json/gh/v4/contacts/1.
    https://www.dropbox.com/s/eakcadd5vl0exoi/Groundhogg-request.png?dl=0

    But, the tags are not in the response.
    https://www.dropbox.com/s/j2xguw6agr3b1j9/Groundhogg-response.png?dl=0

    Plugin Author Adrian Tobey

    (@trainingbusinesspros)

    Are there any PHP logs, DB logs generated when this occurs?

    Thread Starter Gone Fishin

    (@terryg-1)

    PHP7 logs errors to the Apache2 error_log file. There are no entries added to the error_log when this occurs. There are entries added to the access_log that are consistent with the requests show by the browser developer console.

    A MariaDB general log shows no UPDATE query:
    https://www.dropbox.com/s/2yhiwuhn5byqzva/mariadb.log?dl=0


    Plugin Author Adrian Tobey

    (@trainingbusinesspros)

    Are you able to replicate this behavior on other sites, or maybe a local development site?

    Is it all contacts or just the one from the video?

    Are you able to apply tags via automation, quick edit, or bulk editing?

    For the life of me cannot reproduce this issue.

    Thread Starter Gone Fishin

    (@terryg-1)

    Well, what do you know? I installed the plugin on a multi-site setup I have locally. And, adding tags works.

    So, I went back to the single WP install, removed the plugin, dropped the gh tables, and purged 66 records like ‘%gh_%’ from wp_options. Then, reinstalled the plugin, and, yep, I can add tags. I must have hammered the install somehow. Sorry for the noise.

    BTW, you said, “Please note that you cannot add/remove preference tags (Marketable, Unconfirmed, Confirmed, Unsubscribed, etc…) as they are synced to the current opt-in status of the contact.” But, I was able to delete them from the “Tags” page. (Maybe that’s how I mucked things up before.) If they are synced, shouldn’t deleting them be prevented?

    Once last thing: You mentioned adding tags via automation. I don’t find anything in the documentation regarding automation. Could you provide a link to get me started?

    Thank you for your time, and your patience & persistence.

    P.S. Why is line 14 in tracking.js.php not commented out [require_once( “C:\Users\adria\Local Sites\groundhogg\app\public” . ‘/wp-load.php’ );] ? For that matter, why is that file even in the package? I can find no file that calls it.

    Plugin Author Adrian Tobey

    (@trainingbusinesspros)

    Glad it’s working now ??

    I recommend you visit our academy for instructional videos on how to get started with Groundhogg and automation: https://academy.groundhogg.io/

    Thread Starter Gone Fishin

    (@terryg-1)

    Okay, thank you for that link.

    Just FYI, I still think the standard tags should be protected from deletion.

    And again, sorry for wasting your time.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Add tags to contact doesn’t work’ is closed to new replies.