tunjic
Forum Replies Created
-
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectThat might be a workaround, but I doubt it since both switch_to_blog and wp_list_pages are called together in my function.
Do you think we might have an issue worth a ticket, since we have explicit code that causes the error?
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectIt looks like I’m having trouble combining switch_to_blog and wp_list_pages. Like this person as well:
http://wordpress.org/support/topic/trouble-with-switch_to_blog-and-wp_list_pages-1?replies=4
But no solution is provided except for hacking /wp-includes/post-template.php (as was suggested at the beginning of this thread).
Can we get these two functions to play nicely together?
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectNow we’re getting somewhere! After spending some time digging through server logs comparing error time codes and access time codes, I’ve found the culprit. It’s a custom page template we wrote to create an html sitemap of the 3 main sites in our multisite network.
It’s a pretty simple template and is part of our Genesis child theme, but it does use wp_list_pages(); I am suddenly confident this issue (at least for me) is a matter of debugging this code.
I also took your advice about Github and posted the template code: https://github.com/tunjic/rbc-sitemap-template
Please feel free to have a look, comment, etc… and thanks very much!
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectThank you for the encouragement. But that is exactly my problem; I have yet to find a reliable way to reproduce this error. There’s no particular page or post that seems to be the culprit, and no pattern to the error logs.
I could start posting menu code (from the header, footer, or sidebar, etc.), but I’m not sure it would help.
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectYes, odds are good that something about our custom menus (especially, as @rasmataz suggests, when creating a ‘master menu’ that brings together parent/child pages from different multi-site network sites) is causing the trouble (again, a minor trouble that only occasionally appears in my error logs).
It’s just very odd to me that so many people seem to have the issue.
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectWell, for me, my site’s menus were not created by ID number or in any peculiar way, and on the front end everything works fine. However, in my server error logs, I see this error repeated:
[Mon Jan 06 20:42:03 2014] [error] [client 199.58.86.206] PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/mysite.com/httpdocs/wp-includes/post-template.php on line 1059Or some other IP address. And this error is not thrown by every visitor to the site.
Given that this is appearing on so many sites (several thousand) around the web, and that the php warnings in my logs (for my sub-directory, multi-site install) ended when I made the @rasmataz edit to post-template.php, I think there might be something to this.
Forum: Networking WordPress
In reply to: post-template 1059 Warning objectI think it’s more common than you think. A quick search for “post-template.php on line 1059” returns about 34,000 results of pages displaying the error on the frontend.
Might be worth submitting to trac.
Thanks for tracking this down.
Forum: Plugins
In reply to: [W3 Total Cache] permissions of wp-contentThat is the command you enter (after your installation is complete) to return the wp-content directory to its default permissions. It is not a setting in the plugin. Your host may be able to provide instructions about using a command-line interface (where you would enter this command) with your server.
BTW, this is the same process you accomplish in step #1 of the installation. Step one changes the permissions to 777 and step 3 changes them back.
Good luck!
Forum: Plugins
In reply to: [W3 Total Cache] hot to remove ?repeat=w3tc from url ?Our update to Version 0.9.2.10 fixed this.
Forum: Plugins
In reply to: [W3 Total Cache] How to remove " ?repeat=w3tc " from query stringThe update to Version 0.9.2.10 on our multisite (sub-directory network, WP 3.5.1) install fixed this issue for us.
Forum: Plugins
In reply to: [Sidebar Login] "undefined"The problem may be related to caching again because I suddenly received the error after installing w3-total-cache. Also, I noticed that if I refresh the page, try to login again, and refresh the page again, all is well.
I have the widget displaying on only one page that is not the home page. Excluding that one page from caching seems to help, but after successfully logging in (and not seeing “undefined”), a page refresh is still required.
Forum: Plugins
In reply to: [Redirection] Bug on row 201 in file redirection.php prevents exports.Nice catch. I was just trying to export, and this fixed the issue. Thanks!
Forum: Networking WordPress
In reply to: Main site's categories in all sub-site's category listFound the culprit! It was a buddypress plugin that should not have been activated for the whole Network. For our site, BuddyPress is only installed on one site, so this plugin caused trouble for the other sites without BP. The plugin is BP-Registration-Options. It works fine on the main BP site, just not when Network Activated.
Forum: Networking WordPress
In reply to: Main site's categories in all sub-site's category listAnother clue: category permalinks are displayed nice and pretty but resolve to a 404. While, tag permalinks are the correct url and resolve correctly.
Both tags and categories listed in the backend are of the wrong site.
Forum: Networking WordPress
In reply to: Main site's categories in all sub-site's category listYes, I’m finding all kinds of strange criss-crossing, again only in the back end… On the sub (-directory) sites, the category links display the correct url but resolve to a 404.
Recent comments displayed in the dashboard also wrong site.
I’ll investigate additional plugins being the cause.