All pages on website suddenly return 'Fatal error: Call to undefined function views_get_view()'
Weird stuff. Website emergency!
I have created a site been up and running now for almost a year. Haven't seen this error before. 3 days ago the guy I did it for calls and says there's an error. I go to the site and nothing is wrong. Zero error messages. I added a couple of pages, tweaked a content template, and enabled searching for anonymous users. I viewed the new pages fine, and also the content template teaser list. but I didn't search as an anonymous user. I think ajax search also. I also did edit the view. All I changed was the number of entries to show per page. I raised it to 25 to 40 before the pager is required. Alpha pager is also used. I checked it afterword. URL it is at /plantlist
Anyway today he calls again saying it has errors again. This time I receive this when going to root directory
Fatal error: Call to undefined function content_types() in /home/content/*/*/*/*****/html/modules/imagefield_gallery/imagefield_gallery.module on line 102
The stars I have put there replacing my customers account name. When I try /admin I get:
Fatal error: Call to undefined function views_get_view() in /home/content/*/*/*/****/html/modules/views_fastsearch/views_fastsearch.module on line 620....
I don't think I'm using imagefield gallery or views_fastsearch on this site either.
all others so far seem to return the second error message even if I type in garbage like /nanananananan
Suddenly this view_get_view() function is unavailable. Has something got corrupted??
I haven't updated the modules or system that had been working great for a year. Actually I updated imagecache some time ago. But it has worked for months. I haven't created any custom modules for this site.
How can I like "reset" the drupal site. Is there "safe mode" drupal page in the structure to fix something like this?
some kind of basic control panel? Devel is not installed.

Look at the watchdog errors
Look at the watchdog errors (you will need phpmyadmin) and apache logs for errors.
From the errors it looks like the file system is corrupted (or messed with), for a quick check look in the directory where views is installed for views.module. It should be there and contain views_get_view() [at or around line 371]
Or someone has uninstall some modules (you can look at Drupal system table for that).
views.module ok
I downloaded the views.module file and opened it in html-kit and it loaded fine and at 371 was views_get_views()
I use godaddy.....gotta figure out how to get into phpmyadmin and the apache logs.
thanks.
Any other ideas?
How do I look at the Drupal system table?
How do I look at the Drupal system table? is it the mysql database tables?
maybe views was uninstalled? I don't think I uninstalled or installed any modules that last day there. I don't think the client would do it unless he was piddling and won't anty up. but I don't it. Hackers? Why hack a small time grow nurseries website?
seem weird to me....
Maybe after getting into the watch dog errors will shed some light
You should be able to get to
You should be able to get to phpMyAdmin through GoDaddy's control panel, there should be a section called database or databases.
Both system and watchdog are tables in your Drupal database.
To see all modules install but not enabled you can run the query
SELECT name, status FROM system where status = 0For watchdog you are going to want to look at the most recent entries (greater value of wid).
No watchdog entries concerning these errors
The last watchdog entries concern the errors I was getting with imagecache before I upgraded that module several months ago.
Modules where status=0
SELECT name, status FROM system where status = 0 gives the following output
FixedDataDropdown 0
activeedit 0
activemenu 0
admin_menu_dropdown 0
aggregator 0
ajaxsubmit 0
ajaxtable 0
ajaxtable_docs 0
audiofield 0
blogapi 0
book 0
cck_fieldgroup_tabs 0
collapsiblock 0
computed_field 0
contact 0
content_copy 0
content_taxonomy_autocomplete 0
date 0
date_api 0
date_copy 0
dependantDropdown 0
dependent 0
drupal 0
forum 0
headerimage 0
imagemenu 0
insert_view 0
int_meta 0
int_meta_cck 0
inventory 0
jscalendar 0
legacy 0
link 0
locale 0
logotool 0
matrix 0
mediafield_display 0
money 0
nodehierarchy 0
nodehierarchy_views 0
nodehierarchyaccess 0
nodereference 0
panels 0
panels_taxonomy 0
panelsblock 0
photoframe 0
ping 0
planet 0
poll 0
profile 0
quicktabs 0
relatedcontent 0
relativity 0
slicedmenu 0
splash 0
tabbed_block 0
taxonomy_quick_find 0
textareatabs 0
themer 0
thickbox 0
tokenize 0
tracker 0
unique_field 0
upload_image 0
userreference 0
vfs_ranking_nodetype 0
videofield 0
viewfield 0
views_bonus_archive 0
views_bonus_audio_playlist 0
views_bonus_export 0
views_bonus_lineage_tree 0
views_bonus_panels 0
views_bonus_sparkline 0
views_bonus_summary_combo 0
views_bonus_tag_cloud 0
views_calc 0
views_multiblock 0
views_rss 0
kommunity 0
marvin 0
minnelli 0
imagecache_image 0
backlinks 0
blockbar 0
custom_links 0
render 0
STARTERKIT 0
fireflystreamcom 0
igniter 0
affaires 0
zen_classic 0
zen 0
fourseasons 0
danger4k 0
burnt 0
denver 0
tapestry 0
Internet_Corporation 0
imagefield_crop 0
name status
brushed_steel 0
renecance 0
kexolid 0
imagination 0
greenhouse 0
foliage 0
antique_modern 0
andreas02 0
Amor_Azul 0
pushbutton 0
chameleon 0
artistsC01 0
bluemarine 0
imageapi_imagemagick 0
Try the same thing with a
Try the same thing with a status of 1, are either of the modules with the errors above enabled? (they are not disabled and to get the errors must be installed). If you find them in the enabled list you could use phpMyAdmin to disable them.
Yes!!!
I used phpmyadmin to disable those two modules manually. Whaala!!!
I next disabled a couple of modules I wasn't using.
Why is the big question.....I don't believe I had either of those modules enabled before. and then Why all of a sudden produce this error???
Thank you
I forgot to express my appreciation for nevets. Thank you for spending some time helping me out.
Your welcome, as for why,
Your welcome, as for why, does the client have access to the module administration page?
Yes but,
He said he didn't mess with anything but editing a blog entry. I may just make a user that has the rights to create content but not anything else.
Assuming he didn't change anything can you think of a reason why?
Other than someone hacking,
Other than someone hacking, nothing, but that would be an odd hack.
But what if I want to use those modules in the future?
Maybe I hit wrong checkbox or something. But what if I want to use those modules in the future and I get a bunch of fatal errors? Why just those modules? What if I had to fix it where no errors and the modules work fine?