Dear Friends,
I'm using drupal 6.1 version of pathauto, But when a user create a content, The following warning is showed on the top of page above created content.
I didn't have see any error in website after that.

No database selected query: SHOW TABLES LIKE 'xxxxxxxx.xxxxxx_path_redirect' in /home/emirates/public_html/xxxxx/includes/database.mysqli.inc on line 344.

(for more info, i 'm using multisite with two separate databses.)

For solving the problem, I installed the module path redirect. Because i thaught if there is the table path_redirect. But yet the problem is existed and any record is inserted to that table.
WHy?
Where is the problem?

CommentFileSizeAuthor
warning-pathauto.JPG28.99 KBrowshan

Comments

greggles’s picture

Component: User interface » Code
Status: Active » Fixed

I believe that a "No database selected" error means that some other module which switches databases has failed to switch back to the default database. That is why installing path_redirect did not solve the problem.

Based on that information hopefully you can try to look into other modules on your site to see which one might be causing this issue. If you can do more investigation but get stuck again please follow up with some more information (the other modules you use, etc.)

rowshan’s picture

Dear gregggles,
Very thanks for your comment. Yes, I think that's my problem.
I searched other topics for "No database selected query" and found http://drupal.org/node/4497 , It's not like my problem but a little close.
How can i be sure about the reason and how can be solved?
Best Regards!

rowshan’s picture

Component: Code » User interface
Status: Fixed » Active

Dear friends,
How can i disable connecting to "path_redirect" table without installing "path redirect module"?
After installing pathauto module and before installing "path redirect", Why should drupal show warning for connecting to path_redirect table? I think pathauto for drupal6 is not dev version.
I don't have any problem with this warning and every thing is good. Just i don't want to show this warning.

greggles’s picture

Status: Active » Closed (fixed)

You have a bug elsewhere in your code. If you fix this one path_redirect issue then the next query that happens will show this error.