dennissmolek
Forum Replies Created
-
Sure,
when I click in the invite field it fires a jquery UI error saying this.source is not a function.
I’m using jQuery UI 1.8.16 from Google’s CDN and using the included autocomplete.
I Googled it and apparently its an issue when not declaring a source.
I ended up doing something else in the meantime but I’ve made a note to come back and see if I can solve whats causing it…I agree, we have 25,000 users and Im terrified to put this on the live box because I know if will lag. I’m going to do the mod mentioned in that post for now.
Forum: Plugins
In reply to: wp_localize_script adds a backslash | admin-ajax.phpI found out what the issue is.
The example we both went off of doesn’t mention when to fire the code so the both of us just put it into our plugin files.The issue is when its firing something isn’t loaded yet.
If you wrap your code in a function and fire it with a add_action on wp_head it works as expected. Whatever needs to load by this point is loaded.Forum: Plugins
In reply to: wp_localize_script adds a backslash | admin-ajax.phpI’m having the exact same issue.
If I follow any tutorial on the web it says to use that method to pull the ajax url but its constantly escaping the string. I even put in my own url string instead of the admin_url call so I know its wp_localize_script that’s causing it..I think it has to do with the html_entity_decode portion of it but cant figure out why everyone else isnt having the same issues…
Forum: Fixing WordPress
In reply to: Permalinks Randomly Require ResetUPDATE:
RESOLVEDI turned all the plugins off and the issue went away.
Narrowed it down to a plugin I wrote (DOH!)The issue was my deceleration of custom Taxonomies.
I copied the code straight from Custom-Post-UI which left the slug field blank:register_taxonomy('sections',array ( 0 => 'alerts', 1 => 'faq', 2 => 'Testimonials' ),array( 'hierarchical' => false, 'label' => 'Sections','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'Section') );
The correct code:
register_taxonomy('sections',array ( 0 => 'alerts', 1 => 'faq', 2 => 'Testimonials' ),array( 'hierarchical' => false, 'label' => 'Sections','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => 'Sections'),'singular_label' => 'Section') );
Notice the slug array under rewrite. For some reason post edits caused the Permalink structure to glitch out with a blank value.
Forum: Fixing WordPress
In reply to: Permalinks Randomly Require ResetAs an update,
It’s actually any time a page or post is edited. Just changing content requires this.
Forum: Everything else WordPress
In reply to: Core Dev Team Meetup Q&AScalability.
When we talk about sharding a MySQL database people talk mostly about multisite. I am designing a site thats more of an application. I’m using Custom posts to handle most data objects because they share many of the same fields(name, created date, author, etc.)Currently I am looking at 1,000 posts being created a day with at least that many being modified. When we release and the plans of the company using the app I will hit 1,000,000 posts in less than a year.
This is on a single post table, all with custom meta info. Talking to folks like JJJ makes me scared that it wont be sustainable. I have a auto scaling redundant hosting setup but a 1,000,000 record table seems like its going to slow things down.
I know separate tables is devil talk in the core WP world and more of a PODS thing, but I can’t just shard off parts like multisite folks.
If we are really talking about using WordPress as a CMS beyond mom and pop stores, how do we address post tables of that size?
Forum: Fixing WordPress
In reply to: register_taxonomy and permalinks, white screen of deathOne fix, removing the rewrite argument all together fixes, and defaults to true which is fine by me.
Then I flushed the rules..Still a odd problem that I’ll have to get to later for sure.
EDIT: Nope, still broken on any version of permalinks besides default.
that plugin is for text only..