Parse error: syntax error, unexpected '[' in

Parse error: syntax error, unexpected '[' in

Support Forums Blanco – WP Theme Parse error: syntax error, unexpected '[' in

This topic contains 10 replies, has 2 voices, and was last updated by  CreaboxThemes 1 week, 6 days ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #5903

    Stephan_V
    Participant

    Hey there developers of Creabox,

    I’ve installed the new Blanco theme but got a Parse error:

    Parse error: syntax error, unexpected ‘[‘ in /home/p25478/domains/website.nl/public_html/wp-content/themes/blanco/admin/options-config.php on line 671

    When deleting that line 671, i’m getting another error in the Loop.php.

    How to solve this?

    Thanks,

    Stephan

    #5908

    CreaboxThemes
    Keymaster

    Hi,

    first, check the php version you have. If your php version is prior to 5.4, replace the code of the line 671 by this one:

    $newArray = array();

    Regards

    #5911

    Stephan_V
    Participant

    Hey thanks for your reply,

    As said earlier, when replacing that the Loop.php will give an erro on this line:

    Fatal error: Can’t use function return value in write context in /home/p25478/domains/website.nl/public_html/wp-content/themes/blanco/loop.php on line 146

    <?php if ( ($blanco_option[‘enable_author_info’] == true) && (!empty(get_the_author_meta( ‘description’ ))) ): ?>

    Regards,

    Stephan

    #5914

    CreaboxThemes
    Keymaster

    Hi,

    I know where it is the problem. Could you create a new user for me in your admin panel? In that way, I will modify the code to resolve the problem. I have done this with other users, so you can trust me. You can send the data to admin@creabox.es

    When it is ok, i will update the theme with this problem resolved.

    Regards

    #5915

    Stephan_V
    Participant

    Ok got it, i’ve send an invitation to your e-mail address :), Thank you!

    Regards,

    Stephan

    #5916

    CreaboxThemes
    Keymaster

    Hi,

    I have accessed to your admin panel and the theme works fine. I have imported everything and it looks like the demo website.

    Regards

    #5936

    Stephan_V
    Participant

    Hey there Creabox,

    I’ve seen it, works great, though still have some questions.
    Tried to use the documentation that was provided with the downloads. Apparently the ‘Visual Composer’ plugin isn’t in the installation. Instead of the Visual composer there is the ‘WPBakery Page Builder’.

    What i’m looking for right now is the possibility to create custom portfolio pages that’s mentioned in the documentation via Visual Composer. It seems that WPBakery Page Builder doesn’t provide this option, how to deal with this?

    The other problem is that the Loop.php isn’t working in the Blog section. Can you please solve these issue’s? Many thanks again! The Creabox account that I provied earlier is still active on my website.

    Regards,

    Stephan

    #5937

    Stephan_V
    Participant

    Hey there Creabox,

    What i’m looking for right now is the possibility to create custom portfolio pages that’s mentioned in the documentation via Visual Composer. It seems that WPBakery Page Builder doesn’t provide this option, how to deal with this?

    The other problem is that the Loop.php isn’t working in the Blog section. Can you please solve these issue’s? Many thanks again! The Creabox account that I provied earlier is still active on my website.

    Regards,

    Stephan

    #5939

    CreaboxThemes
    Keymaster

    Hi,

    the plugin ‘Visual Composer’ is the same plugin than ‘WPBakery Page Builder’. The name changed. You can check that in the plugin website: https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431

    I have modified the plugin options to allow custom portfolio post. In the page ‘WPBakery Page Builder Settings > Role Manager’, I have changed the first option ‘Post types’. I have created a new post called ‘Custom post’ to check if it works fine. And so it is. The post has private visibility 😉

    About the error in the file loop.php, I know the solution but I couldn’t edit the file to resolve it. I have sent you the file modified to your email. Could you upload it via FTP please? You have to replace it in theme folder.

    Regards

    #5949

    Stephan_V
    Participant

    Hey there,

    strangely enough the slider isn’t working anymore. I haven’t done anything with it.
    The header.php is giving a warning. Other rows in the page are still working.

    any idea what is going on?

    regards,

    Stephan

    #5950

    CreaboxThemes
    Keymaster

    Hi,

    I don’t know why you got that error. In the slider section of your homepage, I have removed the slide, save the page, and then add it again, and it works fine.

    Regards

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.