Skip Navigation

[Resolved] wptCallbacks is not defined – Caused by CPT Rename?

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 5 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#1264835
FireShot Capture 023 - Edit Post Type ‹ touchNEUROLOGY — WordPress - touchneurology.com.png
FireShot Capture 022 - Edit Authors - Relationships ‹ touchNEUROLOGY — WordPress_ - touchneurology.com.png
Screenshot 2019-06-11 at 04.42.02.png

The above error is coming into my console and means that I'm unable to edit posts across the site, I believe this is because it prevents the JS loading which brings in the WSWYWIG editor.

I believe this has been caused by using rename an imported custom post type from authors to authors-cpt.

How do I amend the relationship to make this work again?

Thanks,
Jack

#1265211

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Can I get some more specific details about how you arrived at this point?

On my local test site where I had some existing relationships and sample data I went to Toolset > Post Types, edited a post type which is involved in relationships, and changed the slug of the post type and saved.

I went to Toolset > Relationships and checking the existing relationships they appeared as normal.

Going to the post edit screen of one of the affected posts I could see the existing relationships, no problem.

And checking the database, in wp_posts I could see that the post_type had been updated with the new slug.

What is it that you've done differently?

#1265555

Hi Nigel,

The initial import was done from Drupal.

I've not done anything different to what you've done above.

We need to get this resolved as soon as possible as we're currently unable to update a large ammount of posts.

Thanks,
Jack

#1266345

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Can you clarify what order you did things in, i.e. defining post types, importing data, setting up relationships, changing post type slugs?

I'll need a copy of your site to investigate further to see if we can identify where it's gone wrong, and I'll set up a private reply for you to share backup files.

hidden link