Some of my product pages keep showing me this message:
“Notice: Undefined index: option_value in
/home/paper/osconvites/vqmod/vqcache/vq2-catalog_model_catalog_product.php
on line 411Notice: Undefined index: option_value in
/home/paper/osconvites/vqmod/vqcache/vq2-catalog_model_catalog_product.php
on line 411Notice: Undefined index: option_value in
/home/paper/osconvites/vqmod/vqcache/vq2-catalog_model_catalog_product.php
on line 411”
Add this code in line no 406
if (!isset($product_option['option_value']) || $product_option['option_value'] == '' ) {
$product_option['option_value'] = '';
}
Related
How can I get rid of this errors.
Line 8 : define('CURRENT_PAGE', basename($_SERVER['REQUEST_URI']));
Line 15: define('READ_PATH', $_SERVER['HTTP_HOST'].'/read.php?id=');
errors:
Undefined index: REQUEST_URI in ......... on line 8
Undefined index: HTTP_HOST in ....... on line 15
if you use CLI then u can check them for their existence but in the browser, HTTP_HOST will be available any time.
if (!empty($_SERVER['HTTP_HOST'])) {
define('CURRENT_PAGE', basename($_SERVER['HTTP_HOST']));
}
if (!empty($_SERVER['REQUEST_URI'])) {
define('CURRENT_PAGE', basename($_SERVER['REQUEST_URI']));
}
I want to make SteamLogin on my website but try to login I get
"ErrorException in SteamAuth.php line 206:
Undefined offset: 1"
"array('matches' => array())) in SteamAuth.php line 206"
$this->steamId = is_numeric($matches[1]) ? $matches[1] : 0;
I have a project that involves uploading documents as part of a form in PHP:
function uploadFlight(oForm, cFunction)
{
// This tries a number of different methods for getting an AJAX object
// to ensure cross-browser compatibility.
var ajax=gimmeAjax();
if (ajax == null) return;
ajax.function=cFunction;
ajax.oForm=oForm;
// Disable all inputs
cItems=oForm.getElementsByTagName('input');
iItems=cItems.length;
for (var i = 0; i < iItems; i++)
{
cItems[i].disabled=true;
}
// ... and selects.
cItems=oForm.getElementsByTagName('select');
iItems=cItems.length;
for (var i = 0; i < iItems; i++)
{
cItems[i].disabled=true;
}
ajax.onreadystatechange = function()
{
// Redacted as not relevant to this question
}
var formData = new FormData();
for (var i = 0; i < oForm.length; i++)
{
oElem=oForm.item(i);
if (oElem.tagName.toLowerCase() == "input" || oElem.tagName.toLowerCase() == "select")
{
switch (oElem.name)
{
case 'document':
formData.append('document', oElem.files[0]);
break;
case 'project':
case 'flight_direction':
case 'flight_type':
formData.append(oElem.name, oElem.options[oElem.selectedIndex].value);
break;
case 'employee_id[]':
formData.append('employee_id[]', oElem.value);
break;
case 'task':
if (oElem.submitted == true) formData.append(oElem.name, oElem.value);
break;
default:
formData.append(oElem.name, oElem.value);
}
}
}
ajax.open("POST", "comms_ajax.php?module=flight&ts="+get_epoch(), true);
ajax.setRequestHeader("Content-type", "multipart/form-data");
ajax.send(formData);
return false;
}
In IE11 and Chrome, this works great. In Edge, it returns a litany of errors:
[11-Jul-2017 09:18:31 Australia/Sydney] PHP Warning: Missing boundary in multipart/form-data POST data in Unknown on line 0
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_date in [REDACTED]\comms_ajax.php on line 37
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_id in [REDACTED]\comms_ajax.php on line 63
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_id in [REDACTED]\comms_ajax.php on line 70
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_id in [REDACTED]\comms_ajax.php on line 77
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_id in [REDACTED]\comms_ajax.php on line 111
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: employee_id in [REDACTED]\comms_ajax.php on line 118
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Warning: str_repeat(): Second argument has to be greater than or equal to 0 in [REDACTED]\comms_ajax.php on line 118
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_id in [REDACTED]\comms_ajax.php on line 120
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: employee_id in [REDACTED]\comms_ajax.php on line 120
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Warning: array_merge(): Argument #2 is not an array in [REDACTED]\comms_ajax.php on line 120
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: carrier in [REDACTED]\comms_ajax.php on line 139
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_no in [REDACTED]\comms_ajax.php on line 139
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: depart_time in [REDACTED]\comms_ajax.php on line 140
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: arrive_time in [REDACTED]\comms_ajax.php on line 140
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: checkin_time in [REDACTED]\comms_ajax.php on line 141
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_type in [REDACTED]\comms_ajax.php on line 141
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: notes in [REDACTED]\comms_ajax.php on line 142
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_direction in [REDACTED]\comms_ajax.php on line 142
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: airport in [REDACTED]\comms_ajax.php on line 143
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: project in [REDACTED]\comms_ajax.php on line 144
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_id in [REDACTED]\comms_ajax.php on line 144
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: carrier in [REDACTED]\comms_ajax.php on line 156
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_no in [REDACTED]\comms_ajax.php on line 156
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: depart_time in [REDACTED]\comms_ajax.php on line 156
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: arrive_time in [REDACTED]\comms_ajax.php on line 156
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: checkin_time in [REDACTED]\comms_ajax.php on line 156
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_type in [REDACTED]\comms_ajax.php on line 157
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: notes in [REDACTED]\comms_ajax.php on line 157
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: flight_direction in [REDACTED]\comms_ajax.php on line 157
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: airport in [REDACTED]\comms_ajax.php on line 157
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: project in [REDACTED]\comms_ajax.php on line 157
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: task in [REDACTED]\comms_ajax.php on line 161
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: task in [REDACTED]\comms_ajax.php on line 205
[11-Jul-2017 09:18:32 Australia/Sydney] PHP Notice: Undefined index: task in [REDACTED]\comms_ajax.php on line 224
Changing the Content-type header to set the boundary takes away the first error (as per https://stackoverflow.com/a/40561831/1817255) but none of the other fields come through. Any ideas?
Don't set the content type explicitly, i.e. remove the line
ajax.setRequestHeader("Content-type", "multipart/form-data");
This is the default when the argument to XMLHttpRequest.prototype.send() is a FormData object, and the browser automatically supplies the boundary option that matches what it's using.
For some reason emails are not being sent at all. Im not getting any console errors, the input fields even reset like they are supposed to. It is being processed on a Windows server, thus the need for the gmail smtp. Any thoughts?
<?php
require 'PHPMailerAutoload.php';
require_once('class.phpmailer.php');
include("class.smtp.php");
$emailaddress = 'levyandrew44#gmail.com';
$message=
'Name: '.$_POST['name'].'<br />
Email: '.$_POST['email'].'<br />
Phone: '.$_POST['phone'].'<br />
Comments: '.$_POST['comments'].'<br />
'.nl2br($_POST['message']).'
';
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
//$mail->SMTPDebug = 2; // 1 = errors and messages,2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "smtp.gmail.com"; // sets the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "info#newpointdigital.com"; // SMTP account username (the email account your created)
$mail->Password = "newpoint!##$"; // SMTP account password (the password for the above email account)
$mail->SMTPSecure = 'ssl'; // Enable encryption, 'ssl' also accepted
$mail->CharSet = 'UTF-8'; // so it interprets foreign characters
$mail->SetFrom($_POST['email']);
$mail->AddReplyTo($_POST['email']);
$mail->Subject = "Contact form from ".$_POST['name']." ";
$mail->MsgHTML($message);
$mail->AddAddress($emailaddress);
if(isset($_POST['submit'])) {
if(!$mail->send()) {
echo '<p class="contact-message">Message could not be sent.</p>';
echo '<p class="contact-message">Mailer Error: ' . $mail->ErrorInfo . '</p>';
} else {
echo '<p class="contact-message">Your message has been sent. We will be in touch.';
}
}
?>
<form role="form" method="post" id="contact-form" name="myemailform" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>#contact-form">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 "><input type="text" class="form-control" name="name" placeholder="Name*"></div>
<div class="col-sm-12 col-md-12 col-lg-12"><input type="text" class="form-control" name="email" placeholder="E-mail*"></div>
<div class="col-sm-12 col-md-12 col-lg-12"><input type="text" class="form-control" name="phone" placeholder="Telephone Number"></div>
<div class="col-sm-12 col-md-12 col-lg-12"><textarea name="comments" class="form-control commentBox" placeholder="Comments"></textarea></div>
<div class="col-sm-12 col-md-12 col-lg-12"><input type="submit" value="Send Form" class="form-control submitButton"></div>
</div>
</form>
ERRORS FROM MAMP PHP_ERROR.LOG
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: name in /Users/andrewlevy/Documents/deepseadiving/index.php on line 22
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 23
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: phone in /Users/andrewlevy/Documents/deepseadiving/index.php on line 24
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: comments in /Users/andrewlevy/Documents/deepseadiving/index.php on line 25
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: message in /Users/andrewlevy/Documents/deepseadiving/index.php on line 26
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 39
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 40
[12-Jan-2015 17:27:06 America/New_York] PHP Notice: Undefined index: name in /Users/andrewlevy/Documents/deepseadiving/index.php on line 41
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: name in /Users/andrewlevy/Documents/deepseadiving/index.php on line 22
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 23
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: phone in /Users/andrewlevy/Documents/deepseadiving/index.php on line 24
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: comments in /Users/andrewlevy/Documents/deepseadiving/index.php on line 25
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: message in /Users/andrewlevy/Documents/deepseadiving/index.php on line 26
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 39
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 40
[12-Jan-2015 17:28:15 America/New_York] PHP Notice: Undefined index: name in /Users/andrewlevy/Documents/deepseadiving/index.php on line 41
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: name in /Users/andrewlevy/Documents/deepseadiving/index.php on line 22
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 23
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: phone in /Users/andrewlevy/Documents/deepseadiving/index.php on line 24
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: comments in /Users/andrewlevy/Documents/deepseadiving/index.php on line 25
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: message in /Users/andrewlevy/Documents/deepseadiving/index.php on line 26
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 39
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: email in /Users/andrewlevy/Documents/deepseadiving/index.php on line 40
[12-Jan-2015 17:28:17 America/New_York] PHP Notice: Undefined index: name in /Users/andrewlevy/Documents/deepseadiving/index.php on line 41
[12-Jan-2015 17:28:56 America/New_York] PHP Notice: Undefined index: message in /Users/andrewlevy/Documents/deepseadiving/index.php on line 26
[12-Jan-2015 17:29:04 America/New_York] PHP Notice: Undefined index: message in /Users/andrewlevy/Documents/deepseadiving/index.php on line 26
include your class.smtp.php gmail SMTP class into the autoloader file. If your own smtp class is the standard PHPMailer one then just remove that include and let the autoloader sort it.
Also useful at the top of the page to do something like:
error_reporting(E_ALL);
ini_set('display errors',1);
which should give you PHP Warnings, rather than just fatal errors.
PHP Error reporting:
I was under an impression - speed reading your original Question - that you had no errors, but with conversation of comments I now see you saw no errors, but that was not because there are no errors, but because you're looking for them in the wrong place.
To find errors in PHP:
at the very top of the page add these lines:
///set log errors to TRUE
ini_set("log_errors", 1);
/// show all ERRORS, WARNINGS and NOTICES
error_reporting(E_ALL);
///set where these errors are recorded.
ini_set("error_log", "/ *whateveryourwebfolderis* /php-errors.log");
Now run your script, and (S)FTP to your server space and find the web folder you have and in it should be a file called "php-errors.log", download it and open it with a code program or a notepad, and it will output verious errors from PHP.
And give us the feedback you get from this file.
I have been making some changes to a wordpress ecommerce plugin and I've taken out a ton of functions to make it simpler for my needs. Now it won't redirect to the thankyou page after the purchase button is pressed because the function uses some variables that I got rid of like order_id, etc.
I've been working on this for a few hours now, and all I want it to do is redirect to thankyou.php on the click of the purchase button. (I know right now it uses ajax, and I wouldn't mind using it too) I don't need it to go to the processpayment function or anything like that. Really simple.
Here is the code and the functions that I'm working with:
Thanks so much!!!
Input element:
<div id="payment">
<div class="form-row">
<noscript><?php _e('Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'jigoshop'); ?><br/><input type="submit" class="button-alt" name="update_totals" value="<?php _e('Update totals', 'jigoshop'); ?>" /></noscript>
<?php jigoshop::nonce_field('process_checkout')?>
<input type="submit" class="button-alt" name="place_order" id="place_order" value="<?php _e('Next Step', 'jigoshop'); ?>" />
<?php do_action( 'jigoshop_review_order_before_submit' ); ?>
<?php if (get_option('jigoshop_terms_page_id')>0) : ?>
<p class="form-row terms">
<label for="terms" class="checkbox"><?php _e('I accept the', 'jigoshop'); ?> <?php _e('terms & conditions', 'jigoshop'); ?></label>
<input type="checkbox" class="input-checkbox" name="terms" <?php if (isset($_POST['terms'])) echo 'checked="checked"'; ?> id="terms" />
</p>
<?php endif; ?>
<?php do_action( 'jigoshop_review_order_after_submit' ); ?>
</div>
</div>
checkout.class.php:
// Process Payment
$result = $available_gateways["cheque"]->process_payment( $order_id );
// Redirect to success/confirmation/payment page
if (is_ajax()) :
ob_clean();
echo json_encode($result);
exit;
else :
wp_safe_redirect( $result['redirect'] );
exit;
endif;
else :
// No payment was required for order
$order->payment_complete();
// Empty the Cart
jigoshop_cart::empty_cart();
// Redirect to success/confirmation/payment page
$checkout_redirect = apply_filters( 'jigoshop_get_checkout_redirect_page_id', get_option( 'jigoshop_thanks_page_id' ) );
if (is_ajax()) :
ob_clean();
echo json_encode( array( 'redirect' => get_permalink( $checkout_redirect ) ) );
exit;
else :
wp_safe_redirect( get_permalink( $checkout_redirect ) );
exit;
endif;
endif;
// Break out of loop
break;
process payment function:
function process_payment() {
// Remove cart
jigoshop_cart::empty_cart();
// Return thankyou redirect
$checkout_redirect = apply_filters( 'jigoshop_get_checkout_redirect_page_id', get_option( 'jigoshop_thanks_page_id' ) );
return array(
'result' => 'success',
'redirect' => add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink( $checkout_redirect )))
);
}
Here is the error details I'm getting from firebug:
After I turned debugging on, I got these errors:
Notice: Undefined index: aiosp_enabled in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php
on line 710
Notice: Undefined index: aiosp_enabled in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php
on line 710
Notice: Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/wp-google-fonts/google-fonts.php
on line 81
Notice: Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH'
in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/wp-google-fonts/google-fonts.php
on line 82
Notice: Undefined index: host in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jetpack/jetpack.php
on line 2306
Notice: Undefined index: shipping-first_name in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 198
Notice: Undefined index: shipping-last_name in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 199
Notice: Undefined index: shipping-company in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 200
Notice: Undefined index: shipping-address in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 201
Notice: Undefined index: shipping-address-2 in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 202
Notice: Undefined index: shipping-city in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 203
Notice: Undefined index: shipping-state in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 204
Notice: Undefined index: shipping-postcode in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 205
Notice: Undefined index: shipping-country in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 206
IMPORTANT:
Notice: Undefined variable: user_id in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 211
Notice: Undefined index: order_comments in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 256
Notice: Undefined index: billing-company in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 264
Notice: Undefined index: billing-address in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 265
Notice: Undefined index: billing-address-2 in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 266
Notice: Undefined index: billing-city in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 267
Notice: Undefined index: billing-postcode in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 268
Notice: Undefined index: billing-country in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 269
Notice: Undefined index: billing-state in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 270
Notice: Undefined index: billing-phone in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 272
Notice: Undefined index: shipping_method in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 282
Notice: Undefined index: payment_method in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 283
Notice: Undefined index: aiosp_edit in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
on line 1105
Notice: Undefined index: nonce-aioseop-edit in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
on line 1106
IMPORTANT:
Notice: Undefined variable: user_id in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 364
Notice: Undefined variable: available_gateways in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 379
IMPORTANT:
Fatal error: Call to a member function process_payment() on a
non-object in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 379
Notice: Undefined index: aiosp_enabled in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php
on line 710
Notice: Undefined index: aiosp_enabled in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php
on line 710
Notice: Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/wp-google-fonts/google-fonts.php
on line 81
Notice: Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH'
in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/wp-google-fonts/google-fonts.php
on line 82
Notice: Undefined index: host in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jetpack/jetpack.php
on line 2306
Notice: Undefined index: shipping-first_name in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 198
Notice: Undefined index: shipping-last_name in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 199
Notice: Undefined index: shipping-company in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 200
Notice: Undefined index: shipping-address in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 201
Notice: Undefined index: shipping-address-2 in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 202
Notice: Undefined index: shipping-city in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 203
Notice: Undefined index: shipping-state in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 204
Notice: Undefined index: shipping-postcode in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 205
Notice: Undefined index: shipping-country in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 206
Notice: Undefined variable: user_id in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 211
Notice: Undefined index: order_comments in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 256
Notice: Undefined index: billing-company in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 264
Notice: Undefined index: billing-address in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 265
Notice: Undefined index: billing-address-2 in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 266
Notice: Undefined index: billing-city in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 267
Notice: Undefined index: billing-postcode in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 268
Notice: Undefined index: billing-country in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 269
Notice: Undefined index: billing-state in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 270
Notice: Undefined index: billing-phone in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 272
Notice: Undefined index: shipping_method in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 282
Notice: Undefined index: payment_method in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 283
Notice: Undefined index: aiosp_edit in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
on line 1105
Notice: Undefined index: nonce-aioseop-edit in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
on line 1106
Notice: Undefined variable: user_id in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 364
Notice: Undefined variable: available_gateways in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 379
IMPORTANT!!!!:
Fatal error: Call to a member function process_payment() on a
non-object in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php
on line 379
Notice: Undefined index: aiosp_enabled in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php
on line 710
Notice: Undefined index: aiosp_enabled in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php
on line 710
Notice: Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/wp-google-fonts/google-fonts.php
on line 81
Notice: Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH'
in
/home2/findmyki/public_html/bolistylus/wp-content/plugins/wp-google-fonts/google-fonts.php
on line 82
There should be some text or json string in the response tab, but it's empty. This could be a result of php error that is hidden because of php settings in your server is set to hide all error messages, which is good.
Turn the debugging on see http://codex.wordpress.org/Editing_wp-config.php#Debug and try again. There should be some text in the response tab.
Update turn debugging on:
Something does not look right here. Do you get these errors when you send the Ajax request?
Looking at these errors I can see you have fatal error which must have stopped the code execution.
Fatal error: Call to a member function process_payment() on a non-object in /home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php on line 379
You have modified the original file jigoshop_checkout.class.php so it is hard for me to find the exact lines for these errors. But "Notice: Undefined index: " means there is an array variable in that line does not have an index of...
The method 'process_payment' called once in this file
// Process Payment
$result = $available_gateways[$this->posted['payment_method']]->process_payment( $order_id );
$available_gateways is an array with objects of different payment methods. But there is no object for the payment method defined in $this->posted['payment_method']
Also, I can see there is another error message state that the variable $available_gateways does not exists/defined
Notice: Undefined variable: available_gateways in /home2/findmyki/public_html/bolistylus/wp-content/plugins/jigoshop/classes/jigoshop_checkout.class.php on line 379
This variable can only be defined when jigoshop_cart::needs_payment() return true
if (jigoshop_cart::needs_payment()) :
// Payment Method
$available_gateways = jigoshop_payment_gateways::get_available_payment_gateways();
if (!isset($available_gateways[$this->posted['payment_method']])) :
jigoshop::add_error( __('Invalid payment method.','jigoshop') );
else :
// Payment Method Field Validation
$available_gateways[$this->posted['payment_method']]->validate_fields();
endif;
endif;
<input type="button" value="Submit" onClick="location.href='thankyou.php';">
If you don't need it to do anything else try that. You may need to edit the href to go where you want it to go. It worked for me on my site.
Also you can always have the action of the form redirect to another page then that page redirects to thank you page after processing.
Just use header('Location: '); to redirect.