Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Affiliates Error


dumb_question

Recommended Posts

I do not believe that you will have the ability to change these privileges yourself in cpanel and you will have to ask your host to change these permissions for you.

 

Anyway, if you do have access to phpMyAdmin 2.5.3 with this function available then you may follow the instructions below.

 

In cpanel click on the MySQL database icon and at the bottom of the MySQL Account Maintenance page you will find a link to phpMyAdmin - click on it.

 

On the main page you will see the link to [Privileges] to reveal all the users, click on edit, select Lock Tables and click on [Go] and that is it!

Link to comment
Share on other sites

  • 2 months later...

My hosting company recently upgraded mysql and deemed that this was a security issue and therefore revoked this privilege to all users. Rather than allowing the privileges described in the previous posts, they have asked us to comment out the code that locks the table.

 

That seems to work BUT I don't know if it has any repercussions yet.

 

Here's how to do it. Under /includes/functions/affiliate_functions.php, locate

 

tep_db_query("LOCK TABLES " . TABLE_AFFILIATE . " WRITE");

 

and comment it out

 

// tep_db_query("LOCK TABLES " . TABLE_AFFILIATE . " WRITE");

 

Let me know if I missed anything. There are some UNLOCK codes in this same file but I did not touch them.

 

Patrick

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...