• spreadermanii

    (@spreadermanii)


    I am happily using a block theme that I designed with this plugin. No errors in the theme when using it. I want to use it on another site and therefore I “Export to Zip” and uploaded it to a fresh install of worpdress 6.5.2 (same version of wordpress I exported the theme from). After installation of the theme and activation, I get the below error:

    Parse error: syntax error, unexpected identifier “freshsnow”, expecting “)” in /home/sknowed-development/htdocs/development.sknowed.com/public/wp-content/themes/fsefreshsnow/patterns/footer.php on line 17

    Line 17 is per below.

    <h2 class="wp-block-heading has-white-color has-text-color has-link-color"><?php echo __('Contact', 'fse <?php echo __('freshsnow', 'fsefreshsnow');?>');?></h2>

    I can see already there is another line like above that will produce an error like above. Is this some sort of bug? I re-exported a couple of times and still have the same problem. Any tips appreciated.

    • This topic was modified 7 months ago by spreadermanii. Reason: clarification
Viewing 1 replies (of 1 total)
  • Plugin Author Jason Crist

    (@pbking)

    Hrm. This is interesting, I’ve not seen this error before…

    <?php echo __('Contact', 'fse <?php echo

    That “double <?php” is causing some errors, though I’m not sure how it would have happened.

    You should be able to change this:

    <?php echo __('Contact', 'fse <?php echo __('freshsnow', 'fsefreshsnow');?>');?>

    to this:

    <?php echo __('Contact', 'fsefreshsnow');?>

    to fix the error. (assuming your theme slug is ‘fsefreshsnow’ which I’m not clear about considering how it was mangled) However I wasn’t able to reproduce the error you described myself. If you have any additional thoughts on how we got there I’ll check this out again.

Viewing 1 replies (of 1 total)
  • The topic ‘When installing an exported theme, I get a php syntax error’ is closed to new replies.