Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bootstrapping]

Use it for questions about the operations done from Drupal to initialize itself, not about Twitter Bootstrap.

-1
votes
0answers
7 views

Error in TranslationLanguageRenderer halts bootstrap

I'm getting this error when I try to start my local version of our production site. The production site is working properly, but I'm having a lot of difficulty with my local dev site. The website ...
0
votes
1answer
55 views

How can I bootstrap?

How can I bootstrap Drupal 8 from an external script? This an example script from the RabbitMQ Work Queues tutorial. require_once __DIR__ . '/vendor/autoload.php'; use PhpAmqpLib\Connection\...
-1
votes
1answer
34 views

Drupal 8 - what is application bootstrapper or auto-loader

I was working on a module in Drupal 8, and came across this thread answering a question on class auto-loading for Doctrine annotations: https://stackoverflow.com/questions/14629137/jmsserializer-stand-...
1
vote
1answer
333 views

cannot use some drush commands

I am running into some trouble with drush I can't pm-enable the modules I just downloaded with it. I did some research but none of the solution worked for me, most cases involved switching "localhost" ...
1
vote
2answers
350 views

“No Drupal site found” — Windows and SQL Server

So I'm trying to upgrade our system from using Drush 6 to Drush 8, as that is the currently supported version of Drush that supports Drupal 7. I have managed to get drush working, however it does not ...
0
votes
0answers
929 views

PHP Fatal error: require_once(): Failed opening required HTMLMailSystem__SmtpMailSystem.mail.inc

PHP Fatal error: require_once(): Failed opening required '/var/www/dorak/sites/default/files/mailsystem/HTMLMailSystem__SmtpMailSystem.mail.inc' (include_path='.:/usr/share/php') in /var/www/dorak/...
0
votes
2answers
317 views

Cannot install Drupal via drush in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
0
votes
1answer
133 views

Breadcrumb per content type per role, bootstrap theme

I need to display a breadcrumb per content type and per role. What the best way to do it. I've tried a lot of module and none fit my needs. I tried overwritting breadcrumb in template.php as follow, ...
0
votes
2answers
781 views

Theme logo and site name

how can I put logo and site name in an unordered list? I am using a bootstrap subtheme !
0
votes
2answers
92 views

Why do I need to enable the Drupal Bootstrap theme when using a Bootstrap subtheme?

