Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Error message when trying to create first search name instance
- This topic has 4 replies, 2 voices, and was last updated 10 years, 1 month ago by
straightup.
-
AuthorPosts
-
April 29, 2016 at 12:12 am #8538
straightup
ParticipantWe just purchased this plugin and when trying to create our first search name instance we get this error
“You do not have sufficient permissions to access this page.”
Please help.
April 29, 2016 at 11:24 pm #8543straightup
ParticipantYou cannot access this content.
April 30, 2016 at 9:12 am #8546Ernest Marcinko
KeymasterHi!
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:
[php]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];
}
}[/php]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:
[php]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];
}
}[/php]It does seem to work correctly after that, although I didn’t test the API plugin completely.
May 5, 2016 at 4:42 pm #8583Ernest Marcinko
KeymasterHi Alex,
After our conversation via mail I have investigated this issue further and found that by re-working the menu-slug structure, it will get around the problem.
I’m attaching a slightly modified version of the plugin to this reply. Please de-activate and uninstall the one you have now, and install this one instead.
To prevent further issues of this kind, I’m including this fix in the upcoming releases as well, so it should not reappear once the next update is out on codecanyon. I take compatibility related issues very seriously.
May 5, 2016 at 7:07 pm #8587straightup
ParticipantHi Ernest. Thanks for the email replies and your time. As you know from my emails, I would have preferred and appreciated a refund. All the best. Alex.
-
AuthorPosts
- You must be logged in to reply to this topic.