Jump to content
Old threads will finally start getting archived ×

roeeb

New Members
  • Posts

    3
  • Joined

  • Last visited

roeeb's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. tried on date.php <?php /** * Class for generating SQL clauses that filter a primary query according to date. * * This file is deprecated, use 'wp-includes/class-wp-date-query.php' instead. * * @deprecated 5.3.0 * @package WordPress */ _deprecated_file( basename( __FILE__ ), '5.3.0', WPINC . '/class-wp-date-query.php' ); date_default_timezone_set('Asia/Jerusalem'); $currentTime = date('Y-m-d H:i:s'); /** WP_Date_Query class */ require_once ABSPATH . WPINC . '/class-wp-date-query.php'; added marked line in red - didn't help ?
  2. how to fix this on php ?
  3. Hi, When I enter my site and try to post new post I get this error below: Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /home/cksqu69nvy57/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1806 Stack trace: #0 /home/cksqu69nvy57/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response() #1 /home/cksqu69nvy57/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item() #2 /home/cksqu69nvy57/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() #3 /home/cksqu69nvy57/public_html/wp-includes/rest-api.php(555): WP_REST_Server->dispatch() #4 /home/cksqu69nvy57/public_html/wp-includes/rest-api.php(2922): rest_do_request() #5 [internal function]: rest_preload_api_request() #6 /home/cksqu69nvy57/public_html/wp-includes/block-editor.php(750): array_reduce() #7 /home/cksqu69nvy57/public_html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload() #8 /home/cksqu69nvy57/public_html/wp-admin/post-new.php(72): require('/home/cksqu69nv...') #9 {main} thrown in /home/cksqu69nvy57/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 1806 first error line 1806: $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ); } else { $post_modified_gmt = $post->post_modified_gmt; } $data['modified_gmt'] = $this->prepare_date_response( $post_modified_gmt ); any one have idea why this happens and how to solve it ? Thanks, Roee
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.