jdlev
Forum Replies Created
-
Hey Mike – can I ask you how you were able to get my site to display that error? I tried a bunch of stuff to get the site to show errors, but never succeeded. Any Tips?
Thanks Mike. I think this bug took about 5 years off my life lol. I appreciate it 🙂
It’s not a theme based error…at least from what I can tell.
I tested storefront on the site, and even it was throwing the same error. For whatever reason, the system isn’t filling the variation id.
Where can I find the function responsible for assigning variation id’s, or where in the woocommerce database can I check to see if variation id’s are loading properly?
I think it is an issue with the variation ID properly assigning the values. I found the meta key _variation_id (which I assume is correct), and there are loads of id’s in there with 0 for the meta_values…
Forum: Plugins
In reply to: WooCommerce & Variable product error "Please choose product options…"I’m right there with ya bud. Hoping someone can figure out this bug soon, because it’s stumped me for days…basically tried pretty much the same stuff you have and no luck for me either. Since you posted this 2 months ago…did you ever find a fix?
Forum: Fixing WordPress
In reply to: What form action to use to submit form using $wpdb class?I think I figured it out, but would still like to know if submitting a form by using the onsubmit property of a form and referencing a php function is a safe way to submit a form?
If anyone else is interested in how to use just a php file to submit data using the wpdb class – you use a standard form action as follows:
<form action="myFormAction.php" method="post">(More experienced users, please correct me if I’m wrong)
Since “myFormAction.php” is included in the primary plugin file, you need to format the insert within another function. Here’s an example:`<?php
function add_form_data() {
global $wpdb;
$wpdb->insert(‘column1’ => $data, ‘column2’ => $data2);
}//Then we call the function by seeing if anything was sent in the post:
if($_POST){
add_form_data();
}Well…since this forum has proven to be the equivalent of a ghost town in helping me with my last few posts, I’ll post the answer to my own question since my issue wasn’t resolved by the other threads on this topic telling you to simply ‘remove the white space from before/after the php tags..
(remove whitespaces here) <?php #your code ?> (remove whitespaces here)My issue was in the debugging. I turned on all the error reporting I could find figuring it had to be an issue with my SQL statements or something like that. I turned on my php errors…turned on the debuggin in the wp-config file in the wp-content folder, and since I was using the wpdb object, I also tried to have it display errors using: $wpdb->print_error();
Therein was my problem. Apparently, $wpdb->print_error(); was reporting errors, but they weren’t errors showing up anywhere. It simply gave me that warning of the plugin generating XXX characters of expected blah blah blah…
Hopefully, this helps someone else, because the issue had me scratching my head for 5+ excruciatingly frustrating hours.
Forum: Plugins
In reply to: Previous – Next Pages based on Page Order Attribute?Anybody 🙁 🙁 🙁