Reply To: Compatability issue

#6895

Ernest Marcinko
Keymaster

Thanks, it actually helps 🙂

Let's try disabling the FTP credentials access prompt in the code first, and then we see what comes next. I'm guessing you have access to the files, if not please ask for FTP access, because we are going to change a few lines.

Once you have FTP access, open up the wp-content/plugins/ajax-search-pro/includes/compatibility.class.php file and go to lines 67-72, where you should see this:

            $access_type = get_filesystem_method();
            ob_start();
            $creds = request_filesystem_credentials(site_url() . '/wp-admin/', ”, false, false, null);
            $_c = ob_get_clean();
            if ($access_type === 'direct' || WP_Filesystem($creds))
                return true;

simply disable those lines by commenting them like so:

            /*$access_type = get_filesystem_method();
            ob_start();
            $creds = request_filesystem_credentials(site_url() . '/wp-admin/', ”, false, false, null);
            $_c = ob_get_clean();
            if ($access_type === 'direct' || WP_Filesystem($creds))
                return true;*/

or you can remove these lines if you prefer that way.

Now after saving, the FTP prompt should disappear and hopefully the plugin starts to work as normal.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)