Home>Support>Warning: preg_replace_callback(): Compilation failed

Warning: preg_replace_callback(): Compilation failed

I have this error showing on the front end:

Warning: preg_replace_callback(): Compilation failed: invalid range in character class at offset 22 in /home/excell02/public_html/wp-content/plugins/so-widgets-bundle/base/siteorigin-widget.class.php on line 853

This is line 853:
//handle less @import statements
$less = preg_replace_callback( ‘/^@imports+”.*?/?([w-.]+)”;/m’, array( $this, ‘get_less_import_contents’ ), $less );

My web-site is https://excellench.com

Any clue?


This is a free community support forum. Replies are not guaranteed. If you need professional email support, please purchase a SiteOrigin Premium license.

  1. 8 days, 8 hours ago Alex S Hi, I Work Here

    Hi Mor,

    That’s odd. Can you please send me an export of the page that this issue is occurring on so I can run some tests against the page? To do this please open up the linked page in the editor and click the Layout button in the Page Builder toolbar. Then click import/export and then click download. Please upload the export to a 3rd party file hosting site such as WeTransfer (no email is required).

  2. 8 days, 6 hours ago morsagmon

    Hi Alex.

    This happened in 3 different pages.
    Anyway, I couldn’t let my front-end be like that, and commenting out this line (naturally) caused other issues. I had no idea if and when help will come along, so I made a decision to let go of SO all together and not use it anymore.
    This is unfortunate, as I liked it…


  3. 8 days, 57 minutes ago Alex S Hi, I Work Here

    Hi Mor,

    I’m sorry to hear that. Unfortunately, we’re not too sure why this issue occurred. If you ever decide to try using our plugins again and this issue happens again, please let me know and we’ll take a look into this issue asap.

  4. 8 days, 43 minutes ago morsagmon

    Ok, thank you.

Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More