Home Forums Themes Support TeeSpace Receiving errors from WordFence and via email as follows. Please advise.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11251

    Error via email:
    ordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Haru TeeSpace.

    First, visit your website (https://bitterglitterfairy.com/) and check for any visible issues. Next, visit the page where the error was caught (https://bitterglitterfairy.com/wp-admin/admin-post.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://bitterglitterfairy.com/wp-login.php?action=enter_recovery_mode&rm_token=sOVwptuxjDlG1mk7lvX17L&rm_key=iHgxxdK8mRs4Vd6KXTPDVc

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.2.2
    Active theme: TeeSpace – Child (version 1.0.0)
    Current plugin: Haru TeeSpace (version 1.2.0)
    PHP version 8.1.19

    Error Details
    =============
    An error of type E_ERROR was caused in line 203 of the file /home/bitterglitterfai/public_html/wp-content/plugins/haru-teespace/core/libraries/cmb2-conditionals/cmb2-conditionals.php. Error message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /home/bitterglitterfai/public_html/wp-content/plugins/haru-teespace/core/libraries/cmb2-conditionals/cmb2-conditionals.php:203
    Stack trace:
    #0 /home/bitterglitterfai/public_html/wp-includes/class-wp-hook.php(308): Haru_CMB_Conditionals->filter_data_to_save(Object(CMB2), ‘rank-math-optio…’)
    #1 /home/bitterglitterfai/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
    #2 /home/bitterglitterfai/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/bitterglitterfai/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(850): do_action(‘cmb2_options-pa…’, Object(CMB2), ‘rank-math-optio…’)
    #4 /home/bitterglitterfai/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(776): CMB2->pre_process()
    #5 /home/bitterglitterfai/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(757): CMB2->process_fields()
    #6 /home/bitterglitterfai/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php(306): CMB2->save_fields(‘rank-math-optio…’, ‘options-page’, Array)
    #7 /home/bitterglitterfai/public_html/wp-includes/class-wp-hook.php(308): CMB2_Options_Hookup->save_options(”)
    #8 /home/bitterglitterfai/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #9 /home/bitterglitterfai/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/bitterglitterfai/public_html/wp-admin/admin-post.php(85): do_action(‘admin_post_rank…’)
    #11 {main}
    thrown

    Error via WordFence Scan:
    Plugin Name: Slider Revolution
    Current Plugin Version: 6.6.12
    Details: To protect your site from this vulnerability, the safest option is to deactivate and completely remove “Slider Revolution” until a patched version is available. Get more information.(opens in new tab)
    Vulnerability Information: https://www.wordfence.com/threat-intel/vulnerabilities/id/4fa00dae-c51d-4586-81da-b568cd6d8124?source=plugin(opens in new tab)
    Vulnerability Severity: 7.2/10.0 (High)

    This site is still under devlopment!! I don’t know what to do with these errors. One possible solution is to deinstall the Revolution Slider plugin because it is no longer support in a free version.

    #11256

    Hi,
    Thanks for contacting us and choosing our product!
    1. The issue with Haru TeeSpace plugin, it seems this issue only happen when you install Rank Math Seo plugin.
    You can try by go to: wp-content/plugins/haru-teespace/core/libraries/cmb2-conditionals/ then open file cmb2-conditionals.php
    Go to line 203 and change the code from:

    if ( ! ( 'group' === $field_args['type'] || ( array_key_exists( 'attributes', $field_args ) && array_key_exists( 'data-conditional-id', $field_args['attributes'] ) ) ) ) {
    	continue;
    }

    to

    if ( ! ( 'group' === $field_args['type'] || ( array_key_exists( 'attributes', $field_args )  ) ) ) {
    	if ( is_array( $field_args['attributes'] ) ) {
    		if ( array_key_exists( 'data-conditional-id', $field_args['attributes'] ) ) {
    			continue;
    		}
    	}
    }

    2. About the issue with Revolution Slider you can update it to the latest version by follow this topic:

    How to Manual Update WordPress theme via FTP


    (Recommended this method because you are using child theme)
    or

    How to update WordPress theme Automatic from ThemeForest


    Please notice at step 3+4 to update plugins.
    Hope this helps!

    ****
    Regards,
    HaruTheme

    #11514

    I deactivated and deleted the RankMath plugin to see if I still get the error. I’ll let you know.

    #11521

    Thanks for your feedback!

    ****
    Regards,
    HaruTheme

    #11724

    Hi,
    You can use this solution for continue use Rank Math plugin.
    Go to: wp-content/plugins/haru-teespace/core/libraries/cmb2-conditionals/ then open file cmb2-conditionals.php
    Change the code of function filter_data_to_save on line 201 to this:

    public function filter_data_to_save( CMB2 $cmb2, $object_id ) {
    	foreach ( $cmb2->prop( 'fields' ) as $field_args ) {
    		if ( class_exists('RankMath') && isset( $_POST['action'] ) && ( $_POST['action'] != 'rank-math-options-titles' ) ) {
    			if ( ! ( 'group' === $field_args['type'] || ( array_key_exists( 'attributes', $field_args ) && array_key_exists( 'data-conditional-id', $field_args['attributes'] ) ) ) ) {
    				continue;
    			}
    						
    			if ( 'group' === $field_args['type'] ) {
    				foreach ( $field_args['fields'] as $group_field ) {
    					if ( ! ( array_key_exists( 'attributes', $group_field ) && array_key_exists( 'data-conditional-id', $group_field['attributes'] ) ) ) {
    								continue;
    							}
    
    							$field_id               = $group_field['id'];
    							$conditional_id         = $group_field['attributes']['data-conditional-id'];
    							$decoded_conditional_id = @json_decode( $conditional_id );
    							if ( $decoded_conditional_id ) {
    								$conditional_id = $decoded_conditional_id;
    							}
    
    							if ( is_array( $conditional_id ) && ! empty( $conditional_id ) && ! empty( $cmb2->data_to_save[ $conditional_id[0] ] ) ) {
    								foreach ( $cmb2->data_to_save[ $conditional_id[0] ] as $key => $group_data ) {
    									$cmb2->data_to_save[ $conditional_id[0] ][ $key ] = $this->filter_field_data_to_save( $group_data, $field_id, $conditional_id[1], $group_field['attributes'] );
    								}
    							}
    							continue;
    						}
    					} else {
    						$field_id       = $field_args['id'];
    						$conditional_id = $field_args['attributes']['data-conditional-id'];
    
    						$cmb2->data_to_save = $this->filter_field_data_to_save( $cmb2->data_to_save, $field_id, $conditional_id, $field_args['attributes'] );
    			}
    		}
    	}
    }

    We’ll update this in the next version.

    ****
    Regards,
    HaruTheme

    • This reply was modified 2 months, 1 week ago by admin.
    • This reply was modified 2 months, 1 week ago by admin.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.