SEO Metadata

PHP error - SEO Metadata

PHP error

by Ch3vr0n » Sun Oct 02, 2022 5:09 pm

Phpbb 3.3.8, php 8.0.23

Had to enable php debugging for a plugin issue on the backend, but this one popped up on the front-end too.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/event/listener.php on line 114: Undefined array key 54
[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
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
https://www.3dprintforum.eu | New home for Belgian and Netherlands 3d printing like-minded, hobbyists and professionals.
Ch3vr0n
Registered User
Posts: 108
Joined: Sat Sep 24, 2022 1:08 pm

Re: PHP error

by Satusnovus » Thu Nov 10, 2022 2:49 pm

Same here with atleast one of my visitors who sees:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/event/listener.php on line 114: Undefined array key 1802
[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


Only at topics and I can't see the warning in Chrome, Edge or whatever.
Satusnovus
Registered User
Posts: 105
Joined: Mon Sep 12, 2016 9:44 pm

Re: PHP error

by janus_zonstraal » Thu Nov 10, 2022 7:50 pm

If only one member has this problem it is maybe his browser cache and not a other problem.
I use this extension for years now and never has a problem or see this messages.
Sorry! My English is bat ;) !!!
User avatar
janus_zonstraal
Registered User
Posts: 6617
Joined: Sat Aug 30, 2014 1:30 pm

Re: PHP error

by Satusnovus » Thu Nov 10, 2022 9:56 pm

janus_zonstraal wrote:If only one member has this problem it is maybe his browser cache and not a other problem.
I use this extension for years now and never has a problem or see this messages.
Thanks for responding, at the general board a topic was closed...

Well I've learned the user how to clear the browser cache with CTRL + F5 and maybe it has something to do with this extension and upgrading php (that's why I also placed a topic at the general board). I'm not sure downgrading php can solve the problem or gives new problems.

3.3.5 should work well with php 8.0 :roll:
Satusnovus
Registered User
Posts: 105
Joined: Mon Sep 12, 2016 9:44 pm

Re: PHP error

by Ch3vr0n » Fri Nov 11, 2022 8:52 pm

Well there are now clearly at least 2 users. This problem obviously is only visible if you enable php debugging. That said, it shouldn't be happening in the first place.
https://www.3dprintforum.eu | New home for Belgian and Netherlands 3d printing like-minded, hobbyists and professionals.
Ch3vr0n
Registered User
Posts: 108
Joined: Sat Sep 24, 2022 1:08 pm

Re: PHP error

by AlfredoRamos » Sat Nov 12, 2022 2:15 am

Looks like you have a broken board.

It's trying to load a description from a post that doesn't exist or for some reason can't be read, and that's not necessarily a extension bug, because that can be caused by a broken upgrade from previous phpBB versions (like 3.0 > 3.3), for example.

Either way, as I said on a previous topic, there won't be any new releases for a very long time, if any at all. So you might want to look for alternatives.
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: 1324
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo

Re: PHP error

by Ch3vr0n » Sun Feb 26, 2023 4:42 pm

A few of the users on my forum still encounter the following problem. Not everyone. Using phpbb 3.3.10 atm
[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/event/listener.php on line 114: Undefined array key 1051
[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
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
php debug error reporting is disabled at the server/host level, always has been.

I'm open to alternatives, if there are any. I welcome any suggestions
https://www.3dprintforum.eu | New home for Belgian and Netherlands 3d printing like-minded, hobbyists and professionals.
Ch3vr0n
Registered User
Posts: 108
Joined: Sat Sep 24, 2022 1:08 pm

Re: PHP error

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

Any solution?
knarfboy
Registered User
Posts: 40
Joined: Sun Jan 08, 2017 2:48 am

Re: PHP error

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: 1324
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo

Re: PHP error

by Ch3vr0n » Fri Dec 22, 2023 7:35 pm

Guess after 10 months it's time for me to test this extension again :)
https://www.3dprintforum.eu | New home for Belgian and Netherlands 3d printing like-minded, hobbyists and professionals.
Ch3vr0n
Registered User
Posts: 108
Joined: Sat Sep 24, 2022 1:08 pm