Solution: ‘Error processing your request’ for link share
-
@wpmudev-support9 The Share link doesn’t work for version PHP 7.3. Plugin needs an upgrade.
Error log: preg_match(): Compilation failed: invalid range in character class at offset 4
Path: wp-content/plugins/buddypress-activity-plus/lib/external/simple_html_dom.phpSolution:
Change:
// pattern of CSS selectors, modified from mootools
$pattern = "/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
To:
$pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
And
Change:
if (!preg_match("/^[\w-:]+$/", $tag)) {
to:
if (!preg_match("/^[\w\-:]+$/", $tag)){
- The topic ‘Solution: ‘Error processing your request’ for link share’ is closed to new replies.