• Resolved groupy112

    (@groupy112)


    First of all, thank you for the plugin. With the latest (1.5.1) version, I’m experiencing an issue while adding the aws keys. The domain dropdown is empty and php(7.3) reports the following error:

    PHP Fatal error: Uncaught Error: Call to undefined function get_sites() in /nas/content/live/{{ username }}/wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-cdn-admin.php:189\nStack trace:\n#0 /nas/content/live/{{ username }}/wp-content/plugins/aws-cdn-by-wpadmin/aws-cdn.php(88): require_once()\n#1 /nas/content/live/{{ username }}/wp-includes/class-wp-hook.php(288): wpaawscdn->wpaactoplevel_page('')\n#2 /nas/content/live/{{ username }}/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)\n#3 /nas/content/live/{{ username }}/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#4 /nas/content/live/{{ username }}/wp-admin/admin.php(254): do_action('toplevel_page_w...')\n#5 {main}\n thrown in /nas/content/live/{{ username }}/wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-cdn-admin.php on line 189, referer: {{ site_url }}/wp-admin/plugins.php?plugin_status=all&paged=1&s

    {{}} is my edit.

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Hello @groupy112

    What is the version of WordPress?

    Thread Starter groupy112

    (@groupy112)

    Hey, tried on 5.3.2 and 5.2.5.

    Plugin Author luckychingi

    (@luckychingi)

    Thanks @groupy112

    How is the multisite setup?

    Sub domains or sub folders?

    Thread Starter groupy112

    (@groupy112)

    It’s using polylang. Another wp site I tried it on is using WPML.

    • This reply was modified 4 years, 12 months ago by groupy112.
    Plugin Author luckychingi

    (@luckychingi)

    How is the multisite setup?

    Sub domains or sub folders?

    Thread Starter groupy112

    (@groupy112)

    Subfolders .com/en, .com/fr, etc.

    Plugin Author luckychingi

    (@luckychingi)

    Thanks, I’ll check and update.

    Plugin Author luckychingi

    (@luckychingi)

    @groupy112

    I checked both sub domains and sub folder multisite and the plugin works fine.

    get_sites() is a WordPress function and should be available on any WP sites.

    Maybe checking the server logs can tell us why the multisite isnt able to find the get_sites() function.

    Thread Starter groupy112

    (@groupy112)

    Thanks for the help! I checked the logs but there was nothing logged regarding this event.

    Same error here:
    Fatal error: Uncaught Error: Call to undefined function get_sites() in /home/admin/web/<Site_URL>/public_html/wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-cdn-admin.php:184 Stack trace: #0 /home/admin/web/<Site_URL>/public_html/wp-content/plugins/aws-cdn-by-wpadmin/aws-cdn.php(88): require_once() #1 /home/admin/web/<Site_URL>/public_html/wp-includes/class-wp-hook.php(288): wpaawscdn->wpaactoplevel_page('') #2 /home/admin/web/<Site_URL>/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #3 /home/admin/web/<Site_URL>/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/admin/web/<Site_URL>/public_html/wp-admin/admin.php(254): do_action('toplevel_page_w...') #5 {main} thrown in /home/admin/web/<Site_URL>/public_html/wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-cdn-admin.php on line 184

    I am not using multisite.
    Tried deactivating every other plugin but still cant get this to work.

    • This reply was modified 4 years, 11 months ago by techdev26.
    Plugin Author luckychingi

    (@luckychingi)

    @techdev26 Try to uninstall and reinstall the plugin. I removed the line that was causing the issue

    Its working now. Thank you, you are awesome!
    @luckychingi

    • This reply was modified 4 years, 11 months ago by techdev26.
    Plugin Author luckychingi

    (@luckychingi)

    Resolved with an update

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Configuration fails with get_sites() error’ is closed to new replies.