When I update modules, and try to run update.php I get this error.

Some of the pending updates cannot be applied because their dependencies were not met.

Comments

doranfigart’s picture

Anyone?

justinchev’s picture

Are all the dependant modules required by your new ones installed?
May also be worth trying to install the dependant ones first, running update.php, and then installing the ones that depend on those afterwards.

ayesh’s picture

Above is the answer. Read README.txt and UPGRADE.txt before actual update.

doranfigart’s picture

So should deactivate everything before I run it then?

daviesap’s picture

Too late for me - have updated several modules and am now getting this message,

Any ideas?

justinchev’s picture

When on the modules page (where you tick the boxes for the modules you want to install), have a look in the description to the right of the check-box. Sometimes the module you are trying to install requires another module to be installed first.

For example if you were installing the 'Panels' module it will tell you in the description area that this module 'depends on:' the 'Chaos tools' module. Generally a module won't allow you to check-the-box until the dependant module is installed, occasionally you can though, and sometimes you can install both at the same time eg. checking both 'panels' & 'chaos tools' modules for install at the same time.

At times I've found that ticking both at the same time doesn't work, so then I would first install the dependant module (eg Chaos tools), save that, run update.php, and then go back and try install the original module you wanted to install (eg panels).

That should sort out any dependancies...

If that doesn't work tell us what module it is that you are trying to install.

ayesh’s picture

What a great support to poster! Really helpful.

perebcn’s picture

The same issue here, I installed Drupal 7 from scratch, and suddenly, I cannot update using update.php, the same error message:"Some of the pending updates cannot be applied because their dependencies were not met.". I don't receive any information about the dependent modules neither when I run update.php nor in the logs section. Where can I find information about de dependent modules that doesn't allow me to run update.php?

mattcasey’s picture

I was getting this very unhelpful warning for a while on my dev site and I believe it had to do with installing and re-installing Ubercart a few times. Finally, It turns out, disabling was not enough - I disabled all of Ubercart's modules but the error did not disappear until I uninstalled the data (these appear on the Uninstall tab of Modules after you disable them).

Re-enable modules and the error did not come back :)

ericdjohnson’s picture

Using latest Ubercart and D7. I've got a bunch of products configured so I'd like to avoid having to uninstall my data and starting over. Is there a way to preserve the data? Like if I back up my database, can I re-import the data after I reinstall Ubercart?

ericdjohnson’s picture

Yeah, it really should give you some useful information. Unless, it's actually some general error disguised as this error.