• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Digital Ocean Spaces browser doesn’t work, returns ajax script returns 500

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Digital Ocean Spaces browser doesn’t work, returns ajax script returns 500

  • John S. 4 years, 9 months ago

    I encounter this all the time, however normally use the full URL to add videos (and no longer load them directly from DO, instead using the CDN)
    This is now a blocker because I want to run coconut encode jobs

    The error I’m getting is as follows:

    Request URL: https://xxxxxx/wp-admin/admin-ajax.php?_fs_blog_admin=true
    Request Method: POST
    Status Code: 500
    Remote Address: [xxxxx]:443
    Referrer Policy: strict-origin-when-cross-origin

    Form Data:
    action: load_dos_assets

    Response:
    <p>There has been a critical error on your website.</p><p>Learn more about debugging in WordPress.</p>

Viewing 24 replies - 1 through 24 (of 24 total)
  • Juraj Kacaba 5 years ago
    Avatar photo

    Hello John,

    Please copy your DOS settings by following this guide mainly check if your spaces access keys are correct.

    Thanks,
    Juraj

    John S. 5 years ago

    They are correct, and working. This browser wasn’t working even when I was serving directly from DO. Perhaps it needs to base64 encoded?
    The theme I’m running is TheGem

    Martin 5 years ago

    Hello John,

    please try to install this plugin: https://wordpress.org/plugins/error-log-monitor/ Then try to open that DigitalOcean Spaces browser again and see if any error appears in it.

    You can also check PHP error logs directly on the server. If you are not sure about it, the server technical support should be able to give you a hand.

    Thanks,
    Martin

    John S. 5 years ago

    Ah currently I will have to recreate the current set up in a local environment, as production is running on Docker/K8S and would require a custom docker file to add the required settings for that plugin to work.

    Martin 5 years ago

    Hello John,

    in that case I would recommend that you check the PHP error logs directly. That plugin was just an idea in case you have no access to these logs.

    Thanks,
    Martin

    John S. 5 years ago

    PHP Fatal error: Cannot redeclare GuzzleHttp\\uri_template() (previously declared in /bitnami/wordpress/wp-content/plugins/ilab-media-tools-premium/vendor/guzzlehttp/guzzle/src/functions.php:17) in /bitnami/wordpress/wp-content/plugins/fv-wordpress-flowplayer/includes/aws/GuzzleHttp/functions.php on line 18, referer: (redacted)

    Looks like my media cloud plugin is declaring guzzle already?

    • This reply was modified 3 years, 11 months ago by Mária Stašová. Reason: URL redacted - user request
    Martin 5 years ago

    Hello John,

    Could you please reinstall FV Player from this link? https://github.com/foliovision/fv-wordpress-flowplayer/archive/466-composer.zip
    To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    Until now we were including our “own” lightweight version of AWS SDK for PHP, but it appears we just have to use Composer for it. The plugin ZIP file is 4.3 MB this way, it used to be 1.6 MB with out custom version.

    I’ll still look into improving this, but at least you can test things on your end.

    Thanks,
    Martin

    John S. 5 years ago

    Browser now works, and I have credentials set for Coconut, however this is the error that gets thrown:

    [Mon Aug 17 18:43:29.908735 2020] [php7:error] [pid 75] [client 1.2.3.4:35688] PHP Fatal error:  Uncaught Error: Class 'Aws\\Credentials\\Credentials' not found in /path/wp-content/plugins/fv-player-coconut/fv-player-coconut.php:1021\nStack trace:\n#0 /path/wp-content/plugins/fv-player-coconut/fv-player-coconut.php(422): FV_Player_Coconut->output__verify_s3()\n#1 /opt/path/wp-includes/class-wp-hook.php(287): FV_Player_Coconut->ajax_fv_player_coconut_submit()\n#2 /opt/path/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()\n#3 /opt/path/wp-includes/plugin.php(478): WP_Hook->do_action()\n#4 /opt/path/wp-admin/admin-ajax.php(176): do_action()\n#5 {main}\n  thrown in /path/wp-content/plugins/fv-player-coconut/fv-player-coconut.php on line 1021, referer: https://site.com/wp-admin/admin.php?page=fv_player_coconut
    Martin 5 years ago

    Hello John,

    please reinstall from this link again and it will work: https://github.com/foliovision/fv-wordpress-flowplayer/archive/466-composer.zip

    I see I forgot about the old PHP include file.

    Thanks,
    Martin

    John S. 5 years ago

    This works. IF future updates are to come for FV Player, what do I do?

    Juraj Kacaba 5 years ago
    Avatar photo

    Hello John,

    Don’t worry to update your player, this fix will be part of next FV Player update.

    Thanks,
    Juraj

    John S. 4 years ago

    Can you please redact the site URL for this, as it’s indexing on search engines

    Mária Stašová 4 years ago
    Avatar photo

    Hello John,

    the URL to your site has been redacted.

    Making the web work for you,
    Maria

    Dariusz K. 4 years ago

    Hi,
    I Think I have similar problem.
    I’m using FV Player Coconut Wizard for first time.
    and I cannot go throught step “DigitalOcean Spaces setup” when I check spaces there’s error (look at attached image)

    Using:
    WordPress 5.8
    fv-player-pro.zip fv-player-coconut downloaded today

    Please help. I cannot use encryption with your player.
    It throws the same error even if I previously configure DigitalOcean Space in Hosting section

    error-after-click-check-spaces
    error-after-click-Check-Spaces
    digitalocean-spaces-setup-error
    digitalOcean-Spaces-Setup-error
    Martin 4 years ago

    Hello Dariusz,

    please try to open wp-admin -> FV Player -> Coconut. Do you see a log button that would open a log of the wizard operations?

    If it’s not there then we need more information about what caused the HTTP 500 error in the wizard operation. Please repeat the wizard steps and see what turns up in the PHP error logs.

    If you are not sure about how to check the PHP error log, the server technical support should be able to give you a hand.

    Or you can install this plugin which makes a list of these errors available in wp-admin: https://wordpress.org/plugins/error-log-monitor/

    Thanks,
    Martin

    Dariusz K. 4 years ago

    I attaching what error log shows after I clicked “Check spaces” on “DigitalOcean Spaces setup” step.

    Can you find any solution for that?

    php-error
    php-error
    Martin 4 years ago

    Hello Darius,

    I see we use a slightly older GuzzleHttp library in FV Player. We do that to keep PHP 5.6 compatibility.

    Could you please reinstall FV Player from this link: https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip ?

    To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    Perhaps it will avoid the GuzzleHttp issue. If not, be might need to upgrade to some later version, but that would break compatibility with older PHP versions as I was mentioning.

    The best solution would be to stop using AWS PHP SDK completely and use some lightweight alternative. But the transition is not very simple and we need not just the S3 functions, but also CloudFront function.

    Thanks,
    Martin

    Dariusz K. 4 years ago

    I reinstalled plugin in WordPress
    and tried one more time “Check spaces” on “DigitalOcean Spaces setup” step…..
    and have different error (in attachment)

    php-error-nr-2
    php-error-nr-2
    Martin 4 years ago

    Hello Darius,

    perhaps we really need to upgrade to the latest versions of these libraries. We would loose the PHP 5.6 compatibility, even PHP 7.0 and 7.1 would no longer be enough.

    But it would only affect users who try to use the DigitalOcean Spaces or S3 Browser in FV Player, rest of the plugin would work. It’s a though decision to make.

    Please try to disable the other plugins and then re-run the wizard. That way the conflict around GuzzleHttp won’t happen.

    Thanks,
    Martin

    Dariusz K. 4 years ago

    Hello Martin,

    I disabled all plugins and our problematic step was passed.
    But in next step I cannot run “Proceed” because of error:

    Unable to set CORS in DigitalOcean Space https://<my service name>-encoded-videos-coconut.ams3.digitaloceanspaces.com
    —
    I found similar topic:
    https://www.digitalocean.com/community/questions/cors-settings-not-working-on-spaces
    but I have no idea If I can do something with that, and how to resolve it.

    I also attaching screen of warning whitch shows after comleting step 2.

    warning-after-step-2-2021-08-16-122621
    warning-after-step-2-2021-08-16-122621
    digital-ocean-spaces-2021-08-16-122333
    digital-ocean-spaces-2021-08-16-122333
    coconut-wizard-error-unable-to-set-cors-2021-08-16-122056
    coconut-wizard-error-unable-to-set-CORS-2021-08-16-122056
    Dariusz K. 4 years ago

    I’ve tried to configure CORS in DigitalOceans on my own (in attachment), and even after setting it, I still have the same error :(

    digitalocean-cors-setup-for-space
    DigitalOcean-cors-setup-for-space
    Martin 4 years ago

    Hello Dariusz,

    I did experience similar issues when working on the wizard in he past. But it seemed it was only affecting my localhost development environment and then I was no longer able to reproduce the issue at all.

    Please open the wp-admin -> FV Player -> Coconut screen again, there should be a button “Show wizard log”. Clicking that button will reveal the log of the wizard operations – including some details about why the CORS has failed.

    Thanks,
    Martin

    Dariusz K. 4 years ago

    in attachment

    https://foliovision.com/images/2021/08/fv-wizard-log.png

    Martin 4 years ago

    Hello Dariusz,

    we worked on some improvements please reinstall FV Player Coconut from a fresh ZIP file which you obtain from https://foliovision.com/my-licenses

    Hopwefuly that will avoid the issue.

    Thanks,
    Martin

Viewing 24 replies - 1 through 24 (of 24 total)
Reply To: Digital Ocean Spaces browser doesn’t work, returns ajax script returns 500



Please Sign in or Register to upload files.

Related Posts

  1. Error executing “CreateBucket” on setting up Digital Ocean space

    Error executing “CreateBucket” on setting up Digital Ocean space

  2. Why use BunnyCDN other than Digital Ocean spaces

    Why use BunnyCDN other than Digital Ocean spaces

  3. How to open a lightbox video player from an AJAX response

    How to open a lightbox video player from an AJAX response

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!