• Resolved Gustavo Troisi

    (@gustavotroisi)


    Hello,

    why am I getting this error?

    ( ! ) Warning: Illegal string offset 'pending' in ....\wp-content\plugins\new-user-approve\includes\user-list.php on line 440

    I see this only in new versions of the plugin

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • A.Tariq

    (@arsalantariq)

    Hi @gustavotroisi,

    Thanks for using the plugin,

    I hope you are doing well, we are forwarded this to our technical team we will get back to you soon.

    Thanks & Regards

    WP Experts Support Team

    A.Tariq

    (@arsalantariq)

    Hi @gustavotroisi,

    We are unable to replicate the error at our end. Can you please tell me the WordPress version and PHP version?

    Thanks

    Thread Starter Gustavo Troisi

    (@gustavotroisi)

    Hello! I’m using WordPress 5.9.2 and php 7.3.5

    I tried disabling all the other plugins to avoid any conflicts, and tried also with a clean theme (Twenty Twenty-Two), but the same error is displayed. Also I’ve uninstalled and delete the plugin files and reinstalling it completely.

    This is the complete screen error once activated:

    #	Time	Memory	Function	Location
    1	0.0006	419800	{main}( )	...\admin.php:0
    2	2.7463	16415840	require( '***\wp-admin\menu.php' )	...\admin.php:158
    3	2.7563	16456320	require_once( '***\wp-admin\includes\menu.php' )	...\menu.php:394
    4	2.7614	16441232	do_action( )	...\menu.php:155
    5	2.7614	16441608	WP_Hook->do_action( )	...\plugin.php:474
    6	2.7614	16441608	WP_Hook->apply_filters( )	...\class-wp-hook.php:331
    7	2.7687	16493096	pw_new_user_approve_user_list->pending_users_bubble( )	...\class-wp-hook.php:307
    ( ! ) Warning: Illegal string offset 'pending' in ***\wp-content\plugins\new-user-approve\includes\user-list.php on line 440
    

    Many thanks

    A.Tariq

    (@arsalantariq)

    Hi @gustavotroisi,

    Can you install ‘Transients Manager’ plugin and check if the transient ‘new_user_approve_user_statuses_count’ exists? and it has a value something like this a:3:{s:7:”pending”;i:1;s:8:”approved”;i:1;s:6:”denied”;i:0;}

    You can also try deleting that transient and check if the error gets resolved.

    Thanks

    Thread Starter Gustavo Troisi

    (@gustavotroisi)

    Hi @arsalantariq, the value was empty. Once I deleted it, the notice dissapeared.
    Many thanks!!

    A.Tariq

    (@arsalantariq)

    Hi @gustavotroisi,

    Thanks for the feedback.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Illegal string offset’ is closed to new replies.