Skip Navigation

[Resolved] Problems between Learnpress and Types v3.3.3

This thread is resolved. Here is a description of the problem and solution.

Problem:

Create a new lesson in Learnpress. Courses could be created but not lessons. It's a multisite which, on this particular site, uses Learnpress and Toolset Types.

I got PHP error: "call to undefined function get_current_screen()" when using Types 3.3.3

Solution:

There is a similar known issue on Toolset Types plugin version 3.3.3, see the errata:

https://toolset.com/errata/fatal-error-when-importing-toolset-types-settings/

It is fixed in the latest version of Types plugin 3.3.4, please try to upgrade to Types 3.3.4, and test again, you can download it here:

https://toolset.com/account/downloads/

Relevant Documentation:

This support ticket is created 5 years, 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by jesperA-2 5 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1310057

I am trying to: Create a new lesson in Learnpress. Courses could be created but not lessons. It's a multisite which, on this particular site, uses Learnpress and Toolset Types.

Link to a page where the issue can be seen: Just Create a new course anywhere and try to create a lesson and the error will be shown.

I expected to see: It should just work and it does with previous Types version 3.3.1 I needed to roll back to.

Instead, I got: "call to undefined function get_current_screen()" when using Types 3.3.3. This somehow resulted in that Learnpress hangs when creating a new lesson. If I disable the Types plugin it also works. I think v3.3.2 worked as well although I'm not certain.

#1310095

Hello,

There is a similar known issue on Toolset Types plugin version 3.3.3, see the errata:
https://toolset.com/errata/fatal-error-when-importing-toolset-types-settings/

It is fixed in the latest version of Types plugin 3.3.4, please try to upgrade to Types 3.3.4, and test again, you can download it here:
https://toolset.com/account/downloads/

#1310215

My issue is resolved now. Thank you!