Replace that line with the following:
if(!is_object($val) && !is_array($val)){
$this->p->$c = trim(stripslashes($val));
} else {
$this->p->$c = $val;
}
This is just a temporary solution so the error will go away. All this does is check the variable to see if it’s an object or an array. If it is the variable just gets saved to the correct place. This doesn’t fix the root of the problem which is the fact that the user object is attempted to be saved as a string. This may cause other problems.
It is HIGHLY recommended you get in touch with the plugin developer.
Related Posts:
- An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Error: call_user_func_array() expects parameter 1 to be a valid callback
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Validation error: Extending Gutenberg gallery block
- How do I fix the “sorry, you are not allowed to access this page” error I get on the “plugins > settings” links?
- Should messages in WP_Error already be html escaped?
- How to get Login Error messages on a custom template
- Plugins error (Use roles and capabilities instead) on latest version, multisite
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- Error: “Cannot modify header information”
- Why am I sometimes getting a 404 error when I try to update a page with Elementor?
- check for the current screen
- How should I handle errors within a plugin?
- Force plugin to fail activation
- Dashboard Disappears after Upgrade
- How do you install the automattic developer plugin under localhost for mamp when there is an error, deprecated?
- Why Better WP security plugin returns 418 I’m a Teapot “error”?
- echo do_shortcode is not working on theme’s template
- Seaweed Plugin not working
- All plugins deactivated due to error
- How can I see the error generated by plugin activation?
- Error in the wp-config.php file: PHP Fatal error: Uncaught Error: Unknown named parameter (PHP 8.0)
- How to implement Sentry on WordPress? [closed]
- Accessing GET variable named ‘error’
- Error handling a plugin with exceptions
- Unable to install theme recommended plugins on Multisite
- Problem with wordpress version 3.8
- Post-terms-order PHP errors after update
- Accidentally Broke Site (Please Help) [closed]
- qTranslate conflicts with SEO-plugins [closed]
- CSV file generation failing
- Python with wordpress plugin
- Nonce failing on form submission
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- WordPress site periodically goes down
- Why do plugins deactivate by themselves?
- WordPress shows error related to allow_url_fopen
- AFNetworking incorrectly interpreted WP_Error
- Updated 4.3 Getting Error: Warning: call_user_func_array() expects parameter 1 to
- Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work
- Getting a “Warning: call_user_func_array()” error whenever I install/update a plugin
- Why am I getting a “Call to undefined function curl_init()” when I try to use the Sociable plugin?
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- What’s causing this error? “Warning: Invalid argument”
- help with my wordpress website
- WordPress error: Options page Setting_ not found in the allowed options list
- WP-nivo-slider Producing Error “Cannot modify header information – headers already sent by …”
- React error #231with Custom Blocks after upgrade to WP 5.5
- UTF-32be error WordPress
- Elementor page builder plugin not loading up all the way? [closed]
- Why does this code snippet create a critical error on my site? [closed]
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- Plugin upgrade failing during unzip
- ‘Notice: Undefined index’ error on plugins page [closed]
- Function Error after WP Upgrade to 3.9.1
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Trying to get property of non-object wordpress error message
- How to get Facebook comment plugin in blog? [closed]
- 404 errors when updating options in admin dashboard
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- Error when adding extensions to wordpress version 5.9 with a DIVI install
- Replace old theme that understand old css (vcex_icon_box css_animation)
- Open_basedir errors – But setting basedir to none redults in 502 Bad Gateway
- Error: call_user_func_array() expects parameter 1 to be a valid callback
- WordPress fatal error from php protocol codes
- Undefined offset: 0 in WordPress after latest version upgrade [closed]
- Changing wordpress/woocommerce notices default message to other languages (text)
- How to Fix WordPress multisite woocommerce 403 file error
- PHP Error message Upload images to remote server
- Elementor contact form doesn’t work: “Oops! I cannot send this email!”
- Installation failed: 504 – Gateway Timeout
- I can’t view the orders on the woocomerce dashboard with the brainblocks plugin
- PDF Viewer Origin is Different
- Unable to activate themes on localhost
- White blank screen while adding or editing pages in wordpress
- WordPress website dont load CSS, JS and images
- How do I create a state of “don’t assign anything to variable” if WP_Error throws an error?
- WordPress Dashboard shows no plugins installed!
- ClassLoader.php issues after moving to a new host
- Plugin debugging with errors in activation routine
- Warning: Illegal offset type in /var/www/html/wp-includes/option.php on line 1924
- How to validate field when create post
- Speed issues because of CSS & JavaScript
- A more elegant way to handle notices/warnings
- Plugin Installation Error
- Plugin installation error in wordpress
- WordPress 3.5 install error
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Plugin won’t activate, fatal error (widget class not found)
- HTTP Error 403 When Trying to Login
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- Fatal error with Ultimate Coupon plugin
- The plugin generated xxx characters of unexpected output during activation
- Receiving error with Custom Tables plugin
- How can I send api calls from my plugin?
- Console errors after WordPress Update 6.1
- How can I resolve an error on WordPress after PHP update
- How can I disable a plugin in Health Check mode if there’s a critical error?
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]