• Resolved mhair

    (@mhair)


    I'm pasting in the summary that our hosting provided. When upgrading to Ultimate Blocks 3.3.6, about 8 or so URLs gave us critical error, but only one of them was actually using Ultimate Block, the others, not. Our hosting determined from the PHP error that enabling write permissions on your CSS file, resolved the problem. However, they don't allow write permissions on the live server. The workaround was discovered on the Dev server behind the firewall. 

    We tried to roll back the Ultimate Blocks back 2 versions, then 1 version, in both cases it caused a critical error for the site and crashed the internal production site. Time down was minimal and approved since we were all working together to sort out the issue of multiple links not working. For now we have added “Write” permissions to the file in question. We need the plugin developer to help us figure out a way to not have to enable those expanded permissions on the file in our external DMZ.

    As we could see the only thing that will allow the links to work is by adding “Write” permissions to a particular file that belongs to the Ultimate-Blocks plugin (which as we could see by the site crashes trying to rollback the version that the plugin is more entwined with the site than one might expect). Our understanding is that the file is dynamic, and from what we saw it seems to update each time someone clicks on certain pages. For this to work requires the “Write” permissions, which we do not allow in the DMZ/external production servers.

    \boardofed.idaho.gov\wp-content\uploads\ultimate-blocks\blocks.style.build.css

    This is the error that happens when that file outline doesn’t have “Write” permissions.

    [23-Jul-2025 16:59:29 UTC] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in I:\Inetpub\boardofed.idaho.gov\wp-content\plugins\ultimate-blocks\src\init.php:114
    Stack trace:
    #0 I:\Inetpub\boardofed.idaho.gov\wp-content\plugins\ultimate-blocks\src\init.php(114): fwrite()
    #1 I:\Inetpub\boardofed.idaho.gov\wp-includes\class-wp-hook.php(324): ub_load_assets()
    #2 I:\Inetpub\boardofed.idaho.gov\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 I:\Inetpub\boardofed.idaho.gov\wp-includes\plugin.php(517): WP_Hook->do_action()
    #4 I:\Inetpub\boardofed.idaho.gov\wp-settings.php(727): do_action()
    #5 I:\Inetpub\boardofed.idaho.gov\wp-config.php(79): require_once('...')
    #6 I:\Inetpub\boardofed.idaho.gov\wp-load.php(50): require_once('...')
    #7 I:\Inetpub\boardofed.idaho.gov\wp-blog-header.php(13): require_once('...')
    #8 I:\Inetpub\boardofed.idaho.gov\index.php(17): require('...')
    #9 {main}
    thrown in I:\Inetpub\boardofed.idaho.gov\wp-content\plugins\ultimate-blocks\src\init.php on line 114
    • This topic was modified 8 months, 3 weeks ago by mhair.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of’ is closed to new replies.