• Resolved zuhaibsiddiqui

    (@zuhaibsiddiqui)


    Hi Support,

    For the last few days, I am receiving the below series of errors and I didn’t able to find the solution.

    I already updated the WordPress and plugin but still receiving continuous errors can you please let me how can we resolve it.

    Errors:
    [04-Oct-2021 14:55:53 UTC] PHP Fatal error: Uncaught Error: Class ‘Algolia_Admin’ not found in /home/—/public_html/wp-content/plugins/wp-search-with-algolia/includes/class-algolia-plugin.php:168
    Stack trace:
    #0 /home/—/public_html/wp-includes/class-wp-hook.php(303): Algolia_Plugin->load(”)
    #1 /home/—/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #2 /home/—/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 /home/—/public_html/wp-settings.php(578): do_action(‘init’)
    #4 /home/—/public_html/wp-config.php(75): require_once(‘/home/wwwmcds/p…’)
    #5 /home/—/public_html/wp-load.php(50): require_once(‘/home/wwwmcds/p…’)
    #6 /home/—/public_html/wp-cron.php(44): require_once(‘/home/wwwmcds/p…’)
    #7 {main}
    thrown in /home/—/public_html/wp-content/plugins/wp-search-with-algolia/includes/class-algolia-plugin.php on line 168`

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you confirm if this is just started happening with the 2.1.0 release? Or are you potentially still on version 2.0.1 and the error is still occurring?

    Asking because I know 2.1.0 went out to everyone on Friday the 1st.

    Thread Starter zuhaibsiddiqui

    (@zuhaibsiddiqui)

    Its not because of latest version because update of this plugin didn’t show in WordPress….but when I looked into the plugin it shows me that plugin last updated few days back…..

    so I uninstall my current one and installed latest one…

    The main change which I seen earlier this plugin folder has a long name search by algolia instant search result rather than just wp search with algolia.

    but errors remains the same….

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So the folder name is no longer wp-search-with-algolia inside your plugin directory?

    Maybe instead of trying to use the UI, let’s download fresh copy directly from www.ads-software.com here

    https://downloads.www.ads-software.com/plugin/wp-search-with-algolia.2.1.0.zip

    Thread Starter zuhaibsiddiqui

    (@zuhaibsiddiqui)

    its same as yours wp-search-with-algolia and I downloaded it from the main plugin page.

    Can you please tell me how can I fix this issue.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Noted.

    Trying to help you out here because these 3 lines here:
    https://github.com/WebDevStudios/wp-search-with-algolia/blob/main/includes/class-algolia-plugin.php#L167-L169

    Don’t seem to be finding this entire file:
    https://github.com/WebDevStudios/wp-search-with-algolia/blob/main/includes/admin/class-algolia-admin.php

    So I’m trying to make sure the file is at least in place in the install

    For whatever reason, it seems to not be finding the file when the plugin is loaded and this line is reached:

    https://github.com/WebDevStudios/wp-search-with-algolia/blob/main/classmap.php#L52

    The initial parts aren’t dictated by WordPress hooks, so they’re loaded pretty readily as things execute.

    Beyond that, I don’t know why it’s not finding it at the moment.

    Apologies for bumping this up here. We experienced the same issue. I’m still in the investigating the cause, but wanted to provide a +1 here as it occurred exactly as described above.

    PHP Fatal error: Uncaught Error: Class 'Algolia_Admin' not found in /nas/content/live/examplesite/wp-content/plugins/wp-search-with-algolia/includes/class-algolia-plugin.php:168\nStack trace:\n#0 /nas/content/live/examplesite/wp-includes/class-wp-hook.php(303): Algolia_Plugin->load('')\n#1 /nas/content/live/examplesite/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)\n#2 /nas/content/live/examplesite/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#3 /nas/content/live/examplesite/wp-settings.php(578): do_action('init')\n#4 /nas/content/live/examplesite/wp-config.php(122): require_once('/nas/content/li...')\n#5 /nas/content/live/examplesite/wp-load.php(50): require_once('/nas/content/li...')\n#6 /nas/content/live/examplesite/wp-cron.php(44): require_once('/nas/content/li...')\n#7 {main}\n thrown in /nas/content/live/examplesite/wp-content/plugins/wp-search-with-algolia/includes/class-algolia-plugin.php on line 168, referer: https://examplesite.net/wp-cron.php?doing_wp_cron=1634685960.5988490581512451171875

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    @vskylabv just to help confirm and/or try to troubleshoot, you’ve confirmed that the file does indeed exist and the file is not empty, correct?

    With this content as well

    https://github.com/WebDevStudios/wp-search-with-algolia/blob/2.1.0/includes/admin/class-algolia-admin.php

    If anything, hopefully your own sleuthing can help since we haven’t managed to recreate thus far.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Class ‘Algolia_Admin’ not found in class-algolia-plugin.php:168’ is closed to new replies.