WordPress.org

Ready to get started?Download WordPress

Forums

Magazine Basic - Can't Upload Header Image (20 posts)

  1. WendyWeb
    Member
    Posted 5 years ago #

    Hi, I'm a newby... delighted with the Magazine Basic theme! But can't seem to upload an image for the header.
    I am getting the following message:

    Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in .../functions.php on line 108

    Warning: getimagesize(http://geneva.usmission.gov/news/wp-content/themes/magazine-basic/uploads/testBack.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in .../functions.php on line 108

    Also, I'm wondering where I can find the optimal pixel dimensions to fill the header space. It's probably somewhere obvious, but I'm missing it!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

    I don't know this theme at all but, looking at the error messages you're getting, the first thing that occurs is - have you checked that testBack.jpg uploaded correctly?

  3. WendyWeb
    Member
    Posted 5 years ago #

    What is testBack.jpg and where should I look for it?

  4. WendyWeb
    Member
    Posted 5 years ago #

    Oops, that was really silly of me, I forgot that I had named the graphic "testBack"... sorry,

    So I've just looked in uploads under the Magazine Theme, and also the general Uploads for the site, and it is not in either directory. (Normally where is it supposed to go?)

    Here's what happens when I get this message... the image does appear in the topper, but it appears with the java script above written over it. So then I deactivate the choice of using a graphic, and it disappear....

  5. WendyWeb
    Member
    Posted 5 years ago #

    I've also checked the file permissions on the folders and the functions.php file above and all should be writeable.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

    The Magazine theme appears to be looking in wp-content/themes/magazine-basic/uploads so that's where you need to upload any header image.

  7. WendyWeb
    Member
    Posted 5 years ago #

    It's in that directory, but still doesn't work!

  8. c.bavota
    Member
    Posted 5 years ago #

    Hey WendyWeb,

    Do you know if you are on a Windows server? I know a lot of people have been having issues with the header uploader on Windows servers. If you want to contact me with more info I will take a look and see what the problem is. Just go to my site's contact page and drop me an email. Any solution I find I will post back here as well.

  9. affectiveartistry
    Member
    Posted 5 years ago #

    It's looking for a specifically named file. When I created the upload folder under the theme's main folder and uploaded my header image there named logo.gif it worked. Just uploading any header graphic from the dashboard won't work.

  10. WendyWeb
    Member
    Posted 5 years ago #

    Hmm, that sounds like it could have worked, but I've already used another solution suggested by the theme's designer - I have commented out the following line in the header.php.

    /* if (get_option('uwc_logo_header') == "yes") {
    list($w, $h) = getimagesize(get_option('uwc_logo'));
    $height = $h/2+20;
    } else {
    $height= 35;
    }*/

    This also worked and now my header - which is not named logo -- is inserted in the banner space.

  11. innersanctum
    Member
    Posted 5 years ago #

    Wendy, thanks for the information but I didn't find this in the header.php file but actually in the functions.php file and once I did what you said it works perfectly.

    Thanks for leading me to the water and let me drink on my own.

  12. WendyWeb
    Member
    Posted 5 years ago #

    Yes, that's right, it's in the functions.php file.

  13. WendyWeb
    Member
    Posted 5 years ago #

    And just a note, as an experiment, I did try renaming the file logo.jpg and uploading it, but that did not work. Only commenting out the script above worked.

  14. Harty
    Member
    Posted 4 years ago #

    The code that needs to be hidden starts on line 107 of the functions.php document

  15. Harty
    Member
    Posted 4 years ago #

    I blocked out the code as advised on this site. I still cant upload a header graphic and now get this text above my header: Warning: getimagesize(http://www.webaddress.com/wp-content/themes/magazine-basic/uploads/logo_72dpi.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/public_html/wp-content/themes/magazine-basic/functions.php on line 108

  16. Harty
    Member
    Posted 4 years ago #

    I can now upload pictures. I went to miscelaneous settings and unchecked the options so nothing is selected. Then I saved and was able to upload a photo to a story. BUT I get this code appearing above my header image:
    Warning: getimagesize(http://www.mywebsite.com/wp-content/themes/magazine-basic/uploads/logo_72dpi.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/public_html/ppp/wp-content/themes/magazine-basic/functions.php on line 108

    Getting a bit tired of it all now...

  17. Harty
    Member
    Posted 4 years ago #

    Do you hide this code in the functions wordpress php doc or the php doc of magazine basic?

    /* if (get_option('uwc_logo_header') == "yes") {
    list($w, $h) = getimagesize(get_option('uwc_logo'));
    $height = $h/2+20;
    } else {
    $height= 35;
    }*/

  18. c.bavota
    Member
    Posted 4 years ago #

    Hey all,

    A new version of the theme is available that should solve this issue.

  19. cles22
    Member
    Posted 4 years ago #

    I started with the newest version, but I'm encountering the same problem. Logo won't load into the header. Anyone else still have this problem, or know what to do about it?

  20. mattstat
    Member
    Posted 4 years ago #

    cles22

    The problem seems to be in the style.css in the definition of

    #headerad

    which appears innocuous. Take out the <div> tags around the banner ad in the header.php file and the image will display, perhaps not prettily.

Topic Closed

This topic has been closed to new replies.

About this Topic