Page 1 of 1

(solved) Trying to access array offset on value of type bool in ext/pgreca/pgsocial/social/post_status.php

Posted: August 2nd, 2023, 11:31 pm
by Mandi
Upon uploading a cover image to try it out, received the following errors:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/pgreca/pgsocial/social/post_status.php on line 892: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/pgreca/pgsocial/social/post_status.php on line 894: Trying to access array offset on value of type bool

Also noticed in the Page Activity the image does not appear (shows the same as image not found)

Re: Trying to access array offset on value of type bool in ext/pgreca/pgsocial/social/post_status.php

Posted: August 2nd, 2023, 11:38 pm
by Mandi
The following changes corrected the bool error

Locate line 892 which looks like this:

Code: Select all

'gallery_name'					=> $gallery['gallery_name'],
Replace with this:

Code: Select all

'gallery_name'					=> $gallery['gallery_name'] ?? null,
Locate line 894 which looks like this:

Code: Select all

'gallery_privacy'				=> $gallery['gallery_privacy'],
Replace with this:

Code: Select all

'gallery_privacy'				=> $gallery['gallery_privacy'] ?? null,

Re: Trying to access array offset on value of type bool in ext/pgreca/pgsocial/social/post_status.php

Posted: August 3rd, 2023, 12:14 am
by Mandi
To get image to appear in activity feed (in my case the link to Page Activity had app.php in the url)

Log into your ACP
in General go down to the SERVER CONFIGURATION section
select the Server settings option
in there under the Path settings area select YES to the Enable URL Rewriting option
Submit to save change