Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Why I am getting Uncaught InvalidArgumentException error


Go to End


5 Posts   2333 Views

Avatar
VPull

Community Member, 58 Posts

2 June 2015 at 11:23pm

I made some changes in 'SIMPLE' theme template file and I am started getting

[User Error] Uncaught InvalidArgumentException: Unable to parse string: Malformed inline YAML string ({count} {class} saved successfully.).

I am not able to locate where is the actual problem is. Please help me to resolve this issue
here is screenshot of my error page

Attached Files
Avatar
UncleCheese

Forum Moderator, 4102 Posts

3 June 2015 at 12:11am

It's a YAML parse error. Did you make any changes to the yaml files in _config/?

Avatar
VPull

Community Member, 58 Posts

3 June 2015 at 12:23am

Edited: 03/06/2015 12:25am

No, here is my current code in _config/config.yml

---
Name: mysite
After:
  - 'framework/*'
  - 'cms/*'
---
# YAML configuration for SilverStripe
# See http://doc.silverstripe.org/framework/en/topics/configuration
# Caution: Indentation through two spaces, not tabs
SSViewer:
  theme: 'simple'

is there any thing related to 'gridfield-bulk-editing-tools'

Avatar
UncleCheese

Forum Moderator, 4102 Posts

3 June 2015 at 12:28am

Yes. There's was at one time a bug in that module. It contained an invalid YAML string. Ensure that the lang/en.yaml file in there looks like this: https://github.com/colymba/GridFieldBulkEditingTools/blob/master/lang/en.yml

e.g. the string needs to be escaped with quotes.

## Good:
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'

## Bad:
SAVE_RESULT_TEXT: {count} {class} saved successfully.

Avatar
VPull

Community Member, 58 Posts

3 June 2015 at 4:46pm

Yes, now it's work... thanks UncleCheese