Reply To: Error message when trying to create first search name instance

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Error message when trying to create first search name instance Reply To: Error message when trying to create first search name instance

#8546
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

I have checked the conflict and I was able to re-create as you described. The problem seems to be in the “PrintAura WooCommerce API” plugin.

It’s generated by lines 60-67 in the wp-content/plugins/printaura-woocommerce-api/printaura-woocommerce-api.php file:

if(isset($_GET['page']) && !isset($_GET['consumer_key']) && !isset($_GET['consumer_secret'])){
  $request_uri = explode("?",$_SERVER['REQUEST_URI']);
  $params_exp = explode("&",$request_uri[1]);
  foreach($params_exp as $param){
      $val = explode("=",$param);
      $_GET[$val[0]] = $val[1];
  }
}

As far as I can see it is supposed to fix something with the page query parameter, however it does not account for backslashes. I’m not sure why these lines are neccesary, you might have to ask the developer for this.

Anyways, the solution seems to be to just comment those lines out like this:

if(isset($_GET['page']) && !isset($_GET['consumer_key']) && !isset($_GET['consumer_secret'])){
  $request_uri = explode("?",$_SERVER['REQUEST_URI']);
  $params_exp = explode("&",$request_uri[1]);
  foreach($params_exp as $param){
      $val = explode("=",$param);
      $_GET[$val[0]] = $val[1];
  }
}

It does seem to work correctly after that, although I didn’t test the API plugin completely.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)