Fatal error upon activation

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

 
Participant
7 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2997

    Participant

    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 7 years, 2 months ago by  bham.
    #2998

    Participant

    Attached is my debug.log snippet.

    • This reply was modified 7 years, 2 months ago by  bham.
    Attachments:
    You must be logged in to view attached files.
    #3003

    Hi!

    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 :)


    #3004

    Okay, 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 :)


    #3005

    Wait 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 :)


    #3006

    Participant

    Bingo, that was it. Thanks for the fast follow up!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.