Roots Discourse

Warning: preg_match_all(): Compilation failed: invalid range in character class at offset

#1

Hi Frontend dev here trying my hand at a Roots setup… as per current docs.
Saving WP Bakery pages, triggers the error every time… the page redirects without the page id to /wp/wp-admin/post.php.
This only happens on my local instance and not on the staging environment. I suspect that this may have to do with my vagrant virtual box set up and not WP or Sage itself.

Anyone seen this error before and know how to fix it?

Thanks,

Julie

0 Likes

#2

Hi Julie,

Do you have a stack trace that we can look at? Or what file it comes from?

Also: are you using PHP 7.3 and WordPress pre v5 (e.g. 4.9.8)? I ask because I’ve had a similar issue using those 2 together.

0 Likes

#3

Hi there,

Thanks for replying. I really hope we can sort this out.

Wordpress V 5.03
php on my vagrant box and on the server AWS are the same.

PHP 7.3.2-3+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb  8 2019 15:43:57) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.2-3+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

The stack trace

( ! ) Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 11 in /srv/www/[siteulr]/current/paid/js_composer/include/autoload/hook-vc-grid.php on line 163
Call Stack
#	Time	Memory	Function	Location
1	0.0015	477128	{main}( )	.../post.php:0
2	0.5995	40175648	edit_post( )	.../post.php:206
3	0.6024	40173416	wp_update_post( )	.../post.php:399
4	0.6027	40184568	wp_insert_post( )	.../post.php:3820
5	0.6181	40330680	do_action( )	.../post.php:3747
6	0.6181	40331056	WP_Hook->do_action( )	.../plugin.php:453
7	0.6181	40331056	WP_Hook->apply_filters( )	.../class-wp-hook.php:310
8	0.6219	40339824	Vc_Post_Admin->save( )	.../class-wp-hook.php:288
9	0.6219	40339848	Vc_Post_Admin->setPostMeta( )	.../class-vc-post-admin.php:95
10	0.6231	40345312	Vc_Post_Admin->setSettings( )	.../class-vc-post-admin.php:170
11	0.6231	40345760	apply_filters( )	.../class-vc-post-admin.php:149
12	0.6231	40346160	WP_Hook->apply_filters( )	.../plugin.php:203
13	0.6231	40347664	Vc_Hooks_Vc_Grid->gridSavePostSettingsId( )	.../class-wp-hook.php:286
14	0.6232	40349352	preg_match_all ( )	.../hook-vc-grid.php:163

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/[siteurl]/current/paid/js_composer/include/autoload/hook-vc-grid.php:163) in /srv/www/[siteurl]/current/web/wp/wp-admin/post.php on line 210
Call Stack
#	Time	Memory	Function	Location
1	0.0015	477128	{main}( )	.../post.php:0
2	0.6293	40296600	setcookie ( )	.../post.php:210

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/[siteurl]/current/paid/js_composer/include/autoload/hook-vc-grid.php:163) in /srv/www/[siteurl]/current/web/wp/wp-includes/pluggable.php on line 1223
Call Stack
#	Time	Memory	Function	Location
1	0.0015	477128	{main}( )	.../post.php:0
2	0.6296	40296824	redirect_post( )	.../post.php:213
3	0.6300	40296936	wp_redirect( )	.../post.php:1902
4	0.6301	40297072	header ( )	.../pluggable.php:1223
0 Likes

#4

Looking at your stack trace, I don’t see anything that suggests it could be Bedrock related.
Have you tried contacting the support for WP Bakery? Their dedicated support is more likely to be a better choice to resolve the issue.

0 Likes

#5

I did, but they insisted on an environment… It works on staging so not like that would help, since it works there. Oh well maybe I’ll figure it out. Thanks for your help.

0 Likes

closed #6

This topic was automatically closed after 42 days. New replies are no longer allowed.

0 Likes