Jump to content
Albal

Bad SubDomain SQL query.

Recommended Posts

I am receiving the 'Bad Subdomain SQL query' error on my site. My site hasn't been moved from another host/server.

 

I have followed the instructions on the bug reports and ran the following:

 

INSERT INTO `ps_subdomain`( `id_subdomain`, `name` )
VALUES (
'1', 'www'
)

 

 

But upon running that I receive this error:

#1033 - Incorrect information in file: './dbname_ps/ps_subdomain.frm'

 

 

The ps_subdomain.frm table contains the following:

 

 

SELECT * 
FROM  `ps_subdomain` 
LIMIT 0 , 30

 

I have tried searching for this issue but haven't found anything.

 

Does anyone know how to fix this? Any help is much appreciated.

Share this post


Link to post
Share on other sites

What is the PS version? First check the table:

 

CHECK TABLE ps_subdomain FAST QUICK;

 

What is the message you get?

 

Then get everthing from the table and paste here if the previous does not indicate an error.

 

SELECT * FROM ps_subdomain

Share this post


Link to post
Share on other sites

Hi Albal,

Go into settings life in config floder and comment out the Cookie lines.

 

//define('_COOKIE_KEY_', 'mRIubjsMH0qkCoxc1');
//define('_COOKIE_IV_', 'hhkYE6');

 

Its want i did and it cleared.

 

Good luck

  • Like 1

Share this post


Link to post
Share on other sites

My database prefix is ps2_ so obviously when it's looking for ps_subdomain it ain't finding anything. my settings.inc file is fine so any ideas why this is still screwing up?

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More