By gaba on
As of version 4.7, modules authors can use .install files to do module setup work. I have problem with that.
It seems that .install file can't run on my site. How to run .install file manually? I was trying to install views.module.
error massege: user warning: Table 'site_site.view_view' doesn't exist query: SELECT * FROM view_view WHERE page = 1 in /home/site/public_html/includes/database.mysql.inc on line 120.
Thanks,
Gaba
Comments
Database settings
Is your database really named site_site? If not, check your $db_prefix in /home/site/public_html/sites/default/settings.php
db_prefix, but not prefix of dbname
$db_prefix is actually the prefix of the table ;-) A bit of a misnomer perhaps.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Thanks
Ahhh, thanks. I never use it, so I never would have noticed that. Where would the site_site be coming from then? From $db_url?
db_name
That's the databasename that MySQL tacks onto the tablename in the error message it returns.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Versions
Gaba,
What exact versions of Drupal and Views are you using? You can extract the queries from the .install file (this is from views 4.7):
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Thanks
Thank you very much,
that solved my problem. But I wonder why that .install file didn't start after module activation. I using Drupal 4,7 RC3.