XF 2.2 Missing field 'author'

probably due to this.


being discussed here.

 
I've made a temp fix implementing

Code:
            <div itemprop="author" itemscope itemtype="https://schema.org/Person">
            <meta itemprop="name" content="{{ $post.User.username ?: $post.username }}" />
            </div>
 
message_macros

before
Code:
{{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="https://schema.org/Person" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>

after

Code:
{{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="https://schema.org/Person" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>
 
missing url fix (message_macros)

before

Code:
<meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

after

Code:
<meta itemprop="url" content="{{ link('canonical:posts', $post, {'post_id': $post.post_id}) }}" />


post_macros


add to this code here

Code:
<meta itemprop="url" content="{{ link('canonical:posts', $post, {'post_id': $post.post_id}) }}" />

sorry, posting fixes in real time.
 
I've made a temp fix implementing

Code:
            <div itemprop="author" itemscope itemtype="https://schema.org/Person">
            <meta itemprop="name" content="{{ $post.User.username ?: $post.username }}" />
            </div>
Nice! The author is blank in the json schema due to the member being deleted. This should get the username added even if the user no longer has an account? I don't know how that is addressed in the backend.

@Jeremy P
 
View attachment 294414

View attachment 294415

View attachment 294416

Will there be an interim release to overcome these bugs?
See this thread for the most current updates:
 
Thank you for your guidance. I have followed these two issues, I hope they will be resolved as soon as possible. Thousands of our pages started to appear in google records with errors :(
 
missing url fix (message_macros)

before

Code:
<meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

after

Code:
<meta itemprop="url" content="{{ link('canonical:posts', $post, {'post_id': $post.post_id}) }}" />


post_macros


add to this code here

Code:
<meta itemprop="url" content="{{ link('canonical:posts', $post, {'post_id': $post.post_id}) }}" />

sorry, posting fixes in real time.
There are two of these in mesage_macros

Code:
meta itemprop="url" content="{{ link('canonical:members', $user) }

and post_macros
Code:
{{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="https://schema.org/Person" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>

Should we change/add the code after both of them or just one of them?
 
Top Bottom