Geraint Palmer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: .http error for Media Uploads (large image file sizes only)Sure, sorry i’ve just read that back and I sound a bit like a dog with a bone, but i’d be a bit surprised if your tmp folder was full as its just a folder on the server and would only be full if the server was in fact full, and then you’d have bigger problems.
it could not exist or have the wrong permissions but then you wouldn’t be able to upload anything at all.
anyway i found this and the first couple sound like good places to start:
https://stackoverflow.com/questions/12531408/setting-php-tmp-dir-php-upload-not-workingCheck upload_tmp_dir in php.ini. This is directory where PHP stores temporary files while uploading.
Check open_basedir in php.ini. If defined it limits PHP read/write rights to specified path and its subdirectories. Ensure that upload_tmp_dir is inside this path.
Check post_max_size in php.ini. If you want to upload 20 Mbyte files, try something a little bigger, like post_max_size = 21M. This defines largest size of POST message which you are probably using during upload.
Check upload_max_filesize in php.ini. This specifies biggest file that can be uploaded.
Check memory_limit in php.ini. That’s the maximum amount of memory a script may consume. It’s quite obvious that it can’t be lower than upload size (to be honest I’m not quite sure about it-PHP is probably buffering while copying temporary files).
Forum: Fixing WordPress
In reply to: Separate Database SetupHi
Are you trying to host 5 different WordPress websites, or one site, just load balanced across 5 web servers?
Either way you your going to need as many db servers as load and hardware specs require.
Depending on the load your expecting you could probably suffice with less, even just one db server depending on the RAM/CPU available to it.
If you’re going to the trouble of balancing the http server for uptime/availability a secondary failover db server is probably a must.
I should now clarify that I’ve never actually deployed anything like (multiple db servers) this but I have looked into it before.
And last time I checked I think wordpress.com was originally just running on one super massive sql server for writing requests with secondary’s slave servers for read requests and somewhere I found a plugin by automattic that tunes wordpress to work in that way, mysql writes to x and read to yz etc.. now I think its clustered too. but you get the idea.
https://en-gb.www.ads-software.com/plugins/hyperdb/
Vanilla wordpress is not designed to work with multiple db server at all and id be very afraid of trying to keep multiple primarys in sync.
You can have as many different wordpress database running in the same sql server as you like/ you can fit so if their five different sites you can again stack them all in one server or spread them out as required.
Give this tutorial a look
https://net-load.com/how-to-setup-mysql-database-master-and-slave-with-hyperdb-on-wordpress/
Hope it helps
Forum: Fixing WordPress
In reply to: .http error for Media Uploads (large image file sizes only)I found that it was the physical dimensions of the image Megapixel not the file size that was casing the memory issues.
I’d advised my client on how to save for web an not upload raw camera jpeg to their site, so they were confused when they couldn’t upload their images, it was only when I got samples of the images that i figured out how massive they were and then figured out it was a memory issues related to processing and resizing physically large images.
It could also be that you host has changed your memory limit or that wordpress is now using more memory is self and that combined with the image processing is maxing out your servers limit for a single request.
Forum: Fixing WordPress
In reply to: How to stop import content from external wordpress site?Hi
This is the wrong forum for this, this is for self hosting like your external site, for wordpress.com issues visit:
Forum: Fixing WordPress
In reply to: Blurry HeaderIn photoshop did you used save for web? and if so what quality setting (preset) did you use?
as the default jpeg High profile has a quality of 60% of the original which is fairly low, it’s as low as id even consider compressing a jpeg. try recreating it from the original with a quality of 70-80 %
the image will be bigger but the quality will be much closer to the original, use the 2up tab to see before and after.
Forum: Fixing WordPress
In reply to: .http error for Media Uploads (large image file sizes only)Ive had a similar problem with large photos (4000×4000) + resolution jpegs 4-7mb+ Even though the the upload limit was fine, it was that WordPress was hitting the php memory limit set on the host whilst trying to process (crunch) the images and create all the variations.
try uping the php memory limit.
Forum: Fixing WordPress
In reply to: Blurry HeaderHow are you creating you header images? Your current header image is a : 940×439 jpeg and 122kb in size.
And is being shown as is, the site (css, design, etc.) isn’t doing anything to it.. that said for its dimensions and complexity its file size is small. its obviously been compressed. Thats good as it speeds your site but it also results in loss of quality.
It could be you’ve installed a plugin thats doing this automatically or you host has to improve performance.
Forum: Fixing WordPress
In reply to: Blurry Headerwith out a link to the site its hard to see what the problem might be.
Forum: Fixing WordPress
In reply to: 404 Errortry disabling all you plugins by :
In your WordPress database, go in the wp_options table. Locate the option name “active_plugins”. Now edit the value of that option and change it to this: a:0:{}
or
remaining your plugins directory, something like plugins.deactivated via FTP.
In you hosts cp do you have access to the web server access/error logs, as they may shed some light on whats falling over and creating the 404.
Forum: Fixing WordPress
In reply to: Database connection error PLEASE HELP!what are the details of the DB host name in your
wp-config.php
file?/** MySQL hostname */ define('DB_HOST', 'xxxxxxxxxxxxx');
and does the database still exist? in your host admin panel can you still see it, connect to it?
if so you probably just need to change the hostname configuration to point wordpress to the right place.
Forum: Fixing WordPress
In reply to: Removing the date from all blog posts on NexusWordPress doesn’t have a switch I’m afraid to turn off dates. The date being a core fundamental of blog.
the easiest way, and what you’ve probably see in the forum is css that hides, turned off the html that shows/renders the dates. the problem is that the CSS would be specific to a theme and how it was build, because how a date is displayed is part of the theme code (design).
Nexus is a commercial theme, so it’s no something the members of this forum can/will support as we don’t own copies of that theme and hence don’t have access to its source code.
Your best be is to go to theme designers forum and ask their
https://www.elegantthemes.com/forum/
however you will need to have bought the theme and have login to access it.
Forum: Fixing WordPress
In reply to: You have too much rebootingIt means your site is crashing the server and forcing it to reboot,
If its a shared host or a virtual server their going to be really pissed at you.
Either their is an instability i.e. ( some plugin combination ) that is causing php to crash/ usually because it out of memory. that’s taking out the server.
Their is too much traffic for the server to cope with and apache is poorly/incorrectly configured so its eventually using up all the memory/ram and crashing the server.
or a combination of the both.
Check your server logs to see why its rebooting.
Forum: Fixing WordPress
In reply to: Controlling exernal sourcesHi
its hard to diagnose problems without a live link to the site.
That being said, you could try “Better WordPress Minify”, it lets you concat and minify js into a single file(s). reducing the amount of requests each page load generated. and i think it will let you push some of the js to the footer.
Second relying on external sources is alway a problem as you have zero control over them. The best solution it to avoid it at all costs.
Have you profiled your site to see where the actual bottle necks are, because you can optimise everything else in the world but if one of the plugins is hanging up php or your server is underpowered then this kind of stuff is only going to save you a few milliseconds compared to the seconds a underpowered server can take to render a plugin heavy wordpress/php site
Forum: Fixing WordPress
In reply to: How to edit floating social barThe “floating social bar” is from the Digg Digg plugin
https://www.ads-software.com/plugins/digg-digg/
According to WP.org its not been updated in 2 years but disabling the plugin should remove the bar. or somewhere in the settings section the plugin should have some settings options, look out for digg digg.
Forum: Fixing WordPress
In reply to: Notice: Undefined index: Error in contact formthe clues are in the message, line 100, Undefined index: “message_email“
<p><label for="message_email">Email: <span>*</span> <br><input type="text" name="message_email" value="<?php echo esc_attr($_POST['message_email']); ?>"></label></p>
in php [ ] is an array and undefined index means just that there is no message_email in the array. basically php is bitching that you’re trying to use something that doesn’t exist!!
swapping :
<?php echo esc_attr($_POST['message_email']); ?>
for :
<?php echo isset( $_POST['message_email'] ) ? esc_attr($_POST['message_email']) : ''; ?>
should solve your problem. ps. if that freaks you out its just php short hand for an if else statement
so long hand<?php if( isset( $_POST['message_email'] ) ){ echo esc_attr($_POST['message_email']); } else{ echo ''; } ?>
it’s good practice to make sure something exists before you try and use it ??