• Phireak

    (@noeurphireak)


    I got this error after move my project from local to server, and I got this error message
    PHP Parse error: syntax error, unexpected T_STRING

    and the line of error was in file Carousel_Admin.php Line 245
    $meta_box = new \CarouselSlider\MetaBox($carousel_metabox);

    PHP version 5.4.24
    Wordpress version 4.4.2
    Carousel Slider version 1.5.0

    Please kindly to help me. Thank in advance

    https://wordpress.org/plugins/carousel-slider/

Viewing 1 replies (of 1 total)
  • You have to do two things to fix this error

    1) change this

    $meta_box = new \CarouselSlider\MetaBox($carousel_metabox);
    to
    $meta_box = new MetaBox($carousel_metabox); this in Carousel_Admin.php Line 245

    2) comment or remove this line namespace CarouselSlider; from admin/partials/MetaBox.php

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Parse error: syntax error, unexpected T_STRING in Carousel Slider’ is closed to new replies.