• Resolved apryaldy

    (@apryaldy)


    Hi,

    i just installed the plugin on my local server without any error, however once i activated and visit the plugin page, i got this error:

    Warning: preg_replace(): Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 17 in D:\WebServ\updater\assets\plugins\wp-invoice\vendor\usabilitydynamics\lib-ui\lib\class-utility.php on line 74

    there was many of them.
    kindly need your advice.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter apryaldy

    (@apryaldy)

    apparently, this plugin wasn’t supported if i change the folder of wp-content.
    is there any other way to make this plugin work for me since i already change the wp-content folder into something else.
    i was following this guide: https://www.hongkiat.com/blog/renaming-wordpress-wp-content-folder/

    thanks.

    Thread Starter apryaldy

    (@apryaldy)

    i just make some hard code to make the class-utility.php become like this:

    
            /** Determine where th library installed ( it's a theme or plugin ) */
            if( defined( 'WPMU_PLUGIN_DIR' ) && strpos( wp_normalize_path( dirname(__FILE__) ), wp_normalize_path( WPMU_PLUGIN_DIR ) ) !== false
            ) {
              $instance = 'mu-plugin';
            } elseif ( defined( 'PLUGINDIR' ) &&  strpos( wp_normalize_path( dirname(__FILE__) ), wp_normalize_path( PLUGINDIR ) ) !== false
            ){
              $instance = 'plugin';
            } elseif ( strpos( wp_normalize_path( get_template_directory() ), wp_normalize_path( dirname(__FILE__) ) ) !== false ){
              $instance = 'plugin';
            } else {
              $instance = 'plugin';
            }
    

    return all the instance into ‘plugin’
    then it’s work.

    • This reply was modified 8 years, 3 months ago by apryaldy.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘preg_replace(): Compilation failed: PCRE does not support’ is closed to new replies.