• Is there anyone already solved this problem? after adding some codes in functions.php an error occured after updating it.

    Here’s there error.

    ” Parse error: syntax error, unexpected ‘.’ in /home3/toyotapp/public_html/wp-content/themes/tempera/functions.php on line 36 “

    and this is now the recent codes inside the functions.php

    <?php
    /*
     * Functions file
     * Calls all other required files
     * PLEASE DO NOT EDIT THIS FILE IN ANY WAY
     *
     * @package tempera
     */
    
    // variable for theme version
    define ("TEMPERA_VERSION","1.2.2");
    
    require_once(dirname(__FILE__) . "/admin/main.php"); // Load necessary admin files
    
    //Loading include files
    require_once(dirname(__FILE__) . "/includes/theme-setup.php");     // Setup and init theme
    require_once(dirname(__FILE__) . "/includes/theme-styles.php");    // Register and enqeue css styles and scripts
    require_once(dirname(__FILE__) . "/includes/theme-loop.php");      // Loop functions
    require_once(dirname(__FILE__) . "/includes/theme-meta.php");      // Meta functions
    require_once(dirname(__FILE__) . "/includes/theme-frontpage.php"); // Frontpage styling
    require_once(dirname(__FILE__) . "/includes/theme-comments.php");  // Comment functions
    require_once(dirname(__FILE__) . "/includes/theme-functions.php"); // Misc functions
    require_once(dirname(__FILE__) . "/includes/theme-hooks.php");     // Hooks
    require_once(dirname(__FILE__) . "/includes/widgets.php");     // Hooks
    require_once(dirname(__FILE__) . "/includes/ajax.php");     // Hooks
    
    ?>

    I dunno why this error occurred, but please try to help me asap . ??

    Ty in advance!

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate so you can access your site again.

    Then, all you need to do is fix what you added. Where did you get this theme from?

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