• Migrated from old host to new host.

    Downloaded files via FTP, exported SQL database.

    Uploaded files via FTP to new host, imported SQL database.

    Made appropriate changes to the config, but am getting this error:

    Parse error: syntax error, unexpected ‘,’….< path to theme >

        function start_el(&$output, $item, $depth, $args)
          {&$output, $item, $depth = 0, $args = Array, $id = 0
               global $wp_query;
               $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
    

    Any suggestions?

    Note: old host is gone. Can’t refer back to it. (bad timing, I know.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey James,
    I am not sure if your error says that the unexpected element is ‘ ‘ or , – if that is ” – you may try to remove it from the end of the line :
    $indent = ( $depth ) ? str_repeat( “\t”, $depth ) : ”;
    Alternatively, I would suggest trying to change your php version, as it is possible in your previous host the php version to have been different than the default php version setup in your new host.
    Hope this helps!

    Thread Starter jameslict

    (@jameslict)

    Hi Vladinka,

    Thanks for the input. The unexpected element is a comma — I’ve tried removing it (knowing that it should be there to separate arguments, but I’ll try anything…) but that did not work.

    The previous host had the option of three different versions of PHP. We are seeing if we can try all them on the new host. Thanks for the suggestion!

    Best,
    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Migrated to new host, getting Parse error’ is closed to new replies.