Tim Nash
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: CLI command shows error: invalid email addressso it should be something like:
wp core install --url=http://example.com --title="Just another test site" ----admin_name=myadmin admin_email=hello@example.com --admin_password=mypasswordThere shouldn’t be a need to use back ticks or similar, if this is not working did you copy and paste the email, if you did consider typing it just to make sure you haven’t accidentally copied some weird character set.
If that doesn’t work what OS are you using
Forum: Fixing WordPress
In reply to: Internal Server ErrorNot really sure what the issue is but I think:
When you are going to wp-admin you are receiving an Internal Server error message?
You have checked the .htaccess file for both the root and the admin section if you have one (just rename each file is the quick way to test)Have you looked at your server error logs to see if they have more information?
Forum: Fixing WordPress
In reply to: getting a 500 error on admin-ajax.php which is slowing down the siteA 500 error is a pretty generic error just meaning something has gone hinky server side. Do you have access to your server error logs, they will probably give you more of a hint as to what is not working.
Forum: Fixing WordPress
In reply to: Suddenly my blog is forbiddenJust clicked on the link and its working fine, did you manage to resolve this?
Forum: Fixing WordPress
In reply to: Can't access WP admin loginIf you visit the URL in incognito mode in your browser, do you have the same issue?
If that works, then consider clearing your cache and cookies for that site in your browser.Forum: Fixing WordPress
In reply to: wp-admin disappearedWhen you say “its gone” are you getting a white screen or some sort of error message?
Does the login form appear?Forum: Fixing WordPress
In reply to: Hacking/Locked OutWhen you say you are unable to login because you are being logged out, what is preventing you logging in?
is the login screen simply not loading, or is something giving a specific error message?
Forum: Fixing WordPress
In reply to: Hack site?Work your way through that list, we regularly see folks, who fix the issue, but don’t actually fix the attack vector so reopen threads a few days/weeks later with exactly the same issue and seem shocked that it happened again.
Forum: Fixing WordPress
In reply to: Hack site?We don’t separate out posts, but yes if you are having issues you should start a separate post and hopefully can sort you out.
However I will include “our” standard response for hacked sites which is you need to start working your way through these resources:
- https://codex.wordpress.org/FAQ_My_site_was_hacked
- https://wordpress.org/support/topic/268083#post-1065779
- http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/
- http://ottopress.com/2009/hacked-wordpress-backdoors/
Additional Resources:
- http://sitecheck.sucuri.net/scanner/
- http://www.unmaskparasites.com/
- http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html
On a side note simply installing a security plugin rarely fixes issues on it’s own.
Forum: Hacks
In reply to: How to Handle 'Journaling'out of interest which option did you go for?
Forum: Fixing WordPress
In reply to: Stylesheet VersioningI don’t use Cloudflare myself but looks simple to manually clear the cache for a single sheet https://support.cloudflare.com/hc/en-us/articles/200169246-How-do-I-purge-my-cache-
Forum: Hacks
In reply to: How to Handle 'Journaling'Given the timestamp of the action will be ever so slightly different to the comment, maybe it’s worth appending the timestamp within the comment data, thereby making it a unique comment, I know that’s very much a hack but might work?
Alternatively I think you could manipulate wp_filter_comment to get round the duplication issue?
Forum: Fixing WordPress
In reply to: Stylesheet VersioningOk to answer “how does versioning work in WordPress” the answer is there is no versioning in WordPress at least not in the way you describe.
What I suspect you are seeing is the WordPress version number for the version of the core of WordPress being appended to the string. That said some webserver automatically add timestamps to strings, to aid CDN or proxy server to invlaidate static objects which may also account for the versioning numbers.
With regards to whats happening 5 things immediately spring to mind:
- You are using a proxy cache like Varnish or Cloudflare and they are caching the stylesheet, the adding a version number is invalidating the cache, or more likely generating a new cached object.
- If you are using a CDN and the CSS is being loaded remotely the CDN is not picking up the changes.
- Your theme, or a plugin is making use of appcache and this is not reflecting the changes
- Your web server is set to aggressively cache, for example Nginx can be set to cache static objects
- You are using a concatenation or minification plugin, which is misbehaving and is rendering two versions of the CSS.
There are other options but these feel the most likely, if I had to guess I would suspect its 1 or 4. Do you know if you have any caching layer within your stack? Do you control the HTTP server?
Forum: Fixing WordPress
In reply to: Play audio in offline mode on WordPress ?Unless the user also has your website locally, they won’t be able to access the site to listen to the audio if they don’t have an internet connection, so couldn’t access the audio in the first place!
By default if you include an audio file and use the inbuilt player, it will do something called progressive download, where your browser downloads the file in chunks, so if you have a brief internet outage the player will continue, if the file is downloaded slowly or your connection drops entirely then it will stop or buffer. This is also a quite efficient way of conserving bandwidth for you as the website owner, as the chunks of data are only a few seconds ahead of where the visitor is in the file.
However if you want a visitor to be able to access the file on their own computer, you can link to the file directly. If you uploaded it through the media manager, there will be a direct link to the audio file and you can include this link in your posts (perhaps directly under the player) and the user can download the file and play using their computers own player. The downside to this is they have to download the entire file first normally before they can play the audio, so if they are on slow connection this may take some time.
There are a few other ways to distribute audio files, for example if you are setting up a podcast, then you can include the audio file in your RSS feed and then people using podcasting software or even software like iTunes will be able to access the audio directly through their software.
Forum: Fixing WordPress
In reply to: User Roles StrategyWhile I can’t recommend a plugin for creating roles and capability (something I would do via WP-CLI rather then through a plugin) I can say having multiple roles is not going to cause you issues.
It’s worth baring in mind that capabilities and roles are different, so while your roles are a collection of capabilities to be applied, individuals can have capabilities not associated with their role. Also many plugins make use of capabilities and may not apply such capabilities to roles that you create so you may find your custom roles need some TLC every once in a while.
Custom roles however are always useful, for example if building sites for clients which we manage I tend to have a “uber admin role” which is actually an editor role, with the ability to add users. Which I give to clients admin users. So they can add other users but can’t cause to much carnage.