Not Solved [Error Message] error on portal.php
#1
Not Solved
hello

i update to php 8.5.12
only default theme and no plugins  active

eror message
The following warnings occurred:
Warning [2] Undefined array key "candlattachments" - Line: 1079 - File: inc/functions_post.php PHP 8.5.12 (Linux)

/inc/class_error.php
157
errorHandler->error


/inc/functions_post.php
1079
errorHandler->error_callback


/portal.php
675
get_post_attachments


how to solve this
thank you
Reply
#2
Not Solved
Hm, looks like a core bug, not your setup. portal.php fills $forumpermissions per forum id, but get_post_attachments() in 1.8 reads $forumpermissions['candlattachments'] directly, so on the portal that key just isn't there. In the feature branch on GitHub get_post_attachments() already falls back to forum_permissions($post['fid']) in that case, so you can copy that part over or wait for the next release.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)