wp-admin not working after update 2.3.1
-
Fatal error: Call to a member function is_main_query() on a non-object in \wp-includes\query.php on line 730
-
hmmmm….. I have access to the server and use WinSCP, maybe those files are hidden from me. I’ll see if I can get them another way.
Thanks Mike
Ok, maybe the host has docs on finding them.
Hi Mike,
I got a little furthar, seems there was some issue with the ignight gift certificate plug in. now WooCommerce will load and give the error below. going back to 2.1.* until I can gather more guidence?
Warning: include_once(includes/admin/class-wc-admin.php): failed to open stream: No such file or directory in /home/chris/www/mysite/wp-content/plugins/woocommerce/woocommerce.php on line 212 Warning: include_once(): Failed opening ‘includes/admin/class-wc-admin.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/chris/www/mysite/wp-content/plugins/woocommerce/woocommerce.php on line 212
Thank you!
ChrisMissing files it seems? Reupload the plugin via FTP.
Well now we’re back to blank screen. I’ll keep at it.
If you get any include_once errors again, the plugin is not being uploaded fully.
You asked about logs earlier – there may be a error_log file in your site root, otherwise check with your hosting provider.
Yes I got the error logs Mike, that’s how I found out about the plug-in issue. this is what showed when I updated. I removede the gift cert plug-in and then at least got a screen. the others I didn’t touch. back to 2.1.* and I don’t get these specific errors.
[Fri Feb 13 12:39:09.394804 2015] [:error] [pid 8062] [client 66.249.64.17:41189] PHP Fatal error: Call to undefined function is_checkout() in /home/chris/www/mysite/wp-content/plugins/ignitewoo-gift-certificates/woocommerce-gift-certificates.php on line 489
[Fri Feb 13 12:40:39.013297 2015] [:error] [pid 8177] [client 24.161.111.146:4973] PHP Strict Standards: Declaration of TGM_Bulk_Installer_Skin::before() should be compatible with Bulk_Upgrader_Skin::before($title = ”) in /home/chris/www/mysite/wp-content/themes/clean-retina-pro/library/functions/class-tgm-plugin-activation.php on line 1893, referer: https://mysite/wp-admin/update.php?action=upgrade-plugin&plugin=woocommerce%2Fwoocommerce.php&_wpnonce=346fd7c9b6
[Fri Feb 13 12:40:39.013374 2015] [:error] [pid 8177] [client 24.161.111.146:4973] PHP Strict Standards: Declaration of TGM_Bulk_Installer_Skin::after() should be compatible with Bulk_Upgrader_Skin::after($title = ”) in /home/chris/www/mysite/wp-content/themes/clean-retina-pro/library/functions/class-tgm-plugin-activation.php on line 1893, referer: https://mysite/wp-admin/update.php?action=upgrade-plugin&plugin=woocommerce%2Fwoocommerce.php&_wpnonce=346fd7c9b6
[Fri Feb 13 12:40:39.331623 2015] [:error] [pid 8177] [client 24.161.111.146:4973] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/ziplist-recipe-plugin/zlrecipe.php on line 104, referer: https://mysite/wp-admin/update.php?action=upgrade-plugin&plugin=woocommerce%2Fwoocommerce.php&_wpnonce=346fd7c9b6
[Fri Feb 13 12:40:40.630537 2015] [:error] [pid 8177] [client 24.161.111.146:4973] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/ziplist-recipe-plugin/zlrecipe.php on line 104, referer: https://mysite/wp-admin/update.php?action=upgrade-plugin&plugin=woocommerce%2Fwoocommerce.php&_wpnonce=346fd7c9b6
[Fri Feb 13 12:40:41.452024 2015] [:error] [pid 8178] [client 24.161.111.146:4976] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/gourl-bitcoin-payment-gateway-paid-downloads-membership/gourl.php on line 4327, referer: https://mysite/wp-admin/plugins.php
[Fri Feb 13 12:40:41.452074 2015] [:error] [pid 8178] [client 24.161.111.146:4976] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/gourl-bitcoin-payment-gateway-paid-downloads-membership/gourl.php on line 4328, referer: https://mysite/wp-admin/plugins.php
[Fri Feb 13 12:40:42.536376 2015] [:error] [pid 8178] [client 24.161.111.146:4976] PHP Notice: Undefined variable: visibility in /home/chris/www/mysite/wp-content/plugins/woocommerce-cart-tab/cart-tab.php on line 174, referer: https://mysite/wp-admin/plugins.php
[Fri Feb 13 12:42:23.071164 2015] [:error] [pid 8033] [client 66.249.64.17:34051] PHP Notice: Undefined variable: visibility in /home/chris/www/mysite/wp-content/plugins/woocommerce-cart-tab/cart-tab.php on line 174
[Fri Feb 13 12:42:50.757350 2015] [:error] [pid 8178] [client 24.161.111.146:1037] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/ziplist-recipe-plugin/zlrecipe.php on line 104, referer: https://mysite/wp-admin/plugins.php
[Fri Feb 13 12:42:51.353673 2015] [:error] [pid 8178] [client 24.161.111.146:1037] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/gourl-bitcoin-payment-gateway-paid-downloads-membership/gourl.php on line 4327, referer: https://mysite/wp-admin/plugins.php
[Fri Feb 13 12:42:51.353723 2015] [:error] [pid 8178] [client 24.161.111.146:1037] PHP Notice: Trying to get property of non-object in /home/chris/www/mysite/wp-content/plugins/gourl-bitcoin-payment-gateway-paid-downloads-membership/gourl.php on line 4328, referer: https://mysite/wp-admin/plugins.php
[Fri Feb 13 12:42:52.080917 2015] [:error] [pid 8178] [client 24.161.111.146:1037] PHP Notice: Undefined variable: visibility in /home/chris/www/mysite/wp-content/plugins/woocommerce-cart-tab/cart-tab.php on line 174, referer: https://mysite/wp-admin/plugins.php
[Each one of those plugins logged either need updating or removing. Some are only notices, but I don’t know how that will affect other things.
Well Thanks for trying Mike,
I removed all the plug-ins above, raised the memory (just in case), re-installed WP and still get that white screen. gonna stick with the 2.1.* for now and hope in the future whatever this is can be discovered. Again thank you for the guidance.
WooCommerce automatically updated. (Forgot to disable that feature) my theme’s templates aren’t compatible with the update. Is there a step by step process for reverting back to 2.2.11?
gunny123 I believe that information is available on page 1 of this thread.
It seems like there is two ways. Maybe I’m just a nub.
I am new to Woo Commerce and I am happy with the site but not happy with the lack of customization of the product description or SEO set up. Can I add more customization to the product description ( break up in categories on same page)? Is there a way to add yeost SEO to my woo commerce.
Thank you AHC
Mike
I hit this problem when I updated to WC 2.3.x today with my own plugin.
It is being triggered in a loop of mine that is using a custom query.
Here’s the last few lines of xdebug:
13 0.5724 32565112 get_the_title( ) ../arc-functions.php:763 14 0.5726 32565600 apply_filters( ) ../post-template.php:158 15 0.5730 32567496 call_user_func_array:{/Users/xxxxxxxxxxxxx/architect-development/wp-includes/plugin.php:213} ( ) ../plugin.php:213 16 0.5730 32567664 wc_page_endpoint_title( ) ../plugin.php:213 17 0.5730 32567736 is_main_query( ) ../wc-page-functions.php:19
Here’s the code whole loop:
$query_options = array( 'post_type' => 'arc-blueprints', 'meta_key' => '_blueprints_short-name', 'posts_per_page' => '-1' ); $blueprints_query = new WP_Query($query_options); $pzarc_return = array(); while ($blueprints_query->have_posts()) { $blueprints_query->next_post(); $the_panel_meta = get_post_meta($blueprints_query->post->ID); $bpid = $the_panel_meta[ '_blueprints_short-name' ][ 0 ] . ($inc_post_id ? '##' . $blueprints_query->post->ID : ''); $pzarc_return[ $bpid ] = get_the_title($blueprints_query->post->ID); };
and here’s a dump of the object:
object(WP_Post)[1695] public 'ID' => int 3561 public 'post_author' => string '1' (length=1) public 'post_date' => string '2015-02-18 01:28:13' (length=19) public 'post_date_gmt' => string '2015-02-18 01:28:13' (length=19) public 'post_content' => string '' (length=0) public 'post_title' => string 'test' (length=4) public 'post_excerpt' => string '' (length=0) public 'post_status' => string 'publish' (length=7) public 'comment_status' => string 'closed' (length=6) public 'ping_status' => string 'closed' (length=6) public 'post_password' => string '' (length=0) public 'post_name' => string 'test' (length=4) public 'to_ping' => string '' (length=0) public 'pinged' => string '' (length=0) public 'post_modified' => string '2015-02-18 05:54:00' (length=19) public 'post_modified_gmt' => string '2015-02-18 05:54:00' (length=19) public 'post_content_filtered' => string '' (length=0) public 'post_parent' => int 0 public 'guid' => string 'https://localhost/architect-development/?post_type=arc-blueprints&p=3561' (length=76) public 'menu_order' => int 0 public 'post_type' => string 'arc-blueprints' (length=14) public 'post_mime_type' => string '' (length=0) public 'comment_count' => string '0' (length=1) public 'filter' => string 'raw' (length=3)
The error is triggered on the get_the_title() code.
I’ve replaced it with
$pzarc_return[ $bpid ] = $blueprints_query->post->post_title;
and the error has gone away, but then of course, I aren’t getting to pass the title thru the title filter. If I do so myself in code, it brings back the error.
I also tried get_the_content, and get_the_excerpt which as expected returned empty strings; however, get_the_id and get_the_date returned false.
I hope there’s some clues there.
I tried to upgrade today as well and got the white screen ??
Looking forward to hearing if anyone has figured out a solution
- The topic ‘wp-admin not working after update 2.3.1’ is closed to new replies.