$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>woocommerce offtopic - HTTP Error when uploading pictures and problem with the size of images|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

woocommerce offtopic - HTTP Error when uploading pictures and problem with the size of images

matteradmin9PV0评论

Eveytime I want to upload an image I get an HTTP error. When I check for the image on the server though I can see that it has been uploaded. Only variations of the file of different sizes which seemingly get created upon the upload of the original image, seem to have 0 bytes (this may be due to the HTTP error?)

Also; another question: After uploading an image, in my woocommerce theme the image in my shop just looks too big or rectangular of different dimensions. Doesn't woocommerce automatically resize and adjust the images to they look all the same when previewing them in the shop?

There is an option somewhere where you can say that you want the image to be resized but once you do, the image will look low quality and parts of it will get cut out etc.

How do I go about uploading images of the product so that it will be all shown in the same square dimension in my shop?

Eveytime I want to upload an image I get an HTTP error. When I check for the image on the server though I can see that it has been uploaded. Only variations of the file of different sizes which seemingly get created upon the upload of the original image, seem to have 0 bytes (this may be due to the HTTP error?)

Also; another question: After uploading an image, in my woocommerce theme the image in my shop just looks too big or rectangular of different dimensions. Doesn't woocommerce automatically resize and adjust the images to they look all the same when previewing them in the shop?

There is an option somewhere where you can say that you want the image to be resized but once you do, the image will look low quality and parts of it will get cut out etc.

How do I go about uploading images of the product so that it will be all shown in the same square dimension in my shop?

Share Improve this question asked Feb 1, 2019 at 15:51 Pouyeah TreasurePouyeah Treasure 1
Add a comment  | 

1 Answer 1

Reset to default 0

For fixing HTTP error, follow these steps:

  1. Open the cPanel.
  2. Go to File Manager.
  3. Search for wp-content.
  4. Find uploads folder. Right-click on it and choose Change Permissions.
  5. A pop up will appear. Set the permission to 755.
  6. Finally, click on the Change Permissions button. You will find that the HTTP error has gone.

You can find more information about these steps right here.

Regarding too big images issue, add these CSS codes in the Custom CSS Box provided through the Customizer Options:

.woocommerce #primary .images img {
    width: auto;
}
Post a comment

comment list (0)

  1. No comments so far