alicjazurawie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Media image upload http errorJust to add a note… I have been in touch with my web hosting company once more as the problem noted above was persistent no matter what I tried. I got put in touch with a higher level of support… who suggested updating my .htaccess file in my root directory to update the version of php used by my sites. I updated it to 5.5 and everything is running smoothly. This is the line I added to my .htaccess in my root directory (to effect all of my WordPress sites – it can also be added in the individual .htaccess files of each WordPress install depending on where you need the update to be made)
AddHandler application/x-httpd-php55 .php
Hope this helps.
Forum: Fixing WordPress
In reply to: Media image upload http errorCan you not upload at all? Even small images? And have you tried uploading both in the post editor and in the media section too? Not ideal but a suggestion might be to roll back to an older version of WordPress if you’ve only just started having problems? I hope someone more experienced than me has a proper solution though. I am also still experiencing problems and have to resize images to less than 1mb before uploading.
Forum: Fixing WordPress
In reply to: Media image upload http errorSenorfrog, if it worked fine until 3.9 then you could try rolling back. This is not recommended for security reasons – the latest version of WordPress is the most secure to run – but it is possible. You would need to make a backup of your site before rolling back to a previous version. There are many articles available online which will guide you through the process should you decide to go that way.
I have also found temporary relief from each of my above suggestions – changing browser (works for 2 of my sites but not the 3rd one even though it uses the same theme); deleting backups… there seems to be no rhyme or reason. I’ve had problems since the start of 3.8 but I have read on the support forums that other users have been experiencing the same issue as far back as 2.5, so it’s not new.
It’s frustrating as there doesn’t seem to be any obvious solution. My hosting company are also at a loss for what to suggest. Strangely, I can upload images so long as they are smaller than 1MB with no problem. Yet others struggle with very small images of a few KB… So it doesn’t even seem as though the problem is uniform.
Forum: Fixing WordPress
In reply to: Media image upload http errorI’ve been in touch with my hosting company. They tried increasing my memory limit and execution time for uploads – neither of these options made any difference to me. The weird thing was that using a test site, my hosting company could upload images of any size, so it appeared to be a problem my end. I always use Firefox as my browser but shifted over to Google Chrome to see if it was a browser issue… and it works. Resizes images, and uploads successfully. I have no idea what the problem with Firefox is as it has always worked before. Maybe I changed some of my settings and they’ve altered something… But that was my solution anyway. Hope this helps.
Forum: Fixing WordPress
In reply to: Media image upload http errorI think I’ve found a solution.
I’ve been having the same problem since 3.8. I hoped that 3.9 would sort it, but it didn’t… I checked my temp folder and that wasn’t the problem but I believe that I have just worked out what went wrong.
Since 3.8, my settings seem to have changed so that my database automatically backs up. In Cpanel, I found that I had 11 database backups and I think that was what was chewing up space. I’ve just deleted them and reuploaded the image, and it resized and uploaded with no problem. I have designed a theme which allows me to upload images of any size, and they are automatically resized into a large size and a thumb size, and then the original is deleted. I have had upload problems since December and have had to manually resize images to be smaller than 1MB in order for them to upload… before 3.8 I never had this problem.
So the short suggestion … Try deleting your backups from your server space (download them first if you haven’t already) and see if that frees up space and sorts out your problem.
ETA: This solution allowed me to upload 1 image to 1 post… but I’m still getting the upload error message. I’ll leave my advice up in case it helps anyone else, but it doesn’t seem to have solved the problem completely. Frustrating.
Forum: Fixing WordPress
In reply to: Blog entry not showing all. pls. help.It sounds like something to do with how your theme is displaying posts. Are you using a custom theme or one of the default WordPress themes?
Without being able to see your theme files, I would suggest that it sounds as though you have them set to show the excerpt rather than the post. If you are using a custom theme, try a default theme and see if that shows your posts in full.
If you are using a custom theme… is it only displaying the few lines on BOTH the single page and the index page?
If so, take a look at the php files which govern those (for example single.php, index.php, home.php, main-page.php) and do a search for <?php the_excerpt(); ?> and replace with <?php the_content(); ?>
See here: https://codex.www.ads-software.com/Function_Reference/the_excerpt
Forum: Fixing WordPress
In reply to: how to create my own php custom page?Hello,
When creating a custom page template, you need the following line of code to start off with:
<?php /* Template Name: Custom Template */ ?>
Replace ‘Custom’ with whatever you want your page to show up as in the page editor (the image you linked to).
Then go about coding your custom.php file as you had intended.
Hope this helps.
Forum: Fixing WordPress
In reply to: Images won't resizeHello,
(ETA: I just re-read your question, and it seems that your images are being resized okay, so please just skip to my suggestion re: css at the bottom. I’m leaving the first bits up in case they help any other members.)
If you would like all of the images on your site to display at 640px width (both for landscape and portrait shots), it would probably be best if you resized them before uploading to WordPress. The media controls in WordPress can be a bit clunky at times, and it’s best to do resizing beforehand.
Alternatively, you could (a) go to settings > media and change the size of the ‘large’ image on upload, (b) use a plugin to automatically resize images when they upload (so that the original file is deleted and only the resized images are kept) or (c) add a line of code to your functions.php to do the same thing as a plugin.
I have used the following within my functions.php file in order to accomplish (c) :
// Automatically resize the original image to 'large' dimensions, then delete original function replace_uploaded_image($image_data) { // if there is no large image : return if (!isset($image_data['sizes']['large'])) return $image_data; // paths to the uploaded image and the large image $upload_dir = wp_upload_dir(); $uploaded_image_location = $upload_dir['basedir'] . '/' .$image_data['file']; $large_image_location = $upload_dir['path'] . '/'.$image_data['sizes']['large']['file']; // delete the uploaded image unlink($uploaded_image_location); // rename the large image rename($large_image_location,$uploaded_image_location); // update image metadata and return them $image_data['width'] = $image_data['sizes']['large']['width']; $image_data['height'] = $image_data['sizes']['large']['height']; unset($image_data['sizes']['large']); return $image_data; } add_filter('wp_generate_attachment_metadata','replace_uploaded_image');
If none of the above work, then it could be an issue with your css… your images may be coded such that they will stretch to fit a div. In which case, you would need to change your style.css file so that images display at width: 100%; OR max-width: 100%;
I am new to helping out on these forums, so I hope my response has been of some help and hasn’t further confused matters.