Hi all, we are building a module in drupal, we wrote .module, .info and .install files in that module folder. the problem is that, the tables we wrote in .install file are not getting created in phpmyadmin. A .install file is run the first time, a module is enabled, and is used to run setup procedures as required by the module. The most common task is creating database tables and fields. Now we get the following warnings: # user warning: Table 'drupal.demoinvoice_invoice' doesn't exist query: select max(invoice_no) from demoinvoice_invoice in /opt/lampp/ htdocs/drupal56/includes/database.mysql.inc on line 172. user warning: Table 'drupal.demoinvoice_client' doesn't exist query: select short_name from demoinvoice_client in /opt/lampp/htdocs/ drupal56/includes/database.mysql.inc on line 172. user warning: Table 'drupal.demoinvoice_bankacc' doesn't exist query: select description from demoinvoice_bankacc in /opt/lampp/ htdocs/drupal56/includes/database.mysql.inc on line 172. Regards Kalyani Waychal
Hi, On Saturday 05 April 2008 11:27:37 Kalyani Waychal wrote:
Hi all,
we are building a module in drupal, we wrote .module, .info and .install files in that module folder. the problem is that, the tables we wrote in .install file are not getting created in phpmyadmin. A .install file is run the first time, a module is enabled, and is used to run setup procedures as required by the module. The most common task is creating database tables and fields.
Try to disable your module, uninstall and install it again. Keep in mind though, that you may lose your module settings. -- # Vasileios Lourdas, # Informatics Engineer, Thessaloniki (Greece) # http://www.lourdas.name
Hi Vasileios Lourdas, Thanks for early reply. I am already try that but it is giving same warning no tables are created into database I get blank page when I eanale module. Regards On Sat, Apr 5, 2008 at 3:13 PM, Vasileios Lourdas <drupal@lourdas.name> wrote:
Hi,
On Saturday 05 April 2008 11:27:37 Kalyani Waychal wrote:
Hi all,
we are building a module in drupal, we wrote .module, .info and .install files in that module folder. the problem is that, the tables we wrote in .install file are not getting created in phpmyadmin. A .install file is run the first time, a module is enabled, and is used to run setup procedures as required by the module. The most common task is creating database tables and fields.
Try to disable your module, uninstall and install it again. Keep in mind though, that you may lose your module settings. -- # Vasileios Lourdas, # Informatics Engineer, Thessaloniki (Greece) # http://www.lourdas.name
Quoting Kalyani Waychal <kalyani.waychal@oscpro.in>:
Hi Vasileios Lourdas,
Thanks for early reply.
I am already try that but it is giving same warning no tables are created into database I get blank page when I eanale module.
Support questions - http://drupal.org/support Google - http://www.google.com/search?hl=en&q=blank+page+site%3Adrupal.org Find - http://drupal.org/node/158043 Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
participants (3)
-
Earnie Boyd -
Kalyani Waychal -
Vasileios Lourdas