Navigation überspringen

[Closed] Undefined constant

This support ticket is created vor 7 months, 2 weeks. 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.

Dieses Thema enthält 1 reply, hat 1 Stimme.

Zuletzt aktualisiert von Christopher Amirian vor 7 months, 2 weeks.

Assistiert von: Christopher Amirian.

Author
Artikel
#2831134

Hi,

We have couple of sites getting an error for an undefined constant:
Fatal error: Uncaught Error: Undefined constant "WPCF_EMBEDDED_RES_RELPATH" in /public_html/wp-content/plugins/types/vendor/toolset/types/admin.php:95

Stack Trace
1.
wpcf_admin_init_hook()
/public_html/wp-includes/class-wp-hook.php:324
2.
WP_Hook->apply_filters()
/public_html/wp-includes/class-wp-hook.php:348
3.
WP_Hook->do_action()
/public_html/wp-includes/plugin.php:517
#3 versteckter Link) : eval()'d code(172): do_action()
5.
eval()
versteckter Link
6.
WP_CLI\Context\Admin->load_admin_environment()
versteckter Link
7.
WP_CLI\Context\Admin->WP_CLI\Context\{closure}()
/public_html/wp-includes/class-wp-hook.php:322
8.
WP_Hook->apply_filters()
/public_html/wp-includes/class-wp-hook.php:348
9.
WP_Hook->do_action()
/public_html/wp-includes/plugin.php:517
10.
do_action()
/public_html/wp-settings.php:727
11.
require('...')
versteckter Link
12.
WP_CLI\Runner->load_wordpress()
versteckter Link
13.
WP_CLI\Runner->start()
versteckter Link
14.
WP_CLI\Bootstrap\LaunchRunner->process()
versteckter Link
15.
WP_CLI\bootstrap()
versteckter Link
16.
include('...')
versteckter Link
17.
include('...')
/usr/local/bin/wp:4
18.
{main}

#2831152

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi,

Welcome to Toolset support. Would you please do as follows?

Create a full backup.

In WP Admin, deactivate all Toolset plugins (Types, Blocks, Forms, Maps, Access).

Delete the entire /wp-content/plugins/types/ folder via SFTP/hosting file manager (don’t just “Update”).

Upload a fresh copy of Types (same version as the rest of your Toolset plugins). Re-activate Types, then the others.

Clear opcode/page caches (PHP-FPM/opcache, any object cache, page cache).

Toolset → Settings → Front-end content → Clear cache.

If the issue persists, please check if the issue happens on a minimal installation:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except:
. Toolset types
. Toolser Blocks
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thanks.

The topic ‘[Closed] Undefined constant’ is closed to new replies.