Support » Themes and Templates » parse error in themia-lite: inkthemes-functions.php

  • this theme among several others have fatal errors whenever I try the PREVIEW

    Parse error: syntax error, unexpected ‘}’ in /www/zxq.net/p/m/a/pmanagement/htdocs/wp-content/themes/themia-lite/functions/inkthemes-functions.php on line 1

    anyone can help?
    thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,
    I have the same fatal error. If you look in inkthemes-functions.php, you will find at line 60 in the function : function inkthemes_nav_fallback(), the php tag are close et open many time for nothing I fixed it like this

    echo '
        <div id="menu">
            <ul class="ddsmoothmenu">
                ';
                wp_list_pages('title_li=&show_home=1&sort_column=menu_order');
                ?>
    echo '      </ul>
        </div>';

    I remove all the php tag (except the first and the last 🙂 and now it’s work

    Benoti! thank you so much for sharing the solution! I’m going to try! all the best

    Themia had been updated to version 1.2.2, which resolves the above issues.

    Thanks

    Hi

    I am also having the problem, even with Themia 1.2.2

    Benoti, I attempted your code but when I viewed my site none of the pages were displaying in the navigation bar. Could you possibly copy and paste the exact entire code I need in my inkthemes-functions.php file?

    Thanks!

    Hi jammy,

    I didn’t saw the code of Themia 1.2.2 , make sure that all the php tags are remove, and each time you see html code, you must add echo around it, If you have don’t have the fatal error anymore, you did it well.
    Don’t forget that you have to add manually your pages if you didn’t check “Automatically add pages of high level” when you create or edit your menu.

    Bon courage !

    Hi, I have the Themia version 1.2.5 and I get the same parse error. I cannot preview Themia the dashboard. We attempted the code suggested by Benoti but did not work. Can someone help?

    Peter

    (@petersuranskygmailcom)

    Hi, I have Themia 1.2.6. and I get the same parse error. After activation of the theme, there is no access to wordpress.

    @peter
    Does the parse error come from inkthemes-functions.php ?
    I recommend to take all the theme files and check that all unnecessary php tags are removed , add echo, if necessary.
    good luck

    Peter

    (@petersuranskygmailcom)

    @benoti

    Yes it does:
    Parse error: syntax error, unexpected ‘}’ in
    wp-content/themes/themia-lite/functions/inkthemes-functions.php on line 1
    the whole file is only line.
    I’m trying to find the php tags.

    @peter
    If I understand you have only 1 line…
    You must have a 428 lines in /inkthemes-functions.php
    If you take the download file you will see line 68 the first matter.
    Apply and repeat the procedure in my first post.
    you must remove “?>” (and as need : <?php) for the proper execution of the script.
    So, if you don’t close this php tag, You must add a php echo in order to output the html div and ul, the li will come with the function wp_list_pages. see my first post.
    Benoti

    Peter

    (@petersuranskygmailcom)

    Thank You Benoti,
    for help, I’ve downloaded again the zip file with 1.2.6. version, after unpacking there are 408 lines. After clean binary upload. Everything works fine without any changes. /yesterdays download file is 700 bytes larger than the old one I had/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘parse error in themia-lite: inkthemes-functions.php’ is closed to new replies.