Support » Themes and Templates » Errors with my template…

Viewing 14 replies - 1 through 14 (of 14 total)
  • You’re using ticks around your argument query-string in wp_get_archives(). Use straight single or double quotes.

    I apologize, but I don’t know what a tick is. :\

    It’s a single quote that’s NOT a quote. Note how the ones surrounding your argument query string (type=monthly&format=link) slant to the right. This is often an issue when using copy&paste from a word processor.

    In any case, make sure to use regular, ‘straight’ quotes:


    Ah, okay, thank you. I’ve fixed that… but now I’m recieving another weird error.

    Warning: main(0php’): failed to open stream: No such file or directory in /hsphere/local/home/artific/ on line 3

    Warning: main(0php’): failed to open stream: No such file or directory in /hsphere/local/home/artific/ on line 3

    Fatal error: main(): Failed opening required ‘0php’’ (include_path=’.:/usr/local/lib/php’) in /hsphere/local/home/artific/ on line 3


    Should be


    Just start digging through your template, and reenter the single quotes wherever they exist. I suspect this is going to be most of your errors, because looking at:

    I can see “ticks” crawling all over it. :)

    Well, I’ve gone through that and gotten rid of all the ticks…
    But still recieving an error.

    Parse error: parse error, unexpected ‘>’ in /hsphere/local/home/artific/ on line 15

    And I updated

    In this case, you just missed entering one:

    <?php the_date(','<strong>','</strong>'); ?>

    should be

    <?php the_date('','<strong>','</strong>'); ?>

    Typical programmer’s error. You’re a PHP adept now. ;)

    Ah, I see…

    But, ah, this is so odd. I’m getting that other error again; the longer one.

    Line 15 reads:

    <?php the_date(','<strong>','</strong>'); ?>&nbsp;-&nbsp;<?php the_time() ?>

    Now for your php lesson. The the_date() function requires three arguments, as such:

    <?php the_date('date_format','before','after',display); ?>

    Your friendly Wiki support document should help you out there.

    Whoops, a little slow. Your error above looks like a misconfigured base directory. I’ll leave this one to the folks with more spare time on their hands, as I seem to be a step behind.

    I can see those ticks again in your txt file. What are you using to edit the template?

    Here’s your template as it should be (works on my site):

    Well, that did work, thanks!

    I was editing right in my WP templates on my site.

    But, why is it that my content is appearing before my date…?

    Probably something to do with the table, in that its tags are not being closed up after each interation of the loop.

    Ah, you were correct again! 😀

    Thank you so much for all of your help, I think I’m going to like WordPress!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Errors with my template…’ is closed to new replies.