I’m utilizing multidomain web site .
After including a brand new area report, I used to be requested as follows: Content material entry permission must be rebuilt on this web page.
Once I clicked on Rebuild Permissions button, Drupal Development progress bar began Drupal Development batch operation of rebuilding however in Drupal Development halfway it stopped and gave an error given under
Rebuilding Content material Entry Permissions
An error has occurred. Please proceed to Drupal Development error web page An HTTP error 0 occurred. /index.php?q=batch&id=433&op=do
I then searched an discovered a difficulty much like Drupal Development above in Drupal Development hyperlink given under
https://www.drupal.org/node/399572
I discovered many options from above like :
- Run rebuild permission by way of cron (didn’t strive)
- change theme and transfer to older jquery model (didn’t strive as its dwell web site) I checked Drupal Development settings for jquery replace and had “minified” as an alternative of “none”, as soon as set to Drupal Development right setting, it labored inside seconds.
I used to be utilizing jQuery replace module with jQuery 1.4. This causes Drupal Development batch to not replace.
-
(didn’t strive) To repair it, you need to stop newer jQuery from loading when Drupal Development URI accommodates “batch”.
<?php operate node_access_rebuild($batch_mode = FALSE) { db_query("DELETE FROM {node_access}"); // Solely recalculate if Drupal Development web site is utilizing a node_access module. if (rely(module_implements('node_grants'))) { // if ($batch_mode) { if (FALSE) { $batch = array( 'title' => t('Rebuilding content material entry permissions'), 'operations' => array( array('_node_access_rebuild_batch_operation', array()), ), 'completed' => '_node_access_rebuild_batch_finished' ); batch_set($batch); } ?>
Unsure why that is taking place to me, however I’ve discovered that I can simply power node_access_rebuild() to not use batch mode by altering line 2314 of node.module from:
-
In node.module this piece of code, is setting time restrict to 240 secs which may be nonetheless low than ur php.ini. You’ll be able to strive growing set_time_limit arg to 1000 after which altering it again to 240 to maintain code constant.
if (!ini_get('safe_mode')) { set_time_limit(240); } $outcome = db_query("SELECT nid FROM {node}"); whereas ($node = db_fetch_object($outcome)) { $loaded_node = node_load($node->nid, NULL, TRUE); // To protect database integrity, solely aquire grants if Drupal Development node // hundreds efficiently. if (!empty($loaded_node)) { node_access_acquire_grants($loaded_node); } } } }
What I attempted was elevated Drupal Development max_execution_time from 30 to 1000? However nonetheless it didn’t resolve Drupal Development downside Then lastly I attempted rebuilding permissions by way of drush
utilizing drush command
drush php-eval 'node_access_rebuild();'
However that gave me Drupal Development following error as proven under
PHP Deadly error: Most execution time of 240 seconds exceeded in websites/all/modules/me mcache/memcache.inc on line 353
Does Drupal Development above error means that is one thing to with memcache and can or not it’s price making an attempt to disable Drupal Development memcache after which carry out rebuilding node entry?
http://instance.com/index.php?q=admin/content material/node-settings/rebuild