jmanpa
Forum Replies Created
-
Forum: Plugins
In reply to: [SEO Friendly Images] No alt or title tagI was able to get it working by adding code to seo-friendly-images.class.php:
function seo_friendly_images_process( $matches ) { global $post; $options = get_option($this->key); $this->process_parameters = $options['rules'][0]['options'];Forum: Themes and Templates
In reply to: Class 'C_Router' not foundI downloaded the latest version and just overwrote everything and now all works. Seems the autoupdater had a glitch.
Forum: Themes and Templates
In reply to: Class 'C_Router' not foundSame problem here.
Forum: Hacks
In reply to: WordPress core overload?I tracked down some strange behavior to core (or maybe Apache, don’t know):
If you have permalinks set to default (?p=123) the loop gets called multiple times, and thus, all the reduntant calls to my plugin add_action described above.
Any other permalink setting will not exhibit this multiple loop behavior.
The following error_log entries show 5 tests, each one changing the permalink structure and refreshing the home page. The last 8 lines show a single page refresh with default permalink settings. The loop is executed 8 times.
Why might this be?
My test involved adding one line of code to the beginning of loop.php:
<?php error_log("about to start loop: permalink structure: " . get_option('permalink_structure'),0); ?> <?php while ( have_posts() ) : the_post(); ?>[10-Nov-2010 14:31:00] about to start loop: permalink structure: /%year%/%monthnum%/%day%/%postname%/ [10-Nov-2010 14:31:15] about to start loop: permalink structure: /%year%/%monthnum%/%postname%/ [10-Nov-2010 14:31:23] about to start loop: permalink structure: /archives/%post_id% [10-Nov-2010 14:31:38] about to start loop: permalink structure: [10-Nov-2010 14:31:40] about to start loop: permalink structure: [10-Nov-2010 14:31:40] about to start loop: permalink structure: [10-Nov-2010 14:31:41] about to start loop: permalink structure: [10-Nov-2010 14:31:41] about to start loop: permalink structure: [10-Nov-2010 14:31:42] about to start loop: permalink structure: [10-Nov-2010 14:31:43] about to start loop: permalink structure: [10-Nov-2010 14:31:45] about to start loop: permalink structure:Forum: Hacks
In reply to: WordPress core overload?To be clear, I wasn’t worried about Hello Dolly – it was just a test case that is simple enough to quickly observe the behavior of WordPress and it’s calls to the plugin functions. I’m concerned that all plugins currently active will exhibit this call overload from WordPress.
Forum: Hacks
In reply to: jQuery .val('newvalue') in widget sidebar panelAdding #widgets-right preceding the #cat in the .js fixed it.
Forum: Fixing WordPress
In reply to: /index.html 404sI fixed it by adding:
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://mydomain-name-here.com/$1 [R=301,L]Forum: Plugins
In reply to: Where to put CSS?I’ll answer my own question and pass it on:
http://codex.wordpress.org/Function_Reference/wp_enqueue_styleForum: Fixing WordPress
In reply to: Dashboard dropdown admin menukudos. that is what I needed. Not sure how WP usability tests turned up a vertical list of expanding/collapsing menus as the preferred design for 2.7. With that I have to scroll down for days to get to everything.
I found a plugin that I wrote was causing the issue. I would have never guessed since the “long queries” in Mysql were core WP and not mine, which threw me off. Thanks for your help.
I had already created an entirely new db, did an import of the sql file and changed the wp-config to hit the new db. same issues. I’m stumped. I may rebuild from scratch on the html/ side too.
Resaved permalinks, created new post and no good. I’m getting desperate here. No posts in 5 days. Thanks Samuel. More ideas?
There seems to be an issue with new posts since the move.
If I add one, I can see it on the home page but when I click on the title to go to the single page, that’s when the db issues arise.
I end up deleting the new post and everything is fine.
Problem is, it’s a blog. I need to create new posts…
Thank you samboll for responding.
I have done both and neither have resulted in an improvement. I have done repair and optimize on all tables.
Forum: Fixing WordPress
In reply to: magicfiles errorsIs it present in 5.2.6 too? Is it something that I just live with? It seems to take 1.5 seconds off my performance in many cases.