michaeljberry
Forum Replies Created
-
Hmm… I am using PHP 7.2… That’s too bad that it isn’t compatible.
I’ve run into the same thing. When I try to upload a PDF individually via the Media page, I receive a HTTP error. I’ve looked in my access and error logs but I can’t find anything that indicates why the upload failed. I increased the upload limits (upload_max_filesize, post_max_size) in my php.ini to much higher than the uploads are in size just to make sure that wasn’t the issue but I still receive the issue.
I’m running a similar stack LAMP with Nginx reverse proxy. I use Google Cloud Storage as the storage provider.
- This reply was modified 6 years, 6 months ago by michaeljberry.
Forum: Plugins
In reply to: [WooCommerce] Cannot get/set product information through APIJust to help anyone else who may run into this. I’ve spent the last three days scouring the internet and tearing the code apart. I finally stumbled on a person who omitted any properties in the
options
parameter when the$woocommerce
object was created. For example:$woocommerce = new WCClient( 'https://chesbroretail.com', $wc_consumer_key, $wc_secret_key, [] );
I then tested the different parameters and there is something about adding
'version' => 'wc/v1'
that causes failure when the$woocommerce
object is created. It’s working now without the version parameter. Hope that helps someone else.Forum: Plugins
In reply to: [ChimpMate - WordPress MailChimp Assistant] Control pages to allow popupAlso, I thought that there would have been a cookie to store the fact that I closed the popup so it doesn’t appear again. Having that functionality would be helpful also.
Forum: Plugins
In reply to: [GC Testimonials] [Plugin: GC Testimonials] limiting the number of wordsFor a solution in the mean time, as of WordPress 3.3 there is a new function – wp_trim_words(). At about line 740 in testimonials.php, you’ll see this line:
echo '<div class="content">'.$testimonial->post_content.'</div>';
If you add use the new function you’ll end up with something like this:
echo '<div class="content">'.wp_trim_words($testimonial->post_content,$num_words = 25, $more = '... ').'</div>';
Just replace ’25’ with the number of words that you want to limit the testimonial widget to.
I used this on a home page of the site I’m developing and some of the testimonials are paragraphs long. This made my home page incredibly long. I needed to limit the amount of words in the widget because I was using the option of “Read More Testimonials” so the user could navigate to the testimonial page if they wanted to read more.
Hope that makes sense and that it helps in the mean time until official support is integrated.