WordPress.org

Ready to get started?Download WordPress

Forums

Pyrmont V2 2.0.7 by motta (5 posts)

  1. kubull
    Member
    Posted 4 years ago #

    Hello!

    Im having a minor issue with the Pyrmont V2 theme, (Over all it's fantastic!) but I just came across this error the other day,

    Before log in, viewing a post, a user must log in to post a comment (As normal I guess) the custom message says "You must be logged in to post a comment" with the Logged text as a link. that link doesn't work for some strange reason, the below error appears:

    404 File not found
    The requested URL /< was not found on this server.
    Apache/2.0.52 (Red Hat) Server at http://www.kubull.com Port 80

    I think it may narrow down to the fact I have wordpress installed in a subdirectory, but due to my lack of knowledge of HTML, I wouldn't know how to change it.

    Any help would be greatly appreciated.

    Rob

  2. kubull
    Member
    Posted 4 years ago #

    AH right! Okay, well thats only fair enough, well at least you tried... many thanks for your help... your one in a million! I'm not sure what I would have done if it wasn't for you!

    Brilliant!

    Great!..

    Awesome!...

  3. kubull
    Member
    Posted 4 years ago #

    Ok the Annoying thing that happens when I click on the link it displays the 404 message, but I noticed the address line, doesn't make much sense!

    http://www.kubull.com/%3C?php%20echo%20get_option(%27siteurl%27);%20?%3E/wp-login.php?redirect_to=%3C?php%20echo%20urlencode(get_permalink());%20?%3E

    Does anyone else think the code is a bit screwy and that it should be displaying that?

  4. FrankZ
    Member
    Posted 4 years ago #

    Did you find a solution to this issue?

    I am facing the same problem. The trouble seems to be that there's some PHP code in the text to be translated. Here's an excerpt of de_DE.po:

    #: comments.php:64
    
    msgid "You must be <a href=\"<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>\">logged in</a> to post a comment."
    
    msgstr "Du musst <a href=\"<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>\">angemeldet</a> sein, um einen Kommentar abzugeben."
  5. FrankZ
    Member
    Posted 4 years ago #

    Ok, solved this.
    Here's how I solved it.

    Changed the above listed lines as follows:

    #: comments.php:64
    msgid "You must be <a href=\"%s\">logged in</a> to post a comment."
    msgstr "Du musst <a href=\"%s\">angemeldet</a> sein, um einen Kommentar abzugeben."

    Also, I changed line 67 in comments.php of the pyrmontv2 theme.
    Original:

    <p><?php _e('You must be <a href="<?php echo get_option(\'siteurl\'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.','pyrmont_v2');?></p>

    New:

    <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.','pyrmont_v2'),
    	get_option('siteurl') . "/wp-login.php?redirect_to=" . urlencode(get_permalink()));?></p>

    After changing a .po file you need to compile it to a .mo file. There are various tools to do this.

Topic Closed

This topic has been closed to new replies.

About this Topic