Support » Plugin: Search Regex » Call to undefined method SearchRegex::base_url()

  • Hi,

    I’m getting the error Call to undefined method SearchRegex::base_url() at my WP multisite network.

    WP 4.7.3
    PHP 7.x

    Any hints?

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Still having this issue! No comment or help?

    Hi YogieAnamCam,
    According to “Full documentation can be found on the Search Regex Page page.” there a comment that seems to tell us that SRP does not work for multisite :
    Good luck anyway!

    If it helps creators at all, here is a stack-trace for the error:

    Error: Uncaught exception 'Error' with message 'Call to undefined method SearchRegex::base_url()' in /wp-content/plugins/search-regex/view/results.php:26
    in include called at /wp-content/plugins/search-regex/search-regex.php (130)
    in SearchRegex::render called at /wp-content/plugins/search-regex/search-regex.php (116)
    in SearchRegex::admin_screen called at ? (?)
    in call_user_func_array called at /wp-includes/class-wp-hook.php (286)
    in WP_Hook::apply_filters called at /wp-includes/class-wp-hook.php (310)
    in WP_Hook::do_action called at /wp-includes/plugin.php (453)
    in do_action called at /wp-admin/admin.php (224)
    in require_once called at /wp-admin/tools.php (10)

    For what it’s worth, the fix for this is simply creating the method in the SearchRegex class.

    In search-regex.php paste the following on line 133:

    	function base_url() {
    	    return __FILE__;
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call to undefined method SearchRegex::base_url()’ is closed to new replies.