deanpence
Forum Replies Created
-
Forum: Hacks
In reply to: Custom Post Type; Admin Can't Publish or DeleteThis was not a problem with capabilities at all. It was a problem with nonces.
Since everyone else with this problem never left any details, all I did was:
- Stop using
check_admin_referer[docs] and replace it with a simple nonce check withwp_verify_nonce[docs]. - Make sure that
wp_nonce_field[docs] andwp_verify_noncewere using the correct arguments in the correct order.
(If you use the code below, use your own nonce name and action strings.)
In the metabox:
wp_nonce_field('nonce_action', 'nonce_name');In the ‘save_post’ hook:
if (!wp_verify_nonce($_POST['nonce_name'], 'nonce_action')) { return; }Have you upgraded to the latest version (1.41)? I’m pretty sure it fixes the problem.
Forum: Installing WordPress
In reply to: "Table doesn't exist error" on database repairI encountered this as well. It was because I was missing “define(‘MULTISITE’, true);” in wp-config.php.
Forum: Networking WordPress
In reply to: Network Creation not creating tablesI encountered this as well. It was because I was missing “define(‘MULTISITE’, true);” in wp-config.php.
Forum: Plugins
In reply to: [Div Shortcode] [Plugin: Div Shortcode] Extra markupWell, that could explain quite a bit, but I’m not positive how much of my code doesn’t work in 5.2. I only tested it in 5.3 and should have been more explicit about that.
Forum: Plugins
In reply to: [Div Shortcode] [Plugin: Div Shortcode] Extra markupHey @muypescado. Could you tell me what version of PHP you’re using? Just curious.
Forum: Plugins
In reply to: [Div Shortcode] [Plugin: Div Shortcode] Extra markupThat’s very odd. No, I’m not able to recreate it at all in any version I’ve written. I hope that I would never have released code that fails quite so spectacularly. π
@billerickson hasn’t released version 2.0.1 yet, but would you mind giving it a shot? Here are some instructions:
- Browse here: http://pastebin.com/xNb24P1G
- Click the “Copy to Clipboard” link.
- Go to your WordPress Admin site.
- Go to “Plugins” > “Installed Plugins”.
- Under “Div Shortcode”, click “Edit”.
- Click inside the text box with the plugin’s PHP code.
- Hit <COMMAND>+A (or <CONTROL>+A in Windows) to select all of the code.
- Hit <COMMAND>+V (or <CONTROL>+V in Windows) to paste the new plugin code.
- Click the “Update File” button.
Now try your post again, and let me know what happens.
Forum: Plugins
In reply to: [Div Shortcode] [Plugin: Div Shortcode] Extra markupHmm. What other plugins do you have installed?
Forum: Plugins
In reply to: [Div Shortcode] [Plugin: Div Shortcode] Extra markupIf possible, could you give me an example of the full, unfiltered post that’s being displayed incorrectly? I’d like to help troubleshoot if I can.
Forum: Plugins
In reply to: [Div Shortcode] [Plugin: Div Shortcode] 2.0 doesn't work in WP 3.2.1@petervandoorn: I’m one of the developers of this plugin. Can you give me some more details?
If I understand correctly, you did this:
- Upgraded the plugin.
- Viewed a post with existing [div] and [end-div] shortcodes and the shortcodes were not replaced.
- Tried to edit the post, but in the preview, <div>s were not closed.
Is that correct? Are you using the [end-div] shortcode or [/div] to close your <div>s? Can you point me to the URL of the post in question?
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Supercache files not generatedI’ve found the answer to part of this, and it’s listed on the very beginning of your readme file:
[B]ecause a user’s details are displayed in the comment form after they leave a comment those requests are handled by the legacy caching engine.
I was expecting supercache files to be generated even when I was logged in (I had “Donβt cache pages for known users” unchecked), but the plugin does not generate them when it uses legacy caching (i.e., when certain cookies exist). I started using another browser to browse as an anonymous user, and whenever I browse to them, supercache files are generated as expected.
There still seems to be a problem with preloading, however. When I enable preloading and enable a small refresh interval (e.g., 5 minutes):
- The refresh interval is never saved. (I have to edit wp-cache-config.php and edit $wp_cache_preload_interval manually.)
- No pages ever get preloaded until an anonymous user browses to them. (I’ve checked my logs to make sure wp-cron.php is getting called, and it is.)
Thoughts?
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Supercache files not generatedI haven’t dug around in the source code yet, but does the plugin refuse to write out supercache files when it can’t verify mod_rewrite is in use?
The only times I can get WP Super Cache to write supercache files is by the cache tester and preloading. But I’m hesitant to use preloading if the supercache files will never get regenerated.
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Supercache files not generatedIt’s a pity that such a great web server has such poor documentation and unintuitive configuration syntax.
Forum: Plugins
In reply to: Lack of Nginx support from WP Super CacheThis configuration does not work for me unless I do not include
index.phpin theindexdirective, which causes other problems. (For example,/wp-admin/gives a directory listing.) If I do includeindex.phpin theindexdirective, it bypasses this configuration completely since an index file exists.This code is all over the web as “working”, but I wonder if anyone’s ever actually verified that it’s serving static files as opposed to static files output by the plugin.
log_subrequest ondoesn’t seem to log any internal redirects for me, so I put an extra field,$uri, in my log format to verify exactly what file was being used for the request:log_format main '$host : $remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" ' '"$gzip_ratio" "$uri"';With
index.phpleft outindex, nginx serves the static file. When it’s included, it does not.I define my indexes at the
httpcontext, if that matters.Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Supercache files not generatedThanks in advance for any help, by the way. This plugin actually helps me to host my customers at probably half the cost, even without static files.
- Stop using