Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Younes

    (@vanbom)

    @ragose
    can you please show the errors log

    Thread Starter Raúl González

    (@ragose)

    Sorry, I didn’t clarify that the error occurs on the page where the shortcode is placed and the error is a 500.

    According to the logs, the error is:

    [29-Aug-2023 17:00:35 UTC] PHP Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in /home/x/wp-content/plugins/expresstechsoftwares-memberpress-discord-add-on/public/class-memberpress-discord-public.php:99

    Plugin Contributor Younes

    (@vanbom)

    @ragose
    Do you clearly define the colors for each Discord role?

    Thread Starter Raúl González

    (@ragose)

    Yes, each rol have a color.

    Works fine with PHP 7.4…

    Plugin Contributor Younes

    (@vanbom)

    @ragose

    I just tested for both php versions: 8.013 and 8.1.0 on wordpress 6.3.1. The shortcode works as expected.
    can you check the option value: ets_memberpress_discord_roles_color in wp_options.
    it must contain a value of type: s:232:"a:7:{i:1063277853728329738;i:3066993;i:1063278000977752065;i:15158332;i:1063278183681626132;i:7419530;i:1080852693746200576;i:15105570;i:1080852886428319768;i:3447003;i:1081015888054071389;i:7419530;i:1128620544804261888;i:6323595;}";

    Thread Starter Raúl González

    (@ragose)

    Hi:

    Cannot paste code -> Image

    14 roles.

    Thread Starter Raúl González

    (@ragose)

    Hi:

    The error is on the page where the shortcode is placed, and using PHP 8.

    I forgot to mention it…

    Thanks you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not work with PHP 8.0’ is closed to new replies.