I'm trying to learn how to use the Drupal Bootstrap theme to create my own subtheme. I've added the Bootstrap theme to my drupal/themes directory, and chosen SASS as my sub-theme starterkit (i.e. I'...
0
votes
1answer
299 views

How to implement second level menu for bootstrap theme in drupal 7?

i am using bootstrap theme for my drupal site, it has menus like menu 1 & menu 2 in header region. when i click on menu 1 it has to display it's sub menus like sub menu 1, sub menu 2, submenu3 ... ...
1
vote
1answer
315 views

How do I modify the HTML of my subtheme?

I created a bootstrap subtheme ouf of CDN. Modifying the CSS works, but how do I do it with the HTML? Where do I put new HTML elements? For example: I'd like to add some elements to my footer, make it ...
1
vote
1answer
112 views

Breadcrumb add content type data without any modules

How could I print content type like the breadcrumb, for example Home/Content type/Create
0
votes
1answer
2k views

How to get my custom 404/403 pages to work with Bootstrap? [closed]

I use this in my template.php for custom error pages: //custom 404 not found page $header = drupal_get_http_header("status"); if($header == "404 Not Found") { $vars['theme_hook_suggestions']...
3
votes
3answers
1k views

Bootstrap 3, how disable auto-added Glyphicon?

I use Bootstrap (v3) with Drupal 8. When I create a button named "Search something", bootstrap adds automatically a "Search" Glyphicon. I do some web searches, but I don't find how "disable" (or hide?)...
0
votes
1answer
176 views

Views slideshow is not being responsive in bootstrap theme

I created 3 images. Each image size is 1300 x 600. I created content type SLIDESHOW. I added 3 contents to the SLIDESHOW. I created a views slideshows. I applied my css as below: .view-...
3
votes
1answer
74 views

Why does DRUPAL_BOOTSTRAP_PAGE_CACHE phase come before DRUPAL_BOOTSTRAP_DATABASE?

According to this article about drupal_bootstrap function, all parameters for drupal_bootstrap() run sequentially. And if we see the sequence, here first comes - DRUPAL_BOOTSTRAP_CONFIGURATION, second ...
1
vote
1answer
57 views

Allign block content next to title - CSS

My goal is to display a button group to the right of the page title. Currently it resides in region-content, which wastes space. I tried adding my own class to the div that contains btn-group class ...
1
vote
1answer
48 views

What would be best method to append bootrap css to non bootstrap themes but not affect layout? [closed]

I want to use Adaptive themes, I like the layout options, however, I like the Bootstrap look and feel. So I want Adaptive theme layout css with boostrap visual css basically. What would be the best ...
0
votes
1answer
357 views

Admin toolbar not displaying correctly in custom theme using bootstrap

I've created custom Drupal 8 theme using bootstrap. Everything is fine except admin toolbar. Toolbar is displaying correctly in backend but in frontend is only displays the "Manage,shortcuts, admin" ...
0
votes
1answer
29 views

Is drupal bootstrap phases will be called for each page request or its only once on site load?

All drupal bootstrap phases will be called on each page load or only one time when site will load.
1
vote
0answers
78 views

How to boostrap Drush from within an update hook?

I have a drush command I am using to convert field_collection to multifield. /** * Convert Field Collection to Multifield. */ function mvpd_update_7018() { module_load_include('inc', 'multifield'...
1
vote
1answer
88 views

Script exits on drupal_bootstrap_full when run from system cron

I have a script that imports data into custom entities created in a drupal 7 database. It needs to run daily so i've added it to my system crontab (running CentOS 6.7). The problem i am having is that ...
2
votes
1answer
867 views

How do I check the current user session?

In Drupal 7, I was able to use bootstrap.inc in an external PHP script, which was a custom set of pages that simply bootstrapped Drupal to check the user was logged in Drupal. The following code is a ...
0
votes
1answer
106 views

pathauto_clean_string and accents from a bootstrap PHP file

I have a single PHP file which makes a bootstrap of Drupal 7. The code is below. When I try to use pathauto_clean_string in a spanish string with accents (á é ... , etc.) it deletes the character ...
1
vote
1answer
147 views

How to load aggregated styles / js in an 'external' script via DRUPAL_BOOTSTRAP_FULL?

I have an external script / php application that I now have to implement into a running D7 site. So far DRUPAL_BOOTSTRAP_FULL seems to do the job just fine – I can read the session, check the user etc....
1
vote
1answer
125 views

Is it possible to have an external script run index.php that bootstraps Drupal?

It seems like such a simple question, and I apologize for my Drupal ignorance, but I am unable to get our Drupal contractors to accomplish what seems to be a simple request. I need the below script ...
0
votes
2answers
292 views

Hide Block on Particular Page with Bootstrap

I have a block called 'calendar' that I display on all events pages. events* such as events/today/, events/all/ etc. A constraint that I have is that the block must be displayed on all events pages ...
2
votes
2answers
107 views

Drupal as a RestAPI

I have been using Drupal for a while to build medium to large CMS systems; love it. From time to time I have to build a RestAPI. Usually I use either Laravel, Lumen or Slim. The only reason why I ...
0
votes
1answer
195 views

How to bootstrap Drupal 8 and create nodes from within a PHP file?

Simply, I want to bootstrap D8 in such a manner that would allow me to create nodes from a custom PHP file. Any ideas how to achieve that? Thanks.
0
votes
1answer
901 views

Change appearance of search form [closed]

I want to change the appearance of the Drupal 7 search form. I used this code in my preprocess-html.inc file for my Omega subtheme. It didn't work. How do I assign html classes to divs within the ...
-2
votes
1answer
132 views

Is this way safe to bootstrap Drupal from an external PHP script? [duplicate]

I want to bootstrap Drupal from an external PHP file located in Drupal's root directory. The following code will do the job. error_reporting(E_ALL); ini_set("display_errors", 1); define('DRUPAL_ROOT',...
1
vote
0answers
21 views

How to fix this issue in drupal7 using windows [duplicate]

How to fix this issue ? Fatal error: require_once(): Failed opening required '/var/www/.../includes/sites/all/modules/entity/includes/entity.inc' (include_path='.:') in /var/www/.../includes/...
0
votes
0answers
126 views

Unable to get bootstrap working for IE8 on custom theme

I'm attempting to get bootstrap to work for a custom theme. It works fine in everything except for IE8. The page in question has the following content <div class="container"> <div class=...
0
votes
0answers
89 views

Moved Drupal site trying to load old directory

I've been building a Drupal site in a subdomain/directory called "new". I've now gone to move the site to the root, so it loads on www and the website will not load, instead giving the following error:...
2
votes
1answer
477 views

Error: Class 'Drupal' not found in bootstrap.inc

Please tell me what I'm doing wrong. I'm unable to run drush, see error below: [~/public_html/d8]# drush -d status Bootstrap to phase 0. [0.01 sec, 1.86 MB] [bootstrap] ...
1
vote
0answers
105 views

Redirect After Creating a Node - bootstrap.inc

I wanted to create a node from a standalone php file bootstrapping drupal. I printed out the form and it creates a node perfectly but it doesn't redirect to the created page or any other page for that-...
1
vote
1answer
38 views

Database corrupted getting the site crash

I crashed my website trying to secure it by changing files and folders modifications...After i tried many things (chmod 777 -temporarly- all to take it back, clear the cache, drush rr...) nothing ...
2
votes
4answers
981 views

“Class 'PHPMailer' not found in /home/mysite/www/sites/all/modules/phpmailer/includes/phpmailer.class.inc on line 12” [closed]

I tried to work on my security parameters on drupal... I went into the security page on drupal and chmod 664 the following folders: themes, modules, cache, site, profiles and include. Simultaneously, ...
1
vote
0answers
34 views

Layering a view on top another

I'm wondering is it possible to have a bootstrap views tab and within that tab content(images) with bootstrap views grid layout, therefore each tab would have images in grid layout.
2
votes
1answer
472 views

How to add margin between columns with Drupal Bootstrap View Grid [closed]

I need help I'm trying to add some margin between columns using drupal Views Bootstrap module the grid view but the columns are closed together. How can I add margin between columns. I have tried ...
2
votes
2answers
336 views

Avoid drupal bootstrap for each image styles in private filesystem

Consider a scenario, where large number of images are attached to a node and they are displayed as thumbnail gallery when that node is displayed/rendered. The node has access control so it displayed ...
0
votes
1answer
490 views

Adding class to nested UL in Drupal 7 menu

I'm creating my menu using view along with Bootstrap to create a mega menu style navigation. I'm having a problem with the nav showing expanded at times when you come to the site and or refresh. not ...
1
vote
0answers
1k views

Fatal error: require_once(): Failed opening required

I've seen other questions related to this require_once error but none seemed to have cleared the issue for me. I'm getting the error Fatal error: require_once(): Failed opening required '/var/www/...
8
votes
0answers
6k views

Drush : Missing $settings['hash_salt'] in settings.php [closed]

I just setup a new Drupal environment with Mamp. I can access my website just fine, but whenever I want to run drush cr I get the following error : exception 'RuntimeException' with message 'Missing $...
0
votes
2answers
378 views

Where I can find examples of Drupal bootstrap levels?

I recently came through some Drupal apps that I needed to send some silent Ajax requests that performs a database update, and nothing else. Every such requests bootstraps Drupal to its full level ...
0
votes
1answer
674 views

user_load() and EntityFieldQuery not found when running script via Drush

I'm trying to run a php script from the command line via Drush. When I tried to use EntityFieldQuery... $query = new EntityFieldQuery; I got the error: PHP Fatal error: Class 'EntityFieldQuery' ...
-3
votes
2answers
61 views

What are the implications of removing define('VERSION', '7.34'); from database.inc

I do not want to advertise what version of Drupal I am running. I want to remove the line: define('VERSION', '7.34'); What are the downsides to doing this other than the site not knowing it's own ...
2
votes
2answers
2k views

Drush command needs higher bootstrap level - Pantheon Drush Alias Setup

I just setup pantheon for one of my websites. So far I've done the following and the site works fine: Version Drush: 5.3 Local Dev: Ubuntu 12.04 Git clone the repo to my local desktop Copy the ...
0
votes
1answer
2k views

better exposed filters and bootstrap 3. Problems with alignment [closed]

I have Drupal 7 and the BEF to filter a view. My site is running the Drupal Bootstrap framework V3. The regular 'basic' theming for the exposed filters works, but I would like to use checkboxes and ...