Support › Forums › Blanco – WP Theme › Parse error: syntax error, unexpected '[' in
- This topic has 10 replies, 2 voices, and was last updated 5 years, 6 months ago by
CreaboxThemes.
-
AuthorPosts
-
November 13, 2017 at 4:36 pm #5903
Stephan_V
ParticipantHey 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
November 13, 2017 at 11:03 pm #5908CreaboxThemes
KeymasterHi,
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
November 14, 2017 at 6:16 am #5911Stephan_V
ParticipantHey 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
November 14, 2017 at 8:14 am #5914CreaboxThemes
KeymasterHi,
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
November 14, 2017 at 9:40 am #5915Stephan_V
ParticipantOk got it, i’ve send an invitation to your e-mail address :), Thank you!
Regards,
Stephan
November 14, 2017 at 10:40 am #5916CreaboxThemes
KeymasterHi,
I have accessed to your admin panel and the theme works fine. I have imported everything and it looks like the demo website.
Regards
November 19, 2017 at 5:05 pm #5936Stephan_V
ParticipantHey 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
November 19, 2017 at 6:21 pm #5937Stephan_V
ParticipantHey 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
November 19, 2017 at 10:47 pm #5939CreaboxThemes
KeymasterHi,
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
November 27, 2017 at 6:32 pm #5949Stephan_V
ParticipantHey 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
November 28, 2017 at 7:42 am #5950CreaboxThemes
KeymasterHi,
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
-
AuthorPosts
- You must be logged in to reply to this topic.