Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Can't upload images after moving the site from localhost to my online host.

Can't upload images after moving the site from localhost to my online host.

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 707 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • wardhW Offline
    wardhW Offline
    wardh
    wrote on last edited by wardh
    #1

    Hey Armin,
    I did a transfer from localhost to my domain name. Site works perfect and browses great. I wanted to add another image, but I keep getting a HTTP error. (That's what appears on the screen after I used the "media - add new". When I just drop my image files in the main media screen they just appear with a grey-paper-icon, but can't be opened or seen.
    If I click on that icon I get this "attachment detail" page. On there, if I click on "view attachment page" below in the right column it does open the image.
    But I can't add it to pages or anything…
    The permissions of the Upload folder on wordpress are set to 755
    I tried it on mozilla and on Safari. I work on a mac system. And I have tried it with JPG / png / … different image files. (You can find the site here: www.wardheirwegh.com)
    Could you advise me how to solve this?
    Best,
    W.

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      Hey wardh, can you please ask your webhost about this? Not sure, maybe your webspace is full.

      cool website btw :)

      1 Reply Last reply
      0
      • wardhW Offline
        wardhW Offline
        wardh
        wrote on last edited by
        #3

        @wardh said:

        HTTP error

        Thanks, Armin!
        I found a solution. I added this to the functions.php of lay theme.

        add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
        function change_graphic_lib($array) {
        return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
        }

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          hm whenever you update lay theme this will be overwritten :/
          maybe theres a plugin that does the same, would be a better solution.

          1 Reply Last reply
          0
          • wardhW Offline
            wardhW Offline
            wardh
            wrote on last edited by
            #5

            Haha, I have no idea what it does or how it works. (Just copied it from some guy's tips and tricks page to solve this problem.) So I don't even know how to look for a similar plug-in. (tips are welcome.)
            But I'll copy it again when I update. No problemo!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            A
            alasdair17
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search