• Resolved pinkofwealth

    (@pinkofwealth)


    Hi, I updated the plugin and now I’m locked out of WordPress.

    The error message shows –

    Parse error: syntax error, unexpected ‘[‘ in /home/public_html/wp-content/plugins/ultimate-social-media-plus/libs/sfsi_gutenberg_block.php on line 64

    I copied the code from line 60 to 71 of sfsi_gutenberg_block.php:
    function sfsi_plus_register_icon_route(){
    register_rest_route(SFSI_PLUS_DOMAIN.’/v1′,’icons’,array(
    ‘methods’=> WP_REST_Server::READABLE,
    ‘callback’ => ‘sfsi_plus_render_shortcode’,
    ‘args’=>[
    “share_url”=>[
    “type”=>’string’,
    “sanitize_callback” => ‘sanitize_text_field’
    ]
    ]
    ));
    }

    Can anyone let me know what is the mistake? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you disable the plugin, does it work again?

    Thread Starter pinkofwealth

    (@pinkofwealth)

    Hi, I’m locked out of my WordPress.

    As much as I want to disable it, I’m not sure how I can do it. Would you be so kind to advice? I am using FTP client to access to the folders.

    Ok, please delete the plugin via FTP. Can you then access it again?

    Thread Starter pinkofwealth

    (@pinkofwealth)

    It worked! That scares me.

    Now I fear to reinstall. What caused me the error and how do I prevent it?

    Thread Starter pinkofwealth

    (@pinkofwealth)

    Thanks for your help.

    You’re welcome. I’ll ask the developer on Monday if he can already get some clues from your error message what the issue may be, but most likely there is no fix without deeper investigation. I’ll post the update here.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.