Drupal on Lamp undefined function field_attach_load()

Feb 27, 2014 00:00 · 227 words · 2 minute read Ubuntu Linux Drupal

I installed drupal and was having some troubles getting it to work properly and hopefully this will save someone some heartache down the road. I ran the install script and everything seemed to work fine but at the end of the script it just showed a white page and wouldn’t load anything. Oh Joy. First step you’ll want to do is turn php error reporting so you can see what is up. Look in your php.ini file, mine is located at /etc/php5/apache2/php.ini, for a line that says “display_errors” and make sure it is set to “On”. If you get the undefined error as stated above then these are the two steps I took to get it working. First I changed the max execution time located in php.ini to 60, I can’t honestly say I know if this made a difference or not but I’m not going through this process again to find out so I’ll just leave it here. Run “sudo service apache2 restart” to load the new settings. Then go into your database and drop which ever database you were using and recreate it. Go back to the install.php and run it again and you should have no problems. I don’t know what caused this exactly but I’m pretty sure it was because I didn’t install everything in a sequential manner. Lesson learned the hard way.