Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue in category url generation #4347

Closed
akshaypitale opened this issue Dec 10, 2020 · 8 comments
Closed

Getting issue in category url generation #4347

akshaypitale opened this issue Dec 10, 2020 · 8 comments

Comments

@akshaypitale
Copy link

Hi,

I am getting issue in category url generation it gets when trying to create a new category.

It is working on local system.
I debug the issue , it seems I don't have proper permissions on database Function which creates category URL.
I talk to the hosting provider but they are saying they will not provide permission on MySQL Database Function because of security reasons.

Is there any work around for this ?

@vaishaliwebkul
Copy link

@akshaypitale
could you please show the screenshot of the error getting while creating new category?

@akshaypitale
Copy link
Author

@akshaypitale
could you please show the screenshot of the error getting while creating new category?

@vaishaliwebkul

Below is the screenshot of the database function.

download

@ghermans ghermans added the Question Further information is requested. label Dec 11, 2020
@ghermans
Copy link
Contributor

Hi @akshaypitale as @vaishaliwebkul asked, is it possible to also provide us the error you receive so that we can investigate this?

@akshaypitale
Copy link
Author

akshaypitale commented Dec 11, 2020

Hi @akshaypitale as @vaishaliwebkul asked, is it possible to also provide us the error you receive so that we can investigate this?

@ghermans Error: MySQL said: #1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation IF NOT EXISTS ( SELECT id FROM categories WHERE id = categoryId AND parent_id IS NULL

@vaishaliwebkul
Copy link

@akshaypitale
may I know your Mysql version?

@rahulshukla-webkul
Copy link
Contributor

Hi @akshaypitale

Either remove the DEFINER=.. statement from your sqldump file, or replace the user values with CURRENT_USER.

The MySQL server provided by RDS does not allow a DEFINER syntax for another user (in my experience).

You can use a sed script to remove them from the file:

sed 's/\sDEFINER=[^`]*`@`[^`]*//g' -i oldfile.sql

@akshaypitale
Copy link
Author

Thanks for the help @rahulshukla-webkul .
Replacing value with CURRENT_USER worked for me.

@sandeep-ed
Copy link

sandeep-ed commented Jan 6, 2021

I remove definer from phpmyadmin but still its showing same error Please check screenshot for the same
5ff57c18221a6 mceclip0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants