Alex Dunae
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Fatal ErrorHi roadchild,
Looks like you’re running PHP 4 — WP Smush.it is designed for PHP 5. A PHP 4-compatible version is forthcoming; hang tight.
Alex
Forum: Fixing WordPress
In reply to: Error with WP Smush.it PluginHi Fink,
Looks like you’re running PHP 4. WP Smush.it is designed for PHP 5 — a version for PHP 4 is forthcoming.
Cheers,
Alex
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Work with NGG ?I don’t see why it wouldn’t. Try it out and let us know how you make out.
Alex
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Previously uploaded imagesHi Vadi,
Thanks for the suggestion. I’ll put it on the list…
Out of curiosity, how many images do you have in your backlog?
Alex
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Error ActivatingCheck out the new version, WP Smush.it 1.2, it should resolve your problems.
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Error ActivatingHey Herudea,
The fopen error means just what it says: your PHP settings don’t allow using fopen to post to Smush.it (or any other site).
I’ve got a new version you’re welcome to help test that takes care of this. E-mail me and I’ll send you a copy: code [AT] dunae [dot] CA
Alex
Forum: Fixing WordPress
In reply to: From wp-login to wp-admin 403 forbiddenI just ran into this and thought I’d post my resolution for posterity.
Our client’s host had a
mod_security
rule that matched on=http
.Going to
example.com/wp-admin/
redirects you to
example.com/wp-login.php?redirect_to=https://...
triggering a 403 Forbidden status frommod_security
.To work around it, add the following to your the top of your
.htaccess
.<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^redirect_to=http RewriteRule ^wp-login.php https://example.com/wp-login.php? [R=301,L] </IfModule>
Forum: Installing WordPress
In reply to: 403 Forbidden accessing wp-login.phpI just ran into this and thought I’d post my resolution for posterity.
Our client’s host had a
mod_security
rule that matched on=http
. Going toexample.com/wp-admin/
redirects you toexample.com/wp-login.php?redirect_to=https://...
triggering a 403 frommod_security
.To work around it, add
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^redirect_to=http RewriteRule ^wp-login.php https://example.com/wp-login.php? [R=301,L] </IfModule>
Forum: Themes and Templates
In reply to: wp_list_pages add class on <li>Try adding something like this in your theme’s
functions.php
. It will addfirst
andlast
classes to the list items.add_filter('wp_list_pages','wp_list_pages_add_first_last'); function wp_list_pages_add_first_last($content) { $content = preg_replace('/li class\=\"/', 'li class="first ', $content, 1); $content_rev = strrev($content); $content_rev = preg_replace('/\"\=ssalc il/', ' tsal"=ssalc il', $content_rev, 1); return strrev($content_rev); }
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Error ActivatingIt appears that you already have PEAR’s JSON library open, which I include as a fallback for PHP 4 users.
I’ve just uploaded a fix (v. 1.1.3) that checks for the JSON library before trying to include its own copy. Let me know if it works for you.
Alex
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Previously uploaded imagesNew version out now, allows manual smushing of old posts.
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Previously uploaded imagesHi all,
Things are back in business (see https://tech.groups.yahoo.com/group/exceptional-performance/message/646).
@shane: if Smush.it starts stripping exif info I’ll look in to making that feature optional. For now, lossless savings for all!
Cheers,
Alex
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Previously uploaded imagesSmush.it is definitely having some issues. Even their demo URLs (e.g. https://smush.it/ws.php?img=https://smush.it/css/skin/logo.png) aren’t working.
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Previously uploaded imagesHi guys,
There seems to be a problem with the main Smush.it service right now — I’ve seen reports around the web to that effect. I’ll take a look and see what’s going on.
Re: old images, that’s a great suggestion. Watch for an update in the next few days hopefully.
@shaneholden — what is it you’d like to keep in your gallery photos. Smush.it is lossless, so you’re not losing any quality. It just re-organizes the bits to be more efficient. AFAIK it isn’t even stripping meta data at the moment.
Alex
Forum: Plugins
In reply to: Getting wp-content path from pluginFound my own answer:
WP_CONTENT_URL
andWP_CONTENT_DIR