Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter deanselinger

    (@deanselinger)

    Yeah, My host Flywheel doesn’t have htaccess.

    Hi all,

    I had “block_editor_settings”.

    /**
     * Hack to remove embedded stylesheet in editor
     *
     * @link https://stackoverflow.com/a/58783057
     * @link https://github.com/WordPress/gutenberg/issues/18595#issuecomment-599588153
     */
    /*
    add_filter('block_editor_settings', function ($settings) {
      unset($settings['styles'][0]);
    
      return $settings;
    });

    Commenting out this code fixed my new and edit page white screen of death.

    Many thanks @livog.

    Hi,

    My host updated from WP 5.8 -> 5.9.1 now my New Page and Edit Page are returning the white screen of death. Happens in Chrome (latest) incognito, Firefox private, and Safari. Deactivating all plugins, or all but ACF doesn’t help. Using the Classic Editor plugin works but I’m heavily invested in Gutenberg. The Health Check Troubleshooting mode corrects the issue. Using theme Twenty Twenty corrects the issue.

    I didn’t understand why I couldn’t find any errors but I was only looking for WordPress and/or PHP errors.

    ‘block_editor_settings_all’ only appears in wp-includes/block-editor.php and wp-content/plugins/classic-editor.php.

    Chrome Edit Page console output:

    load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.1:5 JQMIGRATE: Migrate is installed, version 3.3.2
    react-dom.min.js?ver=17.0.1:141 TypeError: l.styles.forEach is not a function
        at edit-post.min.js:7:93653
        at Object.useMemo (react-dom.min.js:220:462)
        at c.useMemo (react.min.js:30:236)
        at zt (edit-post.min.js:7:93622)
        at Le (react-dom.min.js:100:3)
        at Pj (react-dom.min.js:231:183)
        at di (react-dom.min.js:168:305)
        at Nj (react-dom.min.js:168:236)
        at sc (react-dom.min.js:168:96)
        at gf (react-dom.min.js:162:109)
    Ye @ react-dom.min.js?ver=17.0.1:141
    react-dom.min.js?ver=17.0.1:177 Uncaught TypeError: l.styles.forEach is not a function
        at edit-post.min.js:7:93653
        at Object.useMemo (react-dom.min.js:220:462)
        at c.useMemo (react.min.js:30:236)
        at zt (edit-post.min.js:7:93622)
        at Le (react-dom.min.js:100:3)
        at Pj (react-dom.min.js:231:183)
        at di (react-dom.min.js:168:305)
        at Nj (react-dom.min.js:168:236)
        at sc (react-dom.min.js:168:96)
        at gf (react-dom.min.js:162:109)
    /wp-admin/admin-ajax.php:1          Failed to load resource: the server responded with a status of 405 ()
    ? JQMIGRATE: Migrate is installed, version 3.3.2

    Chrome New Page console output:

    load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.1:5 JQMIGRATE: Migrate is installed, version 3.3.2
    deprecated.min.js?ver=8778985ac0dfb16f24f8ef86d0718f43:2 wp.data.plugins.controls is deprecated since version 5.4. Note: The controls plugins is now baked-in.
    i @ deprecated.min.js?ver=8778985ac0dfb16f24f8ef86d0718f43:2
    maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true:1          Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
    react-dom.min.js?ver=17.0.1:141 TypeError: l.styles.forEach is not a function
        at edit-post.min.js:7:93653
        at Object.useMemo (react-dom.min.js:220:462)
        at c.useMemo (react.min.js:30:236)
        at zt (edit-post.min.js:7:93622)
        at Le (react-dom.min.js:100:3)
        at Pj (react-dom.min.js:231:183)
        at di (react-dom.min.js:168:305)
        at Nj (react-dom.min.js:168:236)
        at sc (react-dom.min.js:168:96)
        at gf (react-dom.min.js:162:109)
    Ye @ react-dom.min.js?ver=17.0.1:141
    react-dom.min.js?ver=17.0.1:177 Uncaught TypeError: l.styles.forEach is not a function
        at edit-post.min.js:7:93653
        at Object.useMemo (react-dom.min.js:220:462)
        at c.useMemo (react.min.js:30:236)
        at zt (edit-post.min.js:7:93622)
        at Le (react-dom.min.js:100:3)
        at Pj (react-dom.min.js:231:183)
        at di (react-dom.min.js:168:305)
        at Nj (react-dom.min.js:168:236)
        at sc (react-dom.min.js:168:96)
        at gf (react-dom.min.js:162:109)
    (anonymous) @ edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
    useMemo @ react-dom.min.js?ver=17.0.1:220
    c.useMemo @ react.min.js?ver=17.0.1:30
    zt @ edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
    Le @ react-dom.min.js?ver=17.0.1:100
    Pj @ react-dom.min.js?ver=17.0.1:231
    di @ react-dom.min.js?ver=17.0.1:168
    Nj @ react-dom.min.js?ver=17.0.1:168
    sc @ react-dom.min.js?ver=17.0.1:168
    gf @ react-dom.min.js?ver=17.0.1:162
    Pa @ react-dom.min.js?ver=17.0.1:157
    yd @ react-dom.min.js?ver=17.0.1:188
    (anonymous) @ react-dom.min.js?ver=17.0.1:191
    bi @ react-dom.min.js?ver=17.0.1:163
    zd @ react-dom.min.js?ver=17.0.1:191
    M.render @ react-dom.min.js?ver=17.0.1:243
    Qt @ edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
    (anonymous) @ post-new.php?post_type=page:378

    Firefox Edit Page console output:

    This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. post.php
    JQMIGRATE: Migrate is installed, version 3.3.2 load-scripts.php:5:709
    wp.data.plugins.controls is deprecated since version 5.4. Note: The controls plugins is now baked-in. deprecated.min.js:2:1538
    TypeError: l.styles.forEach is not a function
        I https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        useMemo https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:220
        useMemo https://sco.local/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:30
        zt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        Le https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:100
        Pj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:231
        di https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168
        Nj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168
        sc https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168
        gf https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162
        Pa https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:157
        yd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:188
        zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191
        bi https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:163
        zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191
        render https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:243
        Qt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        _wpLoadBlockEditor https://sco.local/wp-admin/post.php?post=9072&action=edit:379
    react-dom.min.js:141:274
        Ye https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:141
        callback https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:141
        dh https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:80
        Bj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:145
        Qj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:176
        unstable_runWithPriority https://sco.local/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:24
        Za https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:73
        eb https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:170
        gf https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162
        Pa https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:157
        yd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:188
        zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191
        bi https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:163
        zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191
        render https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:243
        Qt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        _wpLoadBlockEditor https://sco.local/wp-admin/post.php?post=9072&action=edit:379
    Uncaught TypeError: l.styles.forEach is not a function
        I https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        useMemo https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:220
        useMemo https://sco.local/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:30
        zt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        Le https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:100
        Pj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:231
        di https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168
        Nj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168
        sc https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168
        gf https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162
        Pa https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:157
        yd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:188
        zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191
        bi https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:163
        zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191
        render https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:243
        Qt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7
        _wpLoadBlockEditor https://sco.local/wp-admin/post.php?post=9072&action=edit:379
    edit-post.min.js:7:93610
    Invalid URI. Load of media resource  failed. post.php
    
    ?
    Thread Starter deanselinger

    (@deanselinger)

    To remove the ical export link from empty Calendar views

    Override the day.php template in your own theme by creating a file at: [your-theme]/tribe/events/v2/month.php

    <?php
    /**
     * View: Month View
     *
     * See more documentation about our views templating system.
     *
     * @link https://evnt.is/1aiy
     *
     * @version  5.0.2
     *
     * @var string   $rest_url             The REST URL.
     * @var string   $rest_method          The HTTP method, either <code>POST</code> or <code>GET</code>, the View will use to make requests.
     * @var string   $rest_nonce           The REST nonce.
     * @var int      $should_manage_url    int containing if it should manage the URL.
     * @var bool     $disable_event_search Boolean on whether to disable the event search.
     * @var string[] $container_classes    Classes used for the container of the view.
     * @var array    $container_data       An additional set of container <code>data</code> attributes.
     * @var string   $breakpoint_pointer   String we use as pointer to the current view we are setting up with breakpoints.
     */
    global $has_events;
    
    $header_classes = [ 'tribe-events-header' ];
    if ( empty( $disable_event_search ) ) {
    	$header_classes[] = 'tribe-events-header--has-event-search';
    }
    ?>
    <div
    	<?php tribe_classes( $container_classes ); ?>
    	data-js="tribe-events-view"
    	data-view-rest-nonce="<?php echo esc_attr( $rest_nonce ); ?>"
    	data-view-rest-url="<?php echo esc_url( $rest_url ); ?>"
    	data-view-rest-method="<?php echo esc_attr( $rest_method ); ?>"
    	data-view-manage-url="<?php echo esc_attr( $should_manage_url ); ?>"
    	<?php foreach ( $container_data as $key => $value ) : ?>
    		data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
    	<?php endforeach; ?>
    	<?php if ( ! empty( $breakpoint_pointer ) ) : ?>
    		data-view-breakpoint-pointer="<?php echo esc_attr( $breakpoint_pointer ); ?>"
    	<?php endif; ?>
    >
    	<div class="tribe-common-l-container tribe-events-l-container">
    		<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
    
    		<?php $this->template( 'components/json-ld-data' ); ?>
    
    		<?php $this->template( 'components/data' ); ?>
    
    		<?php $this->template( 'components/before' ); ?>
    
    		<header <?php tribe_classes( $header_classes ); ?>>
    			<?php $this->template( 'components/messages' ); ?>
    
    			<?php $this->template( 'components/breadcrumbs' ); ?>
    
    			<?php $this->template( 'components/events-bar' ); ?>
    
    			<?php $this->template( 'month/top-bar' ); ?>
    		</header>
    
    		<?php $this->template( 'components/filter-bar' ); ?>
    
    		<div
    			class="tribe-events-calendar-month"
    			role="grid"
    			aria-labelledby="tribe-events-calendar-header"
    			aria-readonly="true"
    			data-js="tribe-events-month-grid"
    		>
    
    			<?php $this->template( 'month/calendar-header' ); ?>
    
    			<?php $cal_output = $this->template( 'month/calendar-body' ); ?>
    
    		</div>
    
    		<?php $this->template( 'month/mobile-events' ); ?>
    
    		<?php
    			//check calendar-body output for event classes
    			if (str_contains($cal_output, 'tribe-events-calendar-month__multiday-event-wrapper') 
    				|| str_contains($cal_output, 'tribe-events-calendar-month__calendar-event') ) { 
    				$this->template( 'components/ical-link' ); 
    			} ?>
    
    		<?php $this->template( 'components/after' ); ?>
    
    	</div>
    
    </div>
    
    <?php $this->template( 'components/breakpoints' ); ?>
    
    Thread Starter deanselinger

    (@deanselinger)

    Simple fix

    Override the day.php template in your own theme by creating a file at: [your-theme]/tribe/events/v2/day.php

    <?php
    /**
     * View: Day View
     * 
     * See more documentation about our views templating system.
     *
     * @link https://evnt.is/1aiy
     *
     * @version 5.2.1
     *
     * @var array    $events               The array containing the events.
     * @var string   $rest_url             The REST URL.
     * @var string   $rest_method          The HTTP method, either <code>POST</code> or <code>GET</code>, the View will use to make requests.
     * @var string   $rest_nonce           The REST nonce.
     * @var bool     $disable_event_search Boolean on whether to disable the event search.
     * @var string[] $container_classes    Classes used for the container of the view.
     * @var bool     $should_manage_url    Whether the view should manage the URL or not.
     * @var array    $container_data       An additional set of container <code>data</code> attributes.
     * @var string   $breakpoint_pointer   String we use as pointer to the current view we are setting up with breakpoints.
     */
    
    $header_classes = [ 'tribe-events-header' ];
    if ( empty( $disable_event_search ) ) {
    	$header_classes[] = 'tribe-events-header--has-event-search';
    }
    
    ?>
    <div
    	<?php tribe_classes( $container_classes ); ?>
    	data-js="tribe-events-view"
    	data-view-rest-nonce="<?php echo esc_attr( $rest_nonce ); ?>"
    	data-view-rest-url="<?php echo esc_url( $rest_url ); ?>"
    	data-view-rest-method="<?php echo esc_attr( $rest_method ); ?>"
    	data-view-manage-url="<?php echo esc_attr( $should_manage_url ); ?>"
    	<?php foreach ( $container_data as $key => $value ) : ?>
    		data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
    	<?php endforeach; ?>
    	<?php if ( ! empty( $breakpoint_pointer ) ) : ?>
    		data-view-breakpoint-pointer="<?php echo esc_attr( $breakpoint_pointer ); ?>"
    	<?php endif; ?>
    >
    	<div class="tribe-common-l-container tribe-events-l-container">
    		<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
    
    		<?php $this->template( 'components/json-ld-data' ); ?>
    
    		<?php $this->template( 'components/data' ); ?>
    
    		<?php $this->template( 'components/before' ); ?>
    
    		<header <?php tribe_classes( $header_classes ); ?>>
    			<?php $this->template( 'components/messages' ); ?>
    
    			<?php $this->template( 'components/breadcrumbs' ); ?>
    
    			<?php $this->template( 'components/events-bar' ); ?>
    
    			<?php $this->template( 'day/top-bar' ); ?>
    		</header>
    
    		<?php $this->template( 'components/filter-bar' ); ?>
    
    		<div class="tribe-events-calendar-day">
    
    			<?php foreach ( $events as $event ) : ?>
    				<?php $this->setup_postdata( $event ); ?>
    
    				<?php $this->template( 'day/type-separator', [ 'event' => $event ] ); ?>
    				<?php $this->template( 'day/time-separator', [ 'event' => $event ] ); ?>
    				<?php $this->template( 'day/event', [ 'event' => $event ] ); ?>
    				<?php $has_event = true; //added set has_event flag ?>
    			<?php endforeach; ?>
    
    		</div>
    
    		<?php $this->template( 'day/nav' ); ?>
    
    		<?php if($has_event) { $this->template( 'components/ical-link' ); }  //added the if statement ?>
    
    		<?php $this->template( 'components/after' ); ?>
    
    	</div>
    
    </div>
    
    <?php $this->template( 'components/breakpoints' ); ?>
    
Viewing 5 replies - 1 through 5 (of 5 total)