Step 5: troubleshooting

Last updated on
30 August 2016

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Clearing cache

If you got an error or a empty screen during the process, then modified something and want to try again, then you may need to clear your browser cache to check whether your new attempt is fruitful. For this,

  • in Mozilla Firefox, go to Edit → Preferences → Privacy → "Clear your recent history"; in "Time range history", choose a duration at least as long as the time elapsed since your first modification; if unsure, choose "Everything". In "Details", check only "Cache", then click on "Clear now".
  • In Chromium web browser, go to the wrench icon on the top right → Preferences → Under the bonnet → Privacy: Clear browsing data. In "Obliterate the following items from:" choose the duration (If unsure, choose "the beginning of time".), check only "Empty the cache" then click on "Clear browsing data".

Checking Apache and PHP

You can rename your drupal7/index.php file (to save it) and replace it temporarily by a new index.php file containing only <?php phpinfo(); ?>. Then go with your browser to your site http://example . If you can see something like this:
 description of Apache, its modules and the system
it proves that Apache and PHP work together and are serving the right first Drupal file (index.php).

Blank page

If Apache and PHP works but you get only blank pages (often referred to "WSOD": "white screen of death"), it may be that the package php-pdo_mysql is not installed in your system: install it and restart Apache (httpd). In Mageia 3 or 4, you can go in "Mageia control center" → System → "Manage system services by enabling or disabling them", then "stop" and "start" httpd.
Reference: PDO
Note that getting only a blank page is a problem different from getting some blank pages inside a website.

It is often useful to navigate with your browser to the page example/update.php, as this may provide an error message.

There is a section of the reference book, about blank pages:

Access denied

If you get an "access denied" error message, it may be that your Apache configuration doesn't allow the connection. You should have a directive Require local granted in your Apache configuration, for instance a paragraph

<Directory /usr/share/drupal/>
   Require local granted
</Directory>

in /etc/httpd/conf/sites.d/drupal.conf (in Mageia 4).

No watchdog table

If you get an error message complaining the watchdog table doesn't exist, go in "modules", disable the watchdog module, click on "Save" (at the bottom of the page), enable it again and save again. If the problem persists or if you couldn't log in to disable this module, then go in PhpMyAdmin (http://localhost/phpmyadmin), choose your database ("company_example" in our example), in the horizontal menu, choose "SQL", and copy the following into the frame named "Run SQL query/queries on company_example:" ("company_example" standing for your database name).

--
-- Database: `company_example`
-- 
-- --------------------------------------------------------
--
-- Table structure for table `watchdog`
-- 
CREATE TABLE `watchdog` (
  `wid` int(11) NOT NULL auto_increment,
  `uid` int(11) NOT NULL default '0',
  `type` varchar(16) NOT NULL default '',
  `message` longtext NOT NULL,
  `variables` longtext NOT NULL,
  `severity` tinyint(3) unsigned NOT NULL default '0',
  `link` varchar(255) NOT NULL default '',
  `location` text NOT NULL,
  `referer` varchar(128) NOT NULL default '',
  `hostname` varchar(128) NOT NULL default '',
  `timestamp` int(11) NOT NULL default '0',
  PRIMARY KEY  (`wid`),
  KEY `type` (`type`)
) DEFAULT CHARSET=utf8;

replacing "company_example" by your database name. Then click on "Go". This will create the lacking database. Reference: old bug 429188 and bug 1784548.

Reference

There is a chapter of the documentation about troubleshooting.

Help improve this page

Page status: No known problems

You can: