Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Fatal error upon activation
This topic contains 5 replies, has 2 voices, and was last updated by bham 9 years ago.
- AuthorPosts
- November 20, 2014 at 7:11 pm #2997
Using the attached zip file that we got from Code Canyon, I get the following message after uploading the .zip file to my WordPress site:
Warning: require_once(D:\Websites\wordpress_test\wp-content\plugins\ajax-search-pro//includes/asp_init.class.php) [function.require-once]: failed to open stream: No such file or directory in D:\Websites\wordpress_test\wp-content\plugins\ajax-search-pro\ajax-search-pro.php on line 34 Fatal error: require_once() [function.require]: Failed opening required 'D:\Websites\wordpress_test\wp-content\plugins\ajax-search-pro//includes/asp_init.class.php' (include_path='.;C:\php\pear;D:\Websites\wordpress_test\wp-content\plugins\wp-document-revisions/includes') in D:\Websites\wordpress_test\wp-content\plugins\ajax-search-pro\ajax-search-pro.php on line 34
I am sorry I am unable to send along login data for the website. It is hosted internally within my companies intranet.
-
This topic was modified 9 years ago by
bham.
November 20, 2014 at 7:12 pm #2998November 20, 2014 at 7:18 pm #3003Hi!
May I ask what kind of server are you using? I’m guessing it some kind of windows server based on the paths. It looks like there is some kind of directory/path issue. My first guess would be that the plugin_dir_path(__FILE__) function might return an extra backslash, but I’m not sure if that’s the cause at all.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 20, 2014 at 7:28 pm #3004Okay, let’s try something.
Open up the wp-content/plugins/ajax-search-pro/ajax-search-pro.php file and go to line 13, where you should see this:
define("ASP_PATH", plugin_dir_path(__FILE__));
change that line to:
define("ASP_PATH", untrailingslashit(plugin_dir_path(__FILE__)) );
Now try to activate the plugin again, if it throws the same error message, then it’s something else. Copy/pase the error message you get after this change.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 20, 2014 at 7:32 pm #3005Wait a minute, I just opened the zip file you attached. That’s corrupted, directories and files are missing from it, that’s why you get the error message!
Please try to download the file again from codecanyon. The file should be over 1MB, definitely not 300k.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 20, 2014 at 9:45 pm #3006Bingo, that was it. Thanks for the fast follow up!
-
This topic was modified 9 years ago by
- AuthorPosts
You must be logged in to reply to this topic.