Hey!
After the last update of wpdiscuz, I am having problems with uploading files in PDF (even small files) and XLSX (it may be happening with other types of files, but I only tested with these). For sending images in JPG, it is working normally.
I have the paid media uploader plugin. I need to resolve it urgently, as I use the comments on my course website, and students upload the course exercises through the wpdiscuz plugin.
When I delete comments with attached files, the comments area will function normally again.
The error that appears is the one below and it occurs after uploading the file, when trying to load the comments:
Fatal error: Uncaught Error: Using $this when not in object context
in /home/484326.cloudwaysapps.com/kzwagcgnma/public_html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelperUpload.php on line 713
Call stack:
WpdiscuzHelperUpload::canEditAttachments()
wp-content/plugins/wpdiscuz-media-uploader/includes/WmuHelper.php:194
WmuHelper::getDeleteHtml()
wp-content/plugins/wpdiscuz-media-uploader/includes/WmuHelper.php:176
WmuHelper::getAttachedFiles()
wp-content/plugins/wpdiscuz-media-uploader/class.WpdiscuzMediaUploader.php:171
WpdiscuzMediaUploader::getAttachments()
wp-includes/class-wp-hook.php:292
WP_Hook::apply_filters()
wp-includes/plugin.php:212
apply_filters()
wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelperUpload.php:109
WpdiscuzHelperUpload::getAttachments()
wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelperUpload.php:86
WpdiscuzHelperUpload::commentText()
wp-includes/class-wp-hook.php:292
WP_Hook::apply_filters()
wp-includes/plugin.php:212
apply_filters()
wp-includes/comment-template.php:1028
comment_text()
wp-admin/includes/class-wp-comments-list-table.php:885
WP_Comments_List_Table::column_comment()
wp-admin/includes/class-wp-list-table.php:1442
WP_List_Table::single_row_columns()
wp-admin/includes/class-wp-comments-list-table.php:626
WP_Comments_List_Table::single_row()
wp-admin/includes/class-wp-list-table.php:1374
WP_List_Table::display_rows()
wp-admin/includes/class-wp-list-table.php:1359
WP_List_Table::display_rows_or_placeholder()
wp-admin/includes/class-wp-comments-list-table.php:575
WP_Comments_List_Table::display()
wp-admin/edit-comments.php:345
Query Monitor