WordPress.org

Ready to get started?Download WordPress

Forums

parse error in themia-lite: inkthemes-functions.php (12 posts)

  1. pmanagement
    Member
    Posted 2 years ago #

    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

  2. Benoti
    Member
    Posted 2 years ago #

    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

  3. pmanagement
    Member
    Posted 2 years ago #

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

  4. InkThemes.com
    Member
    Posted 2 years ago #

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

    Thanks

  5. jammy8891
    Member
    Posted 2 years ago #

    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!

  6. Benoti
    Member
    Posted 2 years ago #

    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 !

  7. eletrak
    Member
    Posted 2 years ago #

    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?

  8. Peter
    Member
    Posted 2 years ago #

    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.

  9. Benoti
    Member
    Posted 2 years ago #

    @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

  10. Peter
    Member
    Posted 2 years ago #

    @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.

  11. Benoti
    Member
    Posted 2 years ago #

    @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

  12. Peter
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Topic