• Hi everybody.

    I did a migration of a wordpress website from remote to local.
    I installed XAMPP, created a local database, modify the parameters of the wp-config.php file, replaced the strings in the original database with the new string of my localhost and imported the database.

    Finally I changed the htaccess file and I went to work on the site locally.
    Everything perfect except for the section post because when I click on a link to the post or trying to view a post I get this error string:

    Parse error: syntax error, unexpected end of file in C:\Users\VM_Alberto_8.1\Desktop\xampp\htdocs\adaptica\wp-content\themes\2win\category.php on line 24

    But I have not changed any code, and the same page remotely, on-site on-line, goes perfectly.

    I can not understand what was wrong.

    Also place the error page:

    <?php
    /*
    Template Name: News
    */
    ?>

    <?php get_header() ?>

    <div id=”category”>
    <div class=”pad clearfix”>
    <div class=”col_dx”>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Category’) ) : else : ?><? endif; ?>
    </div>
    <div class=”col_sx”>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, ‘news’ ); ?>
    <?php endwhile; // end of the loop. ?>
    </div>
    </div>
    </div>
    <?php get_footer(); ?>

    If anyone has any suggestions….

    Thanks

  • The topic ‘'Parse error, category error from remote to local’ is closed to new replies.