Aaron Wagner
Forum Replies Created
-
Forum: Plugins
In reply to: [SAML 2.0 Single Sign-On] Empty SAML Info (Windows IIS Host)Sure. Here’s the entry in the wp-config:
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/content' ); define( 'WP_CONTENT_URL', 'https://'.DOMAIN_CURRENT_SITE.'/content');Forum: Plugins
In reply to: [SAML 2.0 Single Sign-On] Empty SAML Info (Windows IIS Host)Well it actually looks like two paths concatenated together:
C:\inetpub\development\content\plugins\saml-20-single-sign-on\saml/cert/C:\inetpub\development/content/uploads/saml-20-single-sign-on/etc/certs/1/1.cer
The first of the paths is invalid, there is not a
certdirectory, instead it iscerts.The certificate and key exist at:
C:\inetpub\development\content\uploads\saml-20-single-sign-on\etc\certs\1
And are IIS readable.
Forum: Hacks
In reply to: How to fire function after a menu is savedI ended up hooking into the
admin_noticesaction, and then testing for certain conditions when my function fired.Something along these lines:
add_action('admin_notices','my_function'); function my_function(){ global $current_screen; if($current_screen == 'nav-menus' && isset($_POST['menu'])): #Update code here endif; }This basically allowed me to do some action after a menu was saved. It’s perhaps not the *ideal* way to do it, but the menus are something that are only updated by admins (specifically, me), and done very seldom. In my specific case, the hook in the OP was too soon.
Interesting development: Instead of giving me a 404 error on the images, it gives me a 500 (a distinction I must have missed earlier).
Upon looking closer at the file system:
From my computer (a remote machine), it does not show the full-size images.
From the server, it shows them, but any attempt to view them causes an “Access denied” error.Digging deeper, The permissions on the original file are getting changed, such that they’re not viewable by IIS_IUSRS. If I set it to read and Execute, the file is then viewable.
In the upload.php file, I noticed that you’re using a chmod command (
chmod($current_file, 0644)) to change the files permissions. This seems to be the culprit, because commenting it out and trying another replacement allows the process to work properly.Perhaps a check for the server OS would be in order to prevent chmod’ing of the file on Windows.
If I echo the
$current_fileafterget_attached_file, this is what it gives me:C:\inetpub\development/content/uploads/2012/03/Chan-Lawrence.jpgI thought so too, initially, but all my paths are set properly. The replacement of the thumbs happens flawlessly, but the full size image is never created.
What function are you using to determine the upload path? Maybe I can use that to determine if any paths are indeed incorrect.
I am having this same issue on 1.4.3 and Worpress 3.3. I am on IIS 7.5, with cURL enabled.
Forum: Fixing WordPress
In reply to: IIS Image Uploading issue after moving wp-contentAnother Update:
For some reason it started working again. Not sure what I did to change anything, but it’s working
Forum: Fixing WordPress
In reply to: IIS Image Uploading issue after moving wp-contentPoint of clarification, The error message on the media upload screen just says “IO error”. I have the following in my wp-config:
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/content' ); define( 'WP_CONTENT_URL', 'https://'.DOMAIN_CURRENT_SITE.'/content');Forum: Networking WordPress
In reply to: Subsite navigationI had hoped that this would not become a discussion about
switch_to_blog(), but rather to deal with the original question: What is the best method of having a network wide menu, complete with hierarchy. The link that Andrea sent does only half the job. The hierarchy is the really important part. The problem remains that I cannot “drill into” navigation with custom menu items.I am going to be investigating some queries today to pull my navigation tree based on the current location.
One side note (since we were talking about
switch_to_blog()): the codex makes no mention of this function being administrative in nature. It’s highly likely that I am using other functions through my site that are also “administrative” as well. Would it be possible to somehow flag which functions are meant for front-end use and which ones are solely for admin use? The afore mentioned function’s codex page (http://codex.wordpress.org/WPMU_Functions/switch_to_blog) seems to be written from a “front-end” point of view; talking about pulling posts from other blogs, and such. Just a thought. This is my first MAJOR WordPress site, so I am relying heavily on the codex.Forum: Networking WordPress
In reply to: Subsite navigationI am not terribly concerned with it at this point, as we will be doing some heavy caching once we go to production. Right now the switch function executes in 0.00076889991760254 seconds. That’s within the acceptable range for me.
Forum: Networking WordPress
In reply to: Subsite navigationActually, the last thing you mentioned is the easy part:
function get_sph_nav($menu,$leftMenu='') { switch_to_blog(1); $returnMenu = wp_nav_menu(set_menu_options($menu,$leftMenu)); restore_current_blog(); return $returnMenu; }That gets the nav from the main blog and returns it. I have many menus, so, hence the function.
set_menu_optionssimply returns an array of arguments.I was just thinking about this, and I think what I will have to do is write some custom queries that looks at the URL and then gets the appropriate navigation tree. Once I have that, I can use a walker class to iterate through the array.
Forum: Networking WordPress
In reply to: Subsite navigationWell, no I have accounted for that by switching to the main blog before I get my navigation. Each site will have similar navigation, with the one exception of the left nav, which will need to be chosen dynamically, based on selections I will make on my dashboard theme options.
Forum: Themes and Templates
In reply to: Date based Custom Post Type ArchivesCan you enlighten me on how you accomplished this? I would like to do something similar. Specifically the rewrite rules that you used?
Forum: Themes and Templates
In reply to: Hide Post HeaderCan you show a link?