dscottS3
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Increase Upload SizeAdding this to my
.htaccess
worked for me:php_value upload_max_filesize 100M php_value post_max_size 100M
Forum: Themes and Templates
In reply to: Urgent – Horizontal Menu Bar MissingJust in case some one is interested:
It actually looks like the theme is trying to rely on a “fallback” function that’s being called incorrectly due to a name mismatch. The fix is simple:
Open the themes functions.php file
on line 23 you’ll see:
wp_nav_menu( 'sort_column=menu_order&container_class=menu&menu_class=&menu_location=main-menu&fallback_cb=gpptheme_nav_fallback' );
Replace it with:
wp_nav_menu( 'sort_column=menu_order&container_class=menu&menu_class=&menu_location=main-menu&fallback_cb=theme_nav_fallback' );
the fallback_cb was calling gpptheme_nav_fallback, however its named theme_nav_fallback. Hope this helps!
Forum: Networking WordPress
In reply to: 3.1 Upgrade, now user and site search not workingAwesome! Thanks Ipstenu.
Forum: Networking WordPress
In reply to: 3.1 Upgrade, now user and site search not workingDoes anyone have an issue when they click edit after searching for a site? When I do so it kicks me back to the network “main” page.
I’ve realized out that the sitename is in the URL and if I remove it from the url it works.
https://mydomain.com/path/sitename/wp-admin/network/site-info.php?id=99999
Again, if i remove the sitename it works fine…Suggestions?
@yogie I’ve modified the code just a bit. You can find the updated code below. I had to modify for another instance of WP MS that I manage. It may or may not work. Just thought I’d throw it out there anyway…
–Update–
Another thing that I noticed is that an affected sites dashboard index has to be visited before it will rewrite flush will take place. IDK why, but this happened to me this time around.@ipstenu It will grab every blog in your network and flush all of their rewrite rules. However, you have to execute the plugin by logging into your dashboard – as it is hooked to run when you’re redirected to the dashboard. But to better answer your question – no, you DO NOT have to visit each site separately.
No problem. I hope this helps for you as it did for me.
The plugin works by grabbing all of your blogs, “switching” to that blog and flushing the rewrite rules for the blog, then “switching” back to the current blog you’re logged into. It does this to EVERY blog on your MS network.
The plugin runs automatically (mu-plugins = Must Use Plugins) when one of your sites dashboards are visited. Once this happens, the plugin will loop through all of your blogs and flush the rewrite rules automatically. Therefore no need to visit each sub blog individually. Also, that plugin updates the site url to include https prefix, if you do not need that, delete lines 19 and 20.
I recommend removing the plugin after its ran because if not it will run every time one of you sites has a visitor to the dashboard. So if you had 100 visitors at once that script would loop through all 1100 sites 100 times! Get what i’m saying?
Im not sure if this will be implemented or not! I couldn’t find a plugin to do it so I had to write one that did. I will however polish it a little more and submit it in hopes of it being included in future versions or as a downloadable plugin.
BTW – I updated the plugin by adding a filter that will only execute the function when you’re redirected to the dashboard after logging in.
Didn’t know I violated the Forum Rules so here is the code:
https://wordpress.pastebin.com/8L0RBE9B
In your wp-content directory, create a folder called mu-plugins. Create a PHP file with the code from above upload it mu-plugins. This will automatically execute the plugin when someone visits the site (the dashboard – i think). Once its executed, just remove the file and you’ll be good to go.
For those that may still have the issue of needing to update their sub-blogs – I found this to work perfect for me. It plays off of the response from Ipstenu. I created a MU Plugin:
[Code moderated as per the Forum Rules. Please use the pastebin]
The update_siteurl function was so I can include https prefix on all of my sites. You can remove the update_blog_option function and you should be fine. Just run it once and you’re good to go! Hopefully…!
Hope this helps! Im running 3.0.4
I was getting a blank page after posting a comment as well. What fixed my issue was I had to change the form action in the theme to support https rather than http. Some themes I am using doesn’t use the default comments function to display the form. So, I added the following to the form action:
<?php echo site_url( ‘/wp-comments-post.php’ ); ?>
Instead of
<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php ?>
After realizing that I have too many “broken” themes to update I created a file called update_siteurl.php and added it to my mu-plugins directory with the following code:
<?php
function update_siteurl() {
update_option(‘siteurl’,site_url());
update_option(‘home’,site_url());
}
?>Hope this helps. Im running 3.0.4 multi site.