Notifications
Clear all

Fatal PHP error when editing comment in admin

3 Posts
3 Users
0 Likes
1,161 Views
(@dynamodan)
New Member
Joined: 5 years ago
Posts: 1
Topic starter  

Sometimes when saving a comment in the wordpress admin, I get this error:

 PHP Fatal error: Cannot unset string offsets in wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 194

Wordpress version is 5.0.3 and wpdiscuz version is 5.3.2.  I have implemented a type check meanwhile, to prevent PHP from trying to unset an array offset when the value isn't an array.


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5923
 

Hi @dynamodan,

Thank you for letting us know. We'll check and back to you asap. 


   
ReplyQuote
(@hempdevsupport)
New Member
Joined: 4 years ago
Posts: 1
 

Also receiving a similar error when saving comments in Admin

When seeking help with this issue, you may be asked for some of the
following information:
WordPress version 5.3.2
Current theme: Hempura (version 1.0.0)
Current plugin: wpDiscuz (version 5.3.5)
PHP version 7.1.33

Error Details
=============
An error of type E_ERROR was caused in line 193 of the file
/home/hempur5/public_html/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php.
Error message: Uncaught Error: Cannot unset string offsets in
/home/hempur5/public_html/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:193
Stack trace:
#0 /home/hempur5/public_html/wp-content/plugins/wpdiscuz/forms/wpDiscuzForm.php(85):
wpdFormAttr\Form->saveCommentMeta(668625)
#1 /home/hempur5/public_html/wp-includes/class-wp-hook.php(290):
wpDiscuzForm->updateCommentMeta(668625)
#2 /home/hempur5/public_html/wp-includes/class-wp-hook.php(312):
WP_Hook->apply_filters('', Array)
#3 /home/hempur5/public_html/wp-includes/plugin.php(478):
WP_Hook->do_action(Array)
#4 /home/hempur5/public_html/wp-includes/comment.php(2402):
do_action('edit_comment', 668625, Array)
#5 /home/hempur5/public_html/wp-admin/includes/comment.php(95):
wp_update_comment(Array)
#6 /home/hempur5/public_html/wp-admin/comment.php(338): edit_comment()
#7 {main}
  thrown

 
---
 
Have subscribed to the topic

   
ReplyQuote
Share:
Scroll to top