After upgrading from rc2 to rc3, executing drush updb I got this message (also every time when doing drush status):

Initialized Drupal 8.0.0-rc3 root directory at /srv/www/tips-home/web [notice]
Initialized Drupal site default at sites/default [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_Eb7E5g --database=tips-home --host=localhost --silent < /tmp/drush_a5cwyC
Executing: mysql --defaults-extra-file=/tmp/drush_mJdqcA --database=tips-home --host=localhost --silent < /tmp/drush_sS01DV
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !fields FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !engine FormattableMarkup.php:240 [error]
Loading outputformat engine. [notice]
Drupal version : 8.0.0-rc3
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database port :
Database username : tips-home
Database name : tips-home
Drupal bootstrap : Successful
Drupal user :
Default theme : bartik
Administration theme : seven
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush script : /home/tipi/.composer/vendor/drush/drush/drush.php
Drush version : 8.0-dev
Drush temp directory : /tmp
Drush configuration :
Drush alias files : /srv/www/tips-home/web/sites/default/drush/tips-home.test.aliases.drushrc.php
Install profile : standard
Drupal root : /srv/www/tips-home/web
Site path : sites/default
File directory path : sites/default/files
Private file directory path : ../private
Temporary file directory path : /tmp

Command dispatch complete.

When checking Drupal the log messages there are error category messages saying:

User error: Invalid placeholder: !mess in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of /srv/www/tips-home/web/core/lib/Drupal/Component/Render/FormattableMarkup.php).
or
User error: Invalid placeholder: !hook in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of /srv/www/tips-home/web/core/lib/Drupal/Component/Render/FormattableMarkup.php).
or
User error: Invalid placeholder: !cid in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of /srv/www/tips-home/web/core/lib/Drupal/Component/Render/FormattableMarkup.php).

Comments

TipiT created an issue. See original summary.

imre.horjan’s picture

Same here

Haza’s picture

I just had that.
I've updated my Drush, and seems to work fine now.

Did you tried that t?

imre.horjan’s picture

Thanks, that seems to be the solution.
It's still not working here, however I've found a drush issue, which may solve, and seems to be merged already.
https://github.com/drush-ops/drush/pull/1740

imre.horjan’s picture

Status: Active » Closed (works as designed)
TipiT’s picture

Yes,

$ composer global update

Did it again! Thank you!

Yorgg’s picture

Hi
I have the very same issue, but despite drush breaks somewhere else, Drupal is showing me this.
I did composer global update( and drush updated to 6eea7d0, despite it seems to me at this point to be a separate issue, with different errors ) and I still see this in the main browser windows, no HTML.
Fatal error: Invalid placeholder: !message in /core/lib/Drupal/Component/Render/FormattableMarkup.php on line 240

imre.horjan’s picture

I think you got this one: https://www.drupal.org/node/2571953

aangel’s picture

Just got this with an upgrade from RC2 to RC3. In my case, Masquerade was using a placeholder. Uninstalling Masquerade removed the error.

aangel’s picture

Actually, Devel had the old ! placeholders as well. The latest dev version of Devel uses @'s instead of !'s.

If this comes up for anyone else and a module hasn't been updated, search the module code for the !-style placeholder in the error message and replace it with @-style.

