• “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 - please use the pastebin]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter foffster

    (@foffster)

    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

    (@foffster)

    Thanks a lot!

    That lead to the Thumbnails.php to fail. Could you help me with that too?

    direct at the start in ‘Thumbnails.php’ there is again a php shorttag

    <?

    change it to <?php

    Thread Starter foffster

    (@foffster)

    Thanks so much again – as you would guess, another error turned up, this time in /widgets/recent.php

    /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

    (@foffster)

    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.

    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

    (@foffster)

    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 and here is the code.

    Thread Starter foffster

    (@foffster)

    ‘; } 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

    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

    (@foffster)

    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

    (@foffster)

    All this trouble because my new web hotel provider put my site on a Windows 2008 server. Ah, the misery!

    Thanks again.

    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.