WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#32204 closed defect (bug) (fixed)

Problem with UTF8 charset

Reported by: kukihn Owned by: helen
Milestone: 4.2.2 Priority: normal
Severity: normal Version: 4.2.1
Component: Database Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

After update from WP 4.1.4 to 4.1.2 at PHP 5.5.0. I got this error:

Warning: preg_replace(): Compilation failed: repeated subpattern is too long at offset 592 in /home/www/xxxxxx/html/www.xxxxxx.com/blog/wp-includes/wp-db.php on line 2640

I found a workaround here:
http://forum.wpde.org/installation/142182-nach-update-auf-4-2-1-keine-umlaute-mehr-speicherbar-2.html#post614130

After disabling this line in wp-db.php it is working again.

// $value['value'] = preg_replace( $regex, '$1', $value['value'] );
continue;
}

Kind regards,
Marcus

Change History (11)

#1 @SergeyBiryukov
6 years ago

  • Component changed from General to Database
  • Description modified (diff)
  • Milestone changed from Awaiting Review to 4.2.2

#2 @pento
6 years ago

Thank you for the bug report, @kukihn!

You'll notice just above that line, there's a bit of code reading {1,50}.

Could you please try reducing the 50, and seeing what happens? What's the largest value it can be before you get warnings?

#3 @kukihn
6 years ago

Hi,
I changed this from 1,50 to 1,40 and it seems to work on my blog.

#4 @pento
6 years ago

In 32375:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

See #32204.

#5 @pento
6 years ago

In 32376:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

Merges [32375] to the 4.2 branch.

See #32204.

#6 @pento
6 years ago

The wp-db.php change needs to be backported to 3.7-4.1, after #32165 is done.

#7 @helen
6 years ago

In 32396:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

Merges [32375] to the 4.1 branch.

props pento.
See #32204.

#8 @helen
6 years ago

In 32397:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

Merges [32375] to the 4.0 branch.

props pento.
See #32204.

#9 @helen
6 years ago

In 32398:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

Merges [32375] to the 3.9 branch.

props pento.
See #32204.

#10 @helen
6 years ago

In 32399:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

Merges [32375] to the 3.8 branch.

props pento.
See #32204.

#11 @helen
6 years ago

  • Owner set to helen
  • Resolution set to fixed
  • Status changed from new to closed

In 32400:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

Merges [32375] to the 3.7 branch.

props pento.
fixes #32204.

Note: See TracTickets for help on using tickets.