WPIntell

Source evidence

Not working

My Downloads Shortcode for WooCommerce · support · 2017-09-24T17:35:00+00:00

complaintsentiment
highseverity
1.0relevance
15replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
mahdiagho unresolved
Hi. it’s not working with WC 3.1 Anyone can fix this? I haven’t heard any issues with this and WC 3.1 can you tell me what it is or is not doing? Hi. Thanks for reply. I have WC 3.1 and WP 4.6.7 When i use [woocommerce-my-downloads] in user’s download page/ get following error. Fatal error: Call to a member function get_downloadable_products() on null in /home3/xxxxxxxx/public_html/wp-content/plugins/woocommerce-my-downloads-shortcode/tpl/my-downloads.php on line 2 This error appear when i want to save page that include this shortcode. Okay, let me investigate and get back to you in a few. Thank you Okay, I can not reproduce this at all. But have something to try. Can you change line 54 of woocommerce-my-downloads.php Instead of it being global $woocommerce; let’s change that to be $woocommerce = WC(); Let me know if that works for your situation. If it does I will push out new version of plugin. I just pushed out a update to plugin, just maintenance release, see if that corrects your issue. Thank you But i still have it. I’m now have 1.4 version But when i update page that includes [woocommerce-my-downloads] shortcode, I get that error. But in my download pages, links are customized. Actually, it’s working but still have an error. Anyway Thanks for reply and update. This reply was modified 8 years, 8 months ago by mahdiagho . Mahdiagho, I am sorry to hear that, is it still the same error message? Also, what do you mean when you say your download pages and links are customized? Did you modify the templates that came with the plugin or are you just using CSS to style them? Thanks for Following up. Yes its the same error. I’m using Flatsome 3.3.9 theme and using your original plugin’s theme for download page but making some customization with CSS. When i create and publish the page with this shortcode ( [woocommerce-my-downloads] ), this error [ Fatal error: Call to a member function get_downloadable_products() on null in /home3/******/public_html/wp-content/plugins/woocommerce-my-downloads-shortcode/tpl/my-downloads.php on line 2 ] shooted to my screen and get the white screen! But after this, By opening that page using its permalink, my download links appears with your plugin theme. I wish i could imply my purpose. This reply was modified 8 years, 8 months ago by mahdiagho . This reply was modified 8 years, 8 months ago by mahdiagho . Ahh, okay… any chance you have one of those optimizer plugins running which says only load WooCommerce files on WooCommerce pages? And just so I am clear, the shortcode on the front-end of the site works as it is intended, it is just when you are saving the shortcode on the page in WP Admin? I just pushed out a new version which I wrap the $woocommerce variable to suppress that error if woocommerce is not loaded. Yes, it’s only in back-end. But i can’t understand you when you say any chance you have one of those optimizer plugins running which says only load WooCommerce files on WooCommerce pages? I update plugin to 1.5 and that error changed to this: Fatal error: Call to a member function get_downloadable_products() on null in /home3/******/public_html/wp-content/plugins/woocommerce-my-downloads-shortcode/woocommerce-my-downloads.php on line 58 This reply was modified 8 years, 8 months ago by mahdiagho . This reply was modified 8 years, 8 months ago by mahdiagho . Sorry but I am out of option to try to debug for you. Is this on a production site you can give me access to or is this only on your local machine? If you want you can send me temp credentials and I can take a look for you.

Comments

15 shown
Matt Pramschufer 2017-09-25T18:50:00+00:00

I haven’t heard any issues with this and WC 3.1 can you tell me what it is or is not doing?

mahdiagho 2017-09-25T19:06:00+00:00

Hi. Thanks for reply. I have WC 3.1 and WP 4.6.7 When i use [woocommerce-my-downloads] in user’s download page/ get following error. Fatal error: Call to a member function get_downloadable_products() on null in /home3/xxxxxxxx/public_html/wp-content/plugins/woocommerce-my-downloads-shortcode/tpl/my-downloads.php on line 2

mahdiagho 2017-09-25T19:07:00+00:00

This error appear when i want to save page that include this shortcode.

Matt Pramschufer 2017-09-25T19:16:00+00:00

Okay, let me investigate and get back to you in a few.

mahdiagho 2017-09-25T19:25:00+00:00

Thank you

Matt Pramschufer 2017-09-25T20:33:00+00:00

Okay, I can not reproduce this at all. But have something to try. Can you change line 54 of woocommerce-my-downloads.php Instead of it being global $woocommerce; let’s change that to be $woocommerce = WC(); Let me know if that works for your situation. If it does I will push out new version of plugin.

Matt Pramschufer 2017-09-25T21:23:00+00:00

I just pushed out a update to plugin, just maintenance release, see if that corrects your issue.

mahdiagho 2017-09-26T09:38:00+00:00

Thank you But i still have it. I’m now have 1.4 version But when i update page that includes [woocommerce-my-downloads] shortcode, I get that error.

mahdiagho 2017-09-26T09:39:00+00:00

But in my download pages, links are customized. Actually, it’s working but still have an error. Anyway Thanks for reply and update. This reply was modified 8 years, 8 months ago by mahdiagho .

Matt Pramschufer 2017-09-26T12:21:00+00:00

Mahdiagho, I am sorry to hear that, is it still the same error message? Also, what do you mean when you say your download pages and links are customized? Did you modify the templates that came with the plugin or are you just using CSS to style them?

mahdiagho 2017-09-26T14:24:00+00:00

Thanks for Following up. Yes its the same error. I’m using Flatsome 3.3.9 theme and using your original plugin’s theme for download page but making some customization with CSS. When i create and publish the page with this shortcode ( [woocommerce-my-downloads] ), this error [ Fatal error: Call to a member function get_downloadable_products() on null in /home3/******/public_html/wp-content/plugins/woocommerce-my-downloads-shortcode/tpl/my-downloads.php on line 2 ] shooted to my screen and get the white screen! But after this, By opening that page using its permalink, my download links appears with your plugin theme. I wish i could imply my purpose. This reply was modified 8 years, 8 months ago by mahdiagho . This reply was modified 8 years, 8 months ago by mahdiagho .

Matt Pramschufer 2017-09-26T14:35:00+00:00

Ahh, okay… any chance you have one of those optimizer plugins running which says only load WooCommerce files on WooCommerce pages? And just so I am clear, the shortcode on the front-end of the site works as it is intended, it is just when you are saving the shortcode on the page in WP Admin?

Matt Pramschufer 2017-09-26T14:44:00+00:00

I just pushed out a new version which I wrap the $woocommerce variable to suppress that error if woocommerce is not loaded.

mahdiagho 2017-09-26T15:18:00+00:00

Yes, it’s only in back-end. But i can’t understand you when you say any chance you have one of those optimizer plugins running which says only load WooCommerce files on WooCommerce pages? I update plugin to 1.5 and that error changed to this: Fatal error: Call to a member function get_downloadable_products() on null in /home3/******/public_html/wp-content/plugins/woocommerce-my-downloads-shortcode/woocommerce-my-downloads.php on line 58 This reply was modified 8 years, 8 months ago by mahdiagho . This reply was modified 8 years, 8 months ago by mahdiagho .

Matt Pramschufer 2017-09-26T17:18:00+00:00

Sorry but I am out of option to try to debug for you. Is this on a production site you can give me access to or is this only on your local machine? If you want you can send me temp credentials and I can take a look for you.