Forums

[bug] images in admincenter won't show up if fold (5 posts)

  1. TigerDE2
    Member
    Posted 9 years ago #

    Hi!
    I just set up wp .71 and I changed the config file as follows:
    $siteurl = 'http://'.$SERVER_NAME.'/de';
    $smilies_directory = $siteurl . '/bilder/b2-img/smilies';
    However, wp trys to include the pictures in the adminj center from:
    [...]-erfurt.de/de/b2-img/email.gif
    Why?
    Is this a bug or did I miss sth. in the config or readme file?
    Thanks. :)
    Christian

  2. TigerDE2
    Member
    Posted 9 years ago #

    By the way:
    /b2mail.php returns
    Fatal error: Call to undefined function: dbconnect() in /home/www/kunden/ess-erfurt.de/de/b2mail.php on line 14
    I think you changed that function somehow...
    So, how should I replace it?
    Christian

  3. Mike Little
    Member
    Posted 9 years ago #

    Hi,
    This problem is caused by the fact that the post/edit page runs in a different directory from the blog template.
    This means that if your image directory (defined in the options -> file uploads) is relative, it won't work in the post/edit page.
    The only solution is to define your image page to be absolute or live with them not showing on the edit page.
    If you take the former course, you will need to edit your posts which already have images references with the old relative path.
    Mike

  4. Mike Little
    Member
    Posted 9 years ago #

    Regarding the error about dbconnect(), that function has indeed been removed. There is no replacement for it.
    The next version of WordPress (0.72) is currently in beta testing and doesn't have this problem.
    Perhaps you would like to install that version, this will save you having to upgrade when 0.72 comes out of beta (which should be soon).
    Mike

  5. TigerDE2
    Member
    Posted 9 years ago #

    Hi!
    Well, I'm not quiet sure what you're trying to tell me. (Probably my bad English... ;) )
    The page where it doesn't work is the Team page and I thought the path above was absolute?
    I mean, it's
    $siteurl = ‘http://’.$SERVER_NAME.’/de’;
    $smilies_directory = $siteurl . ‘/bilder/b2-img/smilies’;
    which becomes
    $smilies_directory = 'http://’.$SERVER_NAME.’/de/bilder/b2-img/smilies’;
    if executed, right? (I don't know much about php but I think I'm right.)
    So, why should I change anything, since that's the path were the pics are.
    And I'm using a new installation without any posts. *confused*
    Christian

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.