Title: What|s wrong with this content.php?
Last modified: August 20, 2016

---

# What|s wrong with this content.php?

 *  [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/)
 * “Parse error: syntax error, unexpected ‘}’ in H:\wwwroot\43494\www\wp-content\
   themes\magzimus\includes\content.php on line 41”
 * I get this error message on my website after I installed a theme. This is the“
   content.php”-file from the /includes folder.
    __________
 * _[code moderated according to [Forum Rules ](http://codex.wordpress.org/Forum_Welcome)-
   please use the [pastebin](http://pastebin.com/)]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123210)
 * [This is the content of the content.php file](http://pastebin.com/H1NzxV26)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123220)
 * this line (line 35):
 *     ```
       <a href="<?php the_permalink(); ?>"><?php echo $imagetag; ?></a> <?
       ```
   
 * ends with an php shorttag `<?`, which is not understood by all servers (depends
   on the server settings)
 * change it to `<?php` :
 *     ```
       <a href="<?php the_permalink(); ?>"><?php echo $imagetag; ?></a> <?php
       ```
   
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123221)
 * Thanks a lot!
 * That lead to the [Thumbnails.php](http://pastebin.com/VjwVWnNn) to fail. Could
   you help me with that too?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123250)
 * direct at the start in ‘Thumbnails.php’ there is again a php shorttag
 * `<?`
 * change it to `<?php`
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123259)
 * Thanks so much again – as you would guess, [another error turned up](http://pastebin.com/MeY53Q1D),
   this time in [/widgets/recent.php](http://pastebin.com/uppHeXNA)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123263)
 * /widgets/recrent.php has the same error as before:
 * line 1:
    `<?`
 * line 32:
    `<?`
 * line 36:
    `<?`
 * line 67:
    `<input style="width: 200px;" id="ts_recent_title" name="ts_recent_title"
   type="text" value="<? echo $title; ?>" />`
 * line 72:
    `<input style="width: 20px;" id="ts_recent_maxposts" name="ts_recent_maxposts"
   type="text" value="<? echo $maxposts; ?>" />`
 * line 78:
    `<?`
 * line 93:
    `<a href="<? the_permalink(); ?>"><?php the_post_thumbnail(array(67,
   67)); ?></a>`
 * line 94 (twice):
    `<p><a href="<? the_permalink(); ?>"><? the_title(); ?></a>
   <?php echo split_by_words(ts_getoption('ts_miniexcerpt_size'), get_the_excerpt()).'&
   raquo;'; ?></p>`
 * line 98:
    `<?`
 * try and change all these php shorttags into full `<?php` tags.
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123269)
 * Ok – got another error in twitter.php and changed the php shorttags as you have
   explained. Then I got another error in the same file. [Now it looks like this](http://pastebin.com/FMBX6ifq).
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123271)
 * have you used a ‘search and replace’? (if yes – not a good idea…)
 * there are many instances in that file with:
 * `<?phpphp`
 * try and find them all and bring them back to:
 * `<?php`
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123273)
 * Thanks again – yes that was of course caused by me doing exactly that. Now I’ve
   gotten a little further. But now it shows an error in the plugin.php in the core.
 * See for yourself [at the site](http://koncept.no) and [here is the code](http://pastebin.com/fESDw2BG).
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123289)
 * ‘; } register_sidebar_widget(array(‘Video’, ‘theme-video’), ‘widget_video’, ”);
   register_widget_control(array(‘Video’, ‘theme-video’), ‘widget_video_control’,
   360, 300); } ?>
    Warning: call_user_func_array() [function.call-user-func-array]:
   First argument is expected to be a valid callback, ‘widget_video_init’ was given
   in H:\wwwroot\43494\www\wp-includes\plugin.php on line 395
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123294)
 * this seems as if in functions.php of your theme, there is another case of php
   shorttags;
 * please check functions.php
 * btw: why are you trying to get a buggy theme to work?
    there are plenty functioning
   themes free available …
 * if you have paid for the theme, please contact the theme vendor for support.
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123296)
 * Thanks again.
 * Liked the theme very much.
    Paid $30 for it from a good site. Has contacted both
   the site and the author, but no answer from the latter. Kind of pissed…
 * Never experienced any trouble with a premium theme before, so I’m kind of surprised.
   But I guess I shouldn’t be.
 *  Thread Starter [foffster](https://wordpress.org/support/users/foffster/)
 * (@foffster)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123392)
 * All this trouble because my new web hotel provider put my site on a Windows 2008
   server. Ah, the misery!
 * Thanks again.
 *  [hotjinx](https://wordpress.org/support/users/hotjinx/)
 * (@hotjinx)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123479)
 * Hi there guys!
 * As frustrated as I am and also as stupid as I feel.Can you please help me with
   the following on my site…
 * Warning: Invalid argument supplied for foreach() in /home8/hotjinxc/public_html/
   mychristianblog/wp-content/plugins/genieknows-media/gkmedia.php on line 65
 * I installed this plugin and removed it,but this message just wont go away,not
   on my admin bar and also not on my website.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘What|s wrong with this content.php?’ is closed to new replies.

## Tags

 * [line](https://wordpress.org/support/topic-tag/line/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 14 replies
 * 3 participants
 * Last reply from: [hotjinx](https://wordpress.org/support/users/hotjinx/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/whats-wrong-with-this-contentphp/#post-2123479)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
