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

Foliovision

  • 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

Vimeo Turbocharge Ajax Vimeo loading PHP8 error?

Foliovision › Forums › FV Player › Bug Reports › Vimeo Turbocharge Ajax Vimeo loading PHP8 error?

  • Willie M. 1 year, 7 months ago

    FYI

    Getting this error:

    {
      "installName": "",
      "environment": "PROD",
      "type": "error",
      "date": "2024-06-26T16:59:08.288Z",
      "severity": null,
      "client": null,
      "message": "PHP Fatal error:  Uncaught TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given in wp-content/plugins/fv-player-pro/fv-vimeo-ajax.php:465#012Stack trace:#012#0 wp-content/plugins/fv-player-pro/fv-vimeo-ajax.php(465): flock(false, 2)#012#1 wp-content/plugins/fv-player-pro/fv-vimeo-ajax.php(227): set_cache_file('fv_player_pro_v...', Object(stdClass), '369719641')#012#2 wp-content/plugins/fv-player-pro/fv-vimeo-ajax.php(39): func__get_vimeo('https://vimeo.c...')#012#3 wp-content/plugins/fv-player-pro/fv-vimeo-ajax.php(31): ajax__get_vimeo()#012#4 {main}#012  thrown in wp-content/plugins/fv-player-pro/fv-vimeo-ajax.php on line 465",
      "uuid": "013de717-d2be-48fb-9801-93bcccfa8eea"
    }

    Replaced it with this code and it is working:

      /* original code
      if( !file_exists($htaccess) ) {
        $file = fopen($htaccess,"w+");
        if (flock($file,LOCK_EX)) {
          fwrite($file,'deny from all');
          flock($file,LOCK_UN);
        }
        fclose($file);
      }*/
    
    /* NEW CODE */
      if (!file_exists($htaccess)) {
        $file = fopen($htaccess, "w+");
        if ($file !== false) { // Check if the file was successfully opened
            if (flock($file, LOCK_EX)) {
                fwrite($file, 'deny from all');
                flock($file, LOCK_UN);
            } else {
                error_log("Failed to lock file: $htaccess");
            }
            fclose($file);
        } else {
            error_log("Failed to open file: $htaccess");
        }
    }
Viewing 1 replies (of 1 total)
  • Martin 2 years ago

    Hello Willie,

    Thank for your suggestion, it’s certainly better with that check and error_log() call. We will put something similar into next version.

    Thanks,
    Martin

Viewing 1 replies (of 1 total)
Reply To: Vimeo Turbocharge Ajax Vimeo loading PHP8 error?



Please Sign in or Register to upload files.

Related Posts

  1. Vimeo Videos fail: “Error loading video. Unknown error”

    Vimeo Videos fail: “Error loading video. Unknown error”

  2. Error in log

    Error in log

  3. Vimeo Connect Error

    Vimeo Connect Error

Primary Sidebar

Bug Reports

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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 © 2026 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‬