• Resolved magdapinkwart

    (@magdapinkwart)


    Hi,

    I’m trying to activate the plugin. But when activating there is an error:

    Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /wp-content/plugins/wp-travel-engine/public/class-wp-travel-engine-public.php on line 609

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @magdapinkwart

    I think it’s Wp version issue. Your wordpress version does not accept declaration of array so follow one simple step.

    You need to replace code from /wp-content/plugins/wp-travel-engine/public/class-wp-travel-engine-public.php

    $terms = get_terms([
    ‘taxonomy’ => ‘activities’,
    ‘hide_empty’ => false,
    ]);

    With this Code (Twice)

    $terms = get_terms(array(
    ‘taxonomy’ => ‘activities’,
    ‘hide_empty’ => false,
    ));

    Thanks,
    Baljinder

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error when activating the plugin’ is closed to new replies.