Forums

What|s wrong with this content.php? (15 posts)

  1. foffster
    Member
    Posted 11 months ago #

    "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]

  2. foffster
    Member
    Posted 11 months ago #

  3. alchymyth
    The Sweeper
    Posted 11 months ago #

    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
  4. foffster
    Member
    Posted 11 months ago #

    Thanks a lot!

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

  5. alchymyth
    The Sweeper
    Posted 11 months ago #

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

    <?

    change it to <?php

  6. foffster
    Member
    Posted 11 months ago #

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

  7. alchymyth
    The Sweeper
    Posted 11 months ago #

    /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.

  8. foffster
    Member
    Posted 11 months ago #

    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.

  9. alchymyth
    The Sweeper
    Posted 11 months ago #

    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

  10. foffster
    Member
    Posted 11 months ago #

    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.

  11. foffster
    Member
    Posted 11 months ago #

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

  12. alchymyth
    The Sweeper
    Posted 11 months ago #

    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.

  13. foffster
    Member
    Posted 11 months ago #

    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.

  14. foffster
    Member
    Posted 11 months ago #

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

    Thanks again.

  15. hotjinx
    Member
    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Topic