Invalid value type for field “uploadDate”

#109451
  • Resolved Mohammad Reza
    Rank Math free

    After installing rank math instead of Yoast I get this error from the web console

    Date/time not in ISO 8601 format in field “uploadDate”
    
    Invalid value type for field “uploadDate”

    I think it course I use Shamsi plugin for changing the date. but Yoast does not have a problem with it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • google test

    null

    https://uupload.ir/files/1u3n_screen_shot_2020-11-25_at_4.15.32_pm.png

    Hello,

    Thank you for contacting Rank Math today.

    Please add your values in the correct format for your video schema:
    img

    Looking forward to helping you. Thank you.

    ​​​​​​

    I have more than 40k posts on my web site! Do you have any better way?!

    I put this code on function.php but the problem is still there.

    /**
     * Filter to change the schema data.
     * Replace $schema_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_{$schema}_entity", function( $entity ) {
     return $entity;
    });
     "uploadDate": "1399-09-dT21:24:s+03:30",
    
    Date/time not in ISO 8601 format in field "uploadDate"
    Invalid value type for field "uploadDate"

    by the way, I get this log after adding the filter

    PHP Notice: Undefined variable: schema

    I changed the uploadDate value %date(Y-m-d\TH:i:sP)% in Schema Template after saving it the result is %date(Y-m-dTH:i:sP)%. It lost the “\”. This is the error that google reports in the wrong format.

    unfortunately, it does not work for me.
    by the way, when I add video template. in result, I have two video schema on each post! I don’t know have to disable the default video template.

    yun.ir/7j8qt8

    on the new version, the problem has been solved
    thanks

    Hello,

    We are super happy that this issue is resolved.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Invalid value type for field “uploadDate”’ is closed to new replies.