The error here was
'Use of undefined constant site_name - assumed 'site_name' in include_once'
All I needed to do was to add quotes around my array element.
$conf[site_name]
to
$conf["site_name"]
Thursday, 31 March 2016
Monday, 21 March 2016
Drupal 7 - Mac Os - Mamp Fatal error: require_once(): Failed opening required ‘*’ (include_path='.:/Applications/MAMP/bin/php/php5.5.22/lib/php') in *includes/bootstrap.inc on line 3211
I needed to rebuild the registry and had a 'Bus 10' error with the 'Registry Rebuild' that's listed in modules.
To solve this on index.php add at the bottom
registry_rebuild();
This is fine for fixing on local but if you're doing this on local but if you need to do it on a server a much better solution is to use the module https://www.drupal.org/project/registry_rebuild
And then
To fix this I had to install the Video Embed Field Module and enable from drush.
To solve this on index.php add at the bottom
registry_rebuild();
This is fine for fixing on local but if you're doing this on local but if you need to do it on a server a much better solution is to use the module https://www.drupal.org/project/registry_rebuild
And then
Just as a foot note I also got this message$ drush registry-rebuild
Fatal error: Call to undefined function video_embed_field_property_info_callback() in */profiles/commons/modules/contrib/entity/modules/field.info.inc on line 30
To fix this I had to install the Video Embed Field Module and enable from drush.
Friday, 18 March 2016
Acquia Offending RSA key in */.ssh/known_hosts:5 Message
When trying to run a drush command I got the following error.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
*
Please contact your system administrator.
Add correct host key in *.ssh/known_hosts to get rid of this message.
Offending RSA key in *.ssh/known_hosts:5
RSA host key for * has changed and you have requested strict checking.
Host key verification failed.
More than likely it's just been a change on the server and nothing to panic about.
If you remove the file ‘known_hosts’ from >Users>you>.ssh folder , the next time you run a command you'll get to choose whether to add to your know host list .
Tuesday, 15 March 2016
Drupal 7 webform output country name instead of country code in webform country list
Drupal 7 webform output county name webform country list
What I have is the Country Codes being sent in emails where I want the country names. This is using the module 'Webform Country List'
I feel like I should have been able to solve this with the module https://www.drupal.org/search/site/address%20field%20token but couldn't get that to work. If anyone knows how this is done then please let me know.
So I've created a module that will do this for you and can be found at Drupal 7 Webform Country Token Names
The code in this module is reliant on the fact the fieldname is 'country' - if it isn't you'll either need to change the field name or customise this code.
The code in this module is reliant on the fact the fieldname is 'country' - if it isn't you'll either need to change the field name or customise this code.
How to turn on the Search ( Module Filter ) on the Module Page.
I'd made a hand full of searches and not been able to find the answer I wanted. - like
drupal 7 turn on module search
drupal 7 search module not working
What I needed to search for though was 'drupal 7 module filter '
What I needed to search for though was 'drupal 7 module filter '
Either install from https://www.drupal.org/search/site/module%20filter or like I did enable on the Modules page.
Thursday, 10 March 2016
Mac Os Mavericks : How to download file without wget .
On a recent tutorial I was asked to install PHP Unit with wget. To which I got this message
'-bash: wget: command not found'
Rather than installing this you can use 'curl' . Here's the commands I used.
'curl https://phar.phpunit.de/phpunit.phar -o phpunit.phar'
And then followed the next instructions the same as after 'wget'
'-bash: wget: command not found'
Rather than installing this you can use 'curl' . Here's the commands I used.
'curl https://phar.phpunit.de/phpunit.phar -o phpunit.phar'
And then followed the next instructions the same as after 'wget'
'chmod +x phpunit.phar'
'mv phpunit.phar /usr/local/bin/phpunit'
Monday, 7 March 2016
Some notes for Github Basics by Treehouse Course - commands for setting up profile, pages and joining other projects
How to create Personal pages.
git status
git add .
git commit -m “initial commit”
git remote add origin https://github.com/deejayM/djmillward.github.io.git
git push origin master
How to create Site pages
git checkout -b gh-pages
git add .
git commit -m “Initial commit”
git remote add origin https://github.com/realkdaigle/simple-todo.git
git push origin origin gh-pages
How to fix a Bug on .
> In a git repository we’d need to make a ‘Fork’ in the repository
> first get a copy of the fork repository on your local environment.
> git clone REMOTESITEADDRESS
> the cd into the folder that’s just been created.
> git checkout -b fix-treehouse-bug
> now to fix the bug . lets open the file using vim
‘vim start.rb’
> Fix issue
> save file
> ‘git add .’
> Add commit message
> git push origin fix-treehouse-bug’
> Now we’ll need to make that Pull request.
> hit the ‘Compare and Pull Request’ button.
> Dev forks creates a branch and then submits a Pull request.
> include unit tests
Subscribe to:
Posts (Atom)