Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error choosing a blueprint on a new Form #1896

Closed
edalzell opened this issue Jun 4, 2020 · 6 comments
Closed

Error choosing a blueprint on a new Form #1896

edalzell opened this issue Jun 4, 2020 · 6 comments

Comments

@edalzell
Copy link
Contributor

edalzell commented Jun 4, 2020

Bug Description

When creating a form, on the screen after you create the handle I get the spinning wheel.

How to Reproduce

  1. Create a form
  2. Give it a handle
  3. Click Next
  4. Choose a blueprint from existing
  5. See spinning wheel

Extra Detail

[2020-06-05 00:04:29] local.ERROR: Trying to access array offset on value of type bool {"exception":"[object] (ErrorException(code: 0): Trying to access array offset on value of type bool at /Users/erin/Sites/addons/vendor/statamic/cms/src/Facades/Endpoint/URL.php:177)
[stacktrace]
#0 /Users/erin/Sites/addons/vendor/statamic/cms/src/Facades/Endpoint/URL.php(177): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Trying to acces...', '/Users/erin/Sit...', 177, Array)
#1 /Users/erin/Sites/addons/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Statamic\\Facades\\Endpoint\\URL->makeRelative('http://:/')
#2 /Users/erin/Sites/addons/vendor/statamic/cms/src/Routing/Routable.php(39): Illuminate\\Support\\Facades\\Facade::__callStatic('makeRelative', Array)
#3 /Users/erin/Sites/addons/vendor/statamic/cms/src/Data/AbstractAugmented.php(53): Statamic\\Entries\\Entry->url()
#4 /Users/erin/Sites/addons/vendor/statamic/cms/src/Data/AbstractAugmented.php(36): Statamic\\Data\\AbstractAugmented->get('url')
#5 /Users/erin/Sites/addons/vendor/statamic/cms/src/Data/HasAugmentedInstance.php(16): Statamic\\Data\\AbstractAugmented->select(Array)
#6 /Users/erin/Sites/addons/vendor/statamic/cms/src/Data/HasAugmentedInstance.php(21): Statamic\\Structures\\Page->toAugmentedCollection(NULL)
#7 /Users/erin/Sites/addons/vendor/statamic/cms/src/View/Cascade.php(134): Statamic\\Structures\\Page->toAugmentedArray()
#8 /Users/erin/Sites/addons/vendor/statamic/cms/src/View/Cascade.php(76): Statamic\\View\\Cascade->hydrateContent()
#9 /Users/erin/Sites/addons/vendor/statamic/cms/src/View/View.php(87): Statamic\\View\\Cascade->hydrate()
#10 /Users/erin/Sites/addons/vendor/statamic/cms/src/View/View.php(38): Statamic\\View\\View->cascade()
#11 /Users/erin/Sites/addons/vendor/statamic/cms/src/View/View.php(65): Statamic\\View\\View->gatherData()
#12 /Users/erin/Sites/addons/vendor/statamic/cms/src/Http/Responses/DataResponse.php(144): Statamic\\View\\View->render()
#13 /Users/erin/Sites/addons/vendor/statamic/cms/src/Http/Responses/DataResponse.php(45): Statamic\\Http\\Responses\\DataResponse->contents()
#14 /Users/erin/Sites/addons/vendor/statamic/cms/src/Structures/Page.php(289): Statamic\\Http\\Responses\\DataResponse->toResponse(Object(Illuminate\\Http\\Request))
#15 /Users/erin/Sites/addons/vendor/laravel/framework/src/Illuminate/Routing/Router.php(744): Statamic\\Structures\\Page->toResponse(Object(Illuminate\\Http\\Request))
#16 /Users/erin/Sites/addons/vendor/laravel/framework/src/Illuminate/Routing/Router.php(731): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#17 /Users/erin/Sites/addons/vendor/laravel/framework/src/Illuminate/Routing/Router.php(685): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#18 /Users/erin/Sites/addons/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))

Environment

Statamic version: 3.0.0-beta-29

PHP version: 7.4

Install method (choose one):

  • Fresh install from statamic/statamic
@jasonvarga
Copy link
Member

Full stack trace please

@jesseleite
Copy link
Member

  1. Create a form
  2. Give it a handle
  3. Click Next

Can't reproduce any error when doing this on latest beta 🤔

@edalzell edalzell closed this as completed Jun 4, 2020
@edalzell edalzell changed the title Error creating Form Error choosing a blueprint on a new Form Jun 5, 2020
@edalzell
Copy link
Contributor Author

edalzell commented Jun 5, 2020

@jesseleite found the step that failed, choosing a blueprint

@edalzell edalzell reopened this Jun 5, 2020
@edalzell
Copy link
Contributor Author

edalzell commented Jun 5, 2020

@jasonvarga added more of the stack

@Konafets
Copy link
Contributor

Konafets commented Jun 8, 2020

I am able to reproduce this as well.

Konafets added a commit to Konafets/cms that referenced this issue Jun 10, 2020
This PR takes the translations from statamic#1655 and accounts for the differences between high-german and swiss-german (e.g. ß -> ss).

Additionally it adds support for so far hardwired strings in Blade and VueJs.

It addresses the following issues from statamic#1697:

1. Link Existing Field or Fieldset
	- [X] Sorry, no matching options
	- [X] Button text 'Link'
	- [X] or
	- [X] Placeholder text 'eg. _hero'

2. Password Reset Mail\
   I could not test this because could not convince Statamic to show me the german version of the Forgot Password page and send the german version of the email. I added the translations as described here: https://github.com/laravel/docs/pull/4239/files
	- [X] Hello
	- [X] Regards
	- [ ] If you're having trouble -> Was not able to translate this.

3. Reset password error message
	- [ ] The password must be at least 8 characters.

4. Getting started widget
	- [x] Please remember ...

5. Permissions
	- [x] Title 'Create a Role'
	- [x] 'role' in Learn more about… (But actually there should be only one 'Learn more about…' button?)
	- [ ] No message helper text in the section 'Updates' (also in the en version) -> **String should be added by a maintainer**
	- [ ] No message helper text in the section 'User' (also in the en version) -> **String should be added by a maintainer**

6. Groups
	- [x] Title 'Create a User Group'
	- [x] 'User group updated' message

7. Forms (Blocked by statamic#1896)
	- [ ] Title 'Create a Form'
	- [x] Button 'Add Email'
	- [ ] Recipient (To)
	- [ ] Sender (From)
	- [ ] Subject
	- [ ] Template

8. Choose a blueprint (Blocked by statamic#1896)
	- [ ] 0/1 selected

9. Error message (i.e. when leave required fields blank or use spaces when creating a folder)
	- [x] The given data was invalid

10. Globals
	- [x] Title 'Create a Global Set'

11. Configure global set
	- [x] Content Model

12. Taxonomy
	- [x] Title 'Create a Taxonomy'

13. Collections/Navigations
	- [x] 'Parent' field in the sidebar

14. Revisions
	- [x] Publish -> Placeholder "Choose..."
	- [ ] Is it possible somehow to localize the date in the revision history?\
			  **Question**: It is possible to pass a format string to MomentJS. The question is where should that format be stored?
		- [ ] Site-wide in `.env`
		- [ ] Per user in the user settings
	- [x] Flag 'Publish', 'Unpublish' and 'Revision' in the revision history

15. If entries can contain links ...
	- [x] First Child
	- [x] Entry

16. Dropdowns are often too narrow for german words
	- These are styling issues

17. Sidebar
	- [x] 'Sidebar' in live preview
	- [x] 'Sidebar' in tab-title (when the screen size is too narrow to place the sidebar on the right side)

18. Live Preview
	- [x] 'Choose…' in Responsive Dropdown

19. Edit Blueprint
	- [x] 'Main' Section
	- [x] 'linked fieldset'

20. Add fieldtype
	- [x] Text
	- [x] Media
	- [x] Relationship
	- [x] Structured
	- [x] Special
	- [x] Pickable
	- [x] All fieldtype names

21. Fieldtype: Conditions\
	Did not address these, because I did not got the consequences when translating these. Will investigate this and might add this to an own PR.
	- [ ] equals
	- [ ] not
	- [ ] contains
	- [ ] contains_any
	- [ ] custom

22. Fieldtype: Validation
	- [x] Add rule

23. Fieldtype: Array
	- [x] Label (Optional)

24. Fieldtype: Date
	- [x] Single
	- [x] Multiple
	- [x] Range

25. Fieldtype: Link
	- [x] First Child
	- [x] Entry
@edalzell
Copy link
Contributor Author

I think this is related to #1903 and #1914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants