Support » Localhost Installs » Parse error: syntax error, unexpected

  • Estimados buenas tardes, saludos a todos. Por favor quisiera que me apoyaran en la resolución de este error el día de hoy 06/03/2018 he realizado una migración de mi sitio web que tenia en localhost a mi hosting todo lo realice correctamente pero al momento de ingresar a me genera el siguiente error: Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/u169543763/public_html/wp-content/themes/zerif-lite/inc/jetpack.php on line 1

    Agradezco su valiosa colaboración y soporte.

    Saludos cordiales

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • From Google translate:

    Dear good afternoon, greetings to all. Please, I would like you to support me in the resolution of this error today 06/03/2018 I have made a migration from my website that I had in localhost to my hosting everything done correctly but when entering http: // generates the following error: Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/u169543763/public_html/wp-content/themes/zerif-lite/inc/jetpack.php on line 1

    I appreciate your valuable collaboration and support.

    Best regards

    Suggest that you look at the file:
    And compare it with the same file on your localhost.

    Estimado gracias por prestarme atención, he comparado y ambos tienen este código:


    * Jetpack Compatibility File
    * Add theme support for Infinite Scroll.
    * See:

    function zerif_jetpack_setup() {

    add_theme_support( ‘infinite-scroll’, array(

    ‘container’ => ‘main’,

    ‘footer’ => ‘page’,

    ) );


    add_action( ‘after_setup_theme’, ‘zerif_jetpack_setup’ );

    Estimados creo haber solucionado el inconveniente, los códigos de los archivos estaban desorganizados… ¿Pero, por qué sucede eso? se desorganizaron todos los archivos localizados en /home/u169543763/public_html/wp-content/themes/zerif-lite/inc/; no funcionaba sobrescribiendolo de localhost, tuve que realizarlo manualmente, por ahora ya puedo acceder al panel al momento de migrar de localhost todo se desorganizó. tengo que volver a organizar mi web?


    From google translate:

    Dear I think I have solved the problem, the codes of the files were disorganized …
    But, why does that happen? all the files located in
    / home / u169543763 / public_html / wp-content / themes / zerif-lite / inc /
    were unorganized; it did not work overwriting it from localhost,
    I had to do it manually, for now I can access the panel at the time of
    migrating from localhost everything got messed up.
    I have to re-organize my website?


    It happens sometimes that FTP does not over write files properly.
    In detailed upgrade instructions:
    Detailed instructions on which files to delete and which to keep.
    Then upload the new files.

    • This reply was modified 6 months, 2 weeks ago by  RossMitchell.
    • This reply was modified 6 months, 2 weeks ago by  RossMitchell.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected’ is closed to new replies.