SEO Metadata

PHP errors with display post order direction: Descending - SEO Metadata

PHP errors with display post order direction: Descending

by HansDutch » Sun Aug 20, 2023 8:49 pm

phpBB version: 3.3.10
SEO Metadata version: 1.4.1
Style: ProSilver or Rock'n Roll 3.0/9

If a forum item contains multiple pages (posts per page: set to 25) and the User Control Panel, Board preferences, display options is set to Descending, the following PHP errors are displayed at the top of the webpage:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/event/listener.php on line 114: Undefined array key 465
[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/event/listener.php on line 114: Trying to access array offset on value of type null

Is there a fix for this error?
HansDutch
Registered User
Posts: 9
Joined: Sun Aug 20, 2023 8:31 pm

Re: PHP errors with display post order direction: Descending

by knarfboy » Sat Nov 04, 2023 6:51 pm

I have the same problem. Any solution?
knarfboy
Registered User
Posts: 40
Joined: Sun Jan 08, 2017 2:48 am

Re: PHP errors with display post order direction: Descending

by AlfredoRamos » Fri Dec 22, 2023 9:12 am

I could not reproduce the issue, however I added an extra check in version 1.4.2 so that warning should not show up, the post will be ignored instead.

You can wait until the validation team approves the new version, or you could download it right now from the following topic:

https://www.phpbb.com/customise/db/exte ... 36#p708436
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1304
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo

Re: PHP errors with display post order direction: Descending

by HansDutch » Fri Jun 14, 2024 10:31 am

phpBB version: 3.3.12
SEO Metadata version: 1.4.2

User Control Panel, Board preferences, Display options, Display post order direction: Descending

I updated the extension to the latest version and I retested and checked if the PHP errors where gone.

I still have the following PHP error:

phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/event/listener.php on line 119: Undefined array key "description"

I only have this error if I have multiple pages of a forum thread and if I set: User Control Panel, Board preferences, Display options, Display post order direction: to Descending. If I set User Control Panel, Board preferences, Display options, Display post order direction: to Ascending the the PHP error is gone.
HansDutch
Registered User
Posts: 9
Joined: Sun Aug 20, 2023 8:31 pm