GithubHelp home page GithubHelp logo

wodge / registry_rebuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from omega8cc/registry_rebuild

0.0 2.0 0.0 80 KB

Forked from http://drupal.org/project/registry_rebuild

Home Page: http://drupal.org/project/registry_rebuild

registry_rebuild's Introduction

Registry Rebuild
----------------

THIS IS NOT A MODULE. PLEASE READ BELOW.

There are times in Drupal 7+ when the registry gets hopelessly hosed and you
need to rebuild the registry (a list of PHP classes and the files they go with).
Sometimes, though, you can't do this regular cache-clear activity because some
class is required when the system is trying to bootstrap. 

When would you need Registry Rebuild?
-------------------------------------

You might get something like:

PHP Fatal error:  Class 'EntityAPIControllerExportable' not found in 
...sites/all/modules/rules/includes/rules.core.inc on line 11

If this happens when you're trying to run update.php, and happens when you're 
trying to clear your cache, well, you have some trouble. That's what Registry
Rebuild is for.

When would you *not* need Registry Rebuild?
-------------------------------------------
If you can access any page, or install a module, or run update.php, you almost
certainly don't need Registry Rebuild.

You can run registry_rebuild with or without drush. See below.

How To Use It (with drush)
--------------------------
1. Make a backup of your database.
2. drush dl registry_rebuild will download the current recommended version and
   place it in your .drush folder. Or you can copy the directory 
   registry_rebuild from this package into your
   ~/.drush folder (or other appropriate folder)
3. Run "drush rr"

How To Use It (without drush)
-----------------------------
This isn't really a module, but it's just packaged as a module to make it so 
it's easy to find and people can download it as a package.

1. Make a backup of your database.
2. Download and install as usual where you put modules (sites/all/modules is 
   most common)
3. You don't need to enable it. If you were able to enable it you wouldn't 
   need it. See above.
4. Either run it from the command line:
   cd sites/all/modules/registry_rebuild
   php registry_rebuild.php
   OR
   point your web browser to 
   http://example.com/sites/all/modules/registry_rebuild/registry_rebuild.php
   Changing "example.com" to your own site's base URL of course.
4. You should see something like this:

DRUPAL_ROOT is /home/rfay/workspace/commerce.
There were 631 files in the registry before and 508 files now.
If you don't see any crazy fatal errors, your registry has been rebuilt. You will probably want to flush your caches now.

5. Hopefully you'll now be able to go about your affairs in peace, updating,
   clearing cache, etc.
   
This package comes with no guarantee explicit or implicit.

There's no reason it should do any harm to your install. But there can be lots
of things wrong with a system, and the registry problem is not the fix for
everything.

registry_rebuild's People

Contributors

joachim-n avatar omega8cc avatar rfay avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.