There will be one or more instances within the string, like this:
'#description' => t('Display the language-independent machine names of the permissions in mouse-over hints on the !Permissions page and the module base file names on the !Permissions and !Modules pages.)"

And one in the arguments to substitute for the placeholders, like this:
array('@Permissions' => $this->l(t('Permissions'), Url::fromRoute('user.admin_permissions')), '!Permissions' => t('Permissions'), '!Modules' => $this->l(t('Modules'), Url::fromRoute('system.modules_list')))

Imaaxa-Cory’s picture

Issue is still present. I just installed the acquia Dev Desktop 2, fresh download of Drupal 8.0.0-rc4 and no contrib or custom modules.
After install of the site ran the Drush Status and got these errors.

Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !other FormattableMarkup.php:240 [error]
Invalid placeholder: !fields FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !type FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Invalid placeholder: !default FormattableMarkup.php:240 [error]
Drupal version : 8.0.0-rc4
Site URI. . .

Did an update on Drush, and got the same list of errors. I actually get a list of errors on all the Drush commands I run.

Where should I look to find out where theses errors are coming from or any ideas on how to fix.

jonasdk’s picture

Version: 8.0.0-rc3 » 8.0.0

It seems this is closes since it "works as designed" but the error is unusable since it doesn't identify where the violation is just that there somewhere in the code is a error.
Please reopen this as a bug. I does make drush pretty unusable since I now have to sort though 50+ similar errors to find the real issues.
I update it to 8.0 since it is still in there.

jonasdk’s picture

...and it also seems that it ruins other output

This is from a drush pm-update

Cache rebuild complete.                                                        [ok]
User error: Invalid placeholder: !hook in                                      [error]
Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of
core/lib/Drupal/Component/Render/FormattableMarkup.php).
Drupal\Component\Render\FormattableMarkup::placeholderFormat(&#039;Returned
from hook drush_cache_rebuild&#039;, Array)
Drupal\Core\StringTranslation\TranslatableMarkup-&gt;render()
Drupal\Core\StringTranslation\TranslatableMarkup-&gt;__toString()
Drupal\Component\Render\FormattableMarkup-&gt;jsonSerialize()
json_encode(Array)
drush_backend_packet(&#039;log&#039;, Array)
drush_log(Object, &#039;debug&#039;)
_drush_invoke_hooks(Array, Array)
drush_command()
call_user_func_array(&#039;drush_command&#039;, Array)
drush_dispatch(Array)
Drush\Boot\BaseBoot-&gt;bootstrap_and_dispatch()
drush_main()
imre.horjan’s picture

I think there's nothing to do with core, so this issue shouldn't be reopened.
There's a core change between RC2 & RC3, see: https://www.drupal.org/node/2575703
If you update drush to the latest version and disable all your contribs, the error message goes away.
Contribs need to be updated: !placeholders shouldn't be used any more.
https://www.drupal.org/node/2575819

jonasdk’s picture

But shouldn't there at least be a pointer to which contrib module is the problem rather than printing the same message 50+ times?
From a UX standpoint this isn't more helpful with many similar messages than one and a pointer to where the problem is rather than a pointer to which rule is violated.

imre.horjan’s picture

imre.horjan’s picture

mortendk’s picture

as a bonus i got this as well when i got up on 8.0 release

function vanilla_theme_suggestions_image_alter(array &$suggestions, array $variables) {
   // @TODO: we need to figure out who calls the image for different template suggestions
  $suggestions[] = 'image__' . $variables['element']['#bundle'];
}

the $variables['element'] made everything explode as its not there :/

anywas heres more info to go with as i rememeber what made my theme explode :)

candelas’s picture

I got this errors in a fresh Drupal 8 install and solved them updating Drush.

drupalninja99’s picture

Thanks @candelas. Updating drush via composer also fixed the issue for me.

gemalm’s picture

I was having this problem, and It was because I had the wrong PHP version in my hosting for drupal 8.

stevep’s picture

I'm still having this problem, after a fresh install with 8.0.1, and after updating drush, as below. The site runs without error.

pdo extensions enabled, php version = 5.5.30-1+deb.sury.org~trusty+1

Any suggestions?

Drupal version : 8.0.1
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database port : 3306
Database username : drupal8
Database name : drupal8
Drupal bootstrap : Successful
Drupal user :
Default theme : test_a
Administration theme : seven
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush script : /usr/share/drush7/drush.php
Drush version : 8.0-dev
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Install profile : standard
Drupal root : /var/www/drupal8.local/public_html
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /tmp

jonasdk’s picture

@stevep
I would try to uninstall drush and reinstall as described here http://docs.drush.org/en/master/install/

I can see that the install you have is something that you have upgraded from drush7.

I don't get this error anymore.

stevep’s picture

Thanks jonasdk

Prior to your reply, I purged and reinstalled php5 (and related modules), and that has resolved the errors.

All good now :)