I get blank page after installing rules 2.1 after downgrade to 2.0 all is OK.
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.access_exposed'...
I get blank page after installing rules 2.1 after downgrade to 2.0 all is OK.
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.access_exposed'...
Comments
Comment #1
fagoSounds like you have an old database, maybe it previously was enabled but not uninstalled properly. In that case update.php updates should be available? Anything, it shouldn't happen on a clean install. Please test.
Comment #2
trotsak commentedI think you right fago, on clean installation all have OK, but problem in that I have very living (..yet) site.
What I have doing for update Rules without blank page?
Comment #3
NathanM commentedAlso got this error upon updating from 2.0 to 2.1.
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.access_exposed' in 'where clause': SELECT base.id AS id, base.name AS name, base.label AS label, base.plugin AS plugin, base.active AS active, base.weight AS weight, base.status AS status, base.dirty AS dirty, base.module AS module, base.data AS data FROM {rules_config} base WHERE (base.plugin IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4)) AND (base.access_exposed = :db_condition_placeholder_5) ; Array ( [:db_condition_placeholder_0] => or [:db_condition_placeholder_1] => and [:db_condition_placeholder_2] => action set [:db_condition_placeholder_3] => rule [:db_condition_placeholder_4] => rule set [:db_condition_placeholder_5] => 1 ) in EntityAPIController->query() (line 152 of /home/asiascen/public_html/hkscene.com/sites/all/modules/entity/includes/entity.controller.inc).
The update to 2.1 failed. Is there a way to re-run the update without cleaning out the rules database?
Comment #4
NathanM commentedReverting back to 2.0 for the time being seems to work without much difficulty, for those who find themselves in a similar situation.
Comment #5
coert commentedSame problem as described by #1, also have the same DB-error as #3. I've got a stack trace with that:
Cleaning APC-cache did not solve the problem. Trying to clean drupal cache with drush (drush cache-clear all) rendered following error:
Comment #6
drupalycious commentedHello,
I just updated to rules 2.1 and I obtain the same blank page with the warning:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.access_exposed'...as Fago said in the comment #1 you just have to run the update.php it will update your database and the website will come to a normal state with no blank page or warning.
It means that as soon as you reach the blank page with the warning, you have to go to your browser address bar and type update.php after your domain name:
if your website is mysite.com then you type mysite.com/update.php, then you run the proposed updates for rules and the other modules and you clean the caches.
Then everything should be working properly.
Comment #7
coert commentedI got it solved after multiple attempts of running update.php. Directly after installing Rules 2.1 update.php says there were no pending updates. Hard refreshing my website gave me the white screen. Looking at the db-logs (admin/reports/dblog) showed there were 3 orphaned actions, advising me to delete them. So I deleted them in the actions settings page (admin/config/system/actions), you just follow the link from the log page. Then returned to update.php, there were 3 pending updates available again. I ran them, and then it was finally ok.
Comment #8
daffie commentedI have had the same problem. I got it solved by removing the commerce module.
Comment #9
isak_manresa commentedThe same solution as #7 works for me
Comment #10
selamtbobo commentedSame issue on my sites. Comes to Rules module because of trying to install Commerce module.
Comment #11
jackalope commentedSame issue here, though I couldn't manage the solution in #7. Reverted to Rules 2.0 instead.
Comment #12
mitchell commentedPlease track down the bug and update the issue status.
Comment #13
forssto commentedI can confirm that this also happens in my environment. Commerce module also in use.
Comment #14
marty2081 commentedHad the same eror here after updating to Rules 2.1. Just running update.php fixed it.
Comment #15
mitchell commentedCan other users please confirm that running update.php after upgrading solves this? That is the expected workflow.
Comment #16
NathanM commentedNo. I ran upgrade.php around 5 or 6 times and it kept saying no updates needed to be applied.
Comment #17
kerios83 commented#16 After deleted rules folder and replace it by rules 2.1 and run update.php I get:
I run those updates and everything works fine. However you can try to flush cache.
Comment #18
daffie commented@ kerios83
Go to admin/config/development/performance and click on Clear all caches.
Comment #19
kerios83 commented#18 on my site everything works fine, BTW
Comment #20
rtdean93 commentedThis has occured for me and I cannot recover. Even after reverting back to Rules 2.0 my site is hosed with an error....
Error messagePDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.access_exposed' in 'field list': SELECT base.id AS id, base.name AS name, base.label AS label, base.plugin AS plugin, base.active AS active, base.weight AS weight, base.status AS status, base.dirty AS dirty, base.module AS module, base.access_exposed AS access_exposed, base.data AS data FROM {rules_config} base WHERE (base.name IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => commerce_shipping_method_ups ) in EntityAPIController->query() (line 152 of /home/bobby/workspace/blueline/www/sites/all/modules/contrib/entity/includes/entity.cont
this also affects Drush so I can't revert my DB. Any solutions?
Comment #21
mrfelton commentedI'm also getting this problem trying to upgrade rules to 2.1. I'm using aegir to perform the upgrade. The aegir logs indicate that the 3 rules updates ran successfully (7207, 7208 and 7209), and that the error occurred when one of our custom moudle's update hook ran just after the rules one which attempted to disable some rules using the following:
Only way I could get the update to run successfully was to remove this update hook.
Comment #22
Ogredude commentedI was having exactly this same issue. When I ran update.php, it failed with the same PDO error. Drush update claimed no updates were needed.
I finally ended up adding the column manually from the MySQL console based on the migration in rules.install. That fixed it.
Comment #23
senpai commentedDowngrading this one to normal, and marking it as fixed.
I was just able to reproduce this bug on a client's D7.14 site running Rules 7.x-2.1, and the rules tables had not been updated with update.php as they should have been because another bug in another module was crashing the update.php script and causing it to abort prematurely. Fixing/removing the bugs caused Rules to successfully update it's tables on the next pass, thus nullifying this bug report.
There's nothing that needs to be fixed in the Rules module. I think this bug is caused by other modules interfering with Rule's ability to simply do it's thang.
Comment #24
xibun commented@Senpai: which third party module caused the bug?
Comment #25
senpai commented@xibun, in this case, it was custom code, but in other examples above, a contrib module seems to be causing the same exact problem.
Comment #26
lazysoundsystem commentedJust to note: I had this issue when updating the Media module at the same time. Updating them separately avoided the issue.
Comment #28
girishmuraly commented@senpai any symptom of what we need to check to debug this please? I am maintaining a huge distribution and finding out whats causing this problem is challenging, and is preventing me from doing the upgrade now. Stuck on version 2.0.
Comment #29
hgneng commented#7 works for me too.
Comment #30
senpai commented@girishmuraly in comment #28, you need to determine which other module is causing an error(s) during the update.php process, and either remove it or fix it. Debugging 101: Try getting rid of the Rules module and seeing what happens during the next run-through...
Comment #30.0
senpai commentedhave remembered