So I was trying to uninstall Date and Calendar so I could install their development versions that would work, and read that only way to do that would be to delete them from the data table, but I have now accidentally deletes something that the drupal core needs:
date_format_type table and now I get this error message when I try to empty cashes:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_table.date_format_type' doesn't exist: SELECT dft.type, dft.title, dft.locked FROM {date_format_type} dft ORDER BY dft.title; Array ( ) in _system_date_format_types_build() (line 3662 of /my/website/path/modules/system/system.module)
So my question is, can I get this table back anyway or if I have to make it there what are its contents?
Thank you in advance
Comments
Just recreate the table with
Just recreate the table with these columns and values:
Columns:
type (varchar 64, primary key)
title (varchar 255)
locked (tinyint)
Rows:
long, Long, 1
medium, Medium, 1
short, Short, 1
There's also an index on the title column.
Seems I deleted 2 other needed tables too -.-
Thank you millions, and I feel sosososososoo stupid now and should have taken a backup before doing anything, but I would need the colums for the other two tables too that I managed to delete at the same time -.-
These tables are: date_formats and date_format_locale
Thank you in advance again and would still apreciate the help (-___-)
No problem, copy these to
No problem, copy these to separate .sql files and run them against the database (using phpmyadmin/navicat etc.):
date_formats:
date_format_locale:
My sincerest thanks
Thank you thank you thank you... i just can't thank you all who helped me enough. Truly thankful ^^
similar straits
I'm hoping you could be so kind as to help me with a similar concern, as I'm a total databse noob. This is my error message:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'username_sitename.blocked_ips' doesn't exist: SELECT 1 FROM {blocked_ips} WHERE ip = :ip; Array ( [:ip] => 24.22.159.63 ) in drupal_is_denied() (line 1635 of /home/user/public_html/includes/bootstrap.inc).
I see that I need to create the table "blocked.ips," but in going into the database via phpmyadmin, I can only sorta make sense of things. I have no clue on how many rows or columns I need or how to configure them. I'm purely a copy and paste kinda person, able to plug in my user name and site, but little more.
Thanks in advance,