Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Fatal error upon activation
- This topic has 5 replies, 2 voices, and was last updated 11 years, 6 months ago by
bham.
-
AuthorPosts
-
November 20, 2014 at 7:11 pm #2997
bham
ParticipantUsing 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 34I 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 11 years, 6 months ago by
bham.
November 20, 2014 at 7:12 pm #2998bham
ParticipantAttached is my debug.log snippet.
-
This reply was modified 11 years, 6 months ago by
bham.
November 20, 2014 at 7:18 pm #3003Ernest Marcinko
KeymasterHi!
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.
November 20, 2014 at 7:28 pm #3004Ernest Marcinko
KeymasterOkay, 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:
[php]
define("ASP_PATH", plugin_dir_path(__FILE__));
[/php]change that line to:
[php]
define("ASP_PATH", untrailingslashit(plugin_dir_path(__FILE__)) );
[/php]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.
November 20, 2014 at 7:32 pm #3005Ernest Marcinko
KeymasterWait 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.
November 20, 2014 at 9:45 pm #3006bham
ParticipantBingo, that was it. Thanks for the fast follow up!
-
This topic was modified 11 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.