WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite: Path problem for images and style sheet (22 posts)

  1. tlueers
    Member
    Posted 2 years ago #

    Using multisite, facing a problem with image and css-file paths.
    Problem shows up only for frontend view.

    The CSS-link in the source code uses triple "http://http://http://" in the files' path, image paths show double "http://http://".

    The links in the database are correct.
    I do see the images and CSS-File in the backend.

  2. theotherlebowski
    Member
    Posted 2 years ago #

    too many http://'s you only need one per link.

    can you give us a link to your site?

  3. tlueers
    Member
    Posted 2 years ago #

    There's 2 pages running via WPMP:
    #1 http://structocom.de/
    #2 http://tammo-lueers.de

    #1 = links of stylesheets and images are broken, multiple 'http://' - only in the frontend though!
    #2 = no problem, the [wp-blogroll]-info is because I switched all other plugins offline while trying to find the error.

  4. theotherlebowski
    Member
    Posted 2 years ago #

    go into your themes header.php for struct-o-com and copy and paste in here this bit of code so i can see it please:

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>

    i just want to see if it matches... using chrome's web developer plugin i've removed 2 of the http:// bits from the url of your stylesheet and it looks fine but it's only temporary though.

  5. tlueers
    Member
    Posted 2 years ago #

    Actually I'm using a child theme for adjustments.
    I've now re-activated the header.php of that child theme with the code you provided.
    Using Chrome, too.

  6. theotherlebowski
    Member
    Posted 2 years ago #

    cool, can you find that chunk of code in your theme's header .php and paste it here so i can see it?

  7. tlueers
    Member
    Posted 2 years ago #

    It's right in there, as you posted it earlier!
    Line 49-52:

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>
  8. theotherlebowski
    Member
    Posted 2 years ago #

    can you post the header code from your child theme's style.css file?

  9. tlueers
    Member
    Posted 2 years ago #

    Here you go:

    @charset "utf-8";
    
    /* CSS Document */
    
    /*
    
    Theme Name:     Twenty Eleven Child SOC
    Theme URI:      http://structocom.de/wp-content/themes/twentyeleven-soc
    Description:    Child theme for the Twenty Eleven theme
    Author:         Tammo Lueers
    URI:            http: //structocm.de/
    Template:       twentyeleven
    Version:        0.0.2
    */
    
    @import url("../twentyeleven/style.css");
  10. theotherlebowski
    Member
    Posted 2 years ago #

    i think that might be your problem...

    get rid of

    @charset "utf-8";
    
    /* CSS Document */

    this bit and make sure that there's nothing at all before this bit

    /*
    Theme Name:     Twenty Eleven Child SOC
    Theme URI:      http://structocom.de/wp-content/themes/twentyeleven-soc
    Description:    Child theme for the Twenty Eleven theme
    Author:         Tammo Lueers
    URI:            http://structocm.de/
    Template:       twentyeleven
    Version:        0.0.2
    */
    
    @import url("../twentyeleven/style.css");

    see if that helps...

  11. tlueers
    Member
    Posted 2 years ago #

    Sorry, no - did not help.
    Also, this codes is also in the other child's css, and working on the tammo-lueers.de-site.

    The double and triple http://-marks must be generated automatically for the frontend output, right?

  12. theotherlebowski
    Member
    Posted 2 years ago #

    hmm... would you be comfortable briefly making me an admin on your site so i can have a good poke about in the code?

  13. tlueers
    Member
    Posted 2 years ago #

    Yes, How shall I transfer your password?

  14. theotherlebowski
    Member
    Posted 2 years ago #

    :)

  15. I want to put up a caveat here. It's cool to offer to log in and help, but I actually would recommend you not, ONLY because we are internet strangers :) I don't let anyone into my admin if I wouldn't trust them with my car.

    Protip? Two people other than me and my wife have driven the car.

    What's "WPMP"?

    Have you tried the normal tests of turning off all plugins and switching to the default, 2011, theme to see if that helps?

  16. theotherlebowski
    Member
    Posted 2 years ago #

    it's a good point well made. it's a judgement call i guess.

  17. Oh yeah, I'm a tinfoil hat person ;) I also like to make sure I've walked someone through every possible debug before I tell them they need professional help (which IMO is preferable to random stranger - a pro comes with a contract I can hit them with if they mess me up)

  18. theotherlebowski
    Member
    Posted 2 years ago #

    that's why if i can't see what the issue is i touch nothing and walk away! i have no interest in screwing up someones site...

  19. tlueers
    Member
    Posted 2 years ago #

    > Ipstenu: yes, I did try with all other plugins switched off.
    Site#1: still broke,
    Site#2: ok

    WPMP is a mistype, I meant WPMU...sorry!

  20. tlueers - Have you tried switching to the default theme on Site1?

  21. tlueers
    Member
    Posted 2 years ago #

    Yes, switched back to the original Twenty Eleven theme with all plugins [off].
    Did not help, no change.

  22. tlueers
    Member
    Posted 2 years ago #

    I decided to restart my project.
    With a complete new install, the new beginning it is now working.
    I guess too many trials and errors have wrecked the installation.
    Thanks for helping...!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.