orchidsoftware / orchidsoftware/platform

[Reusing Layouts][BUG] Illegal offset type in isset or empty

Open
#2,665 5 comments 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Jul 10, 2023.

Errors
Dominant language
PHP
Stars
4.8k
Forks
663
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Describe the bug
After updating a project from version 13 to 14, all editing screens simply stopped working, with the error "Illegal offset type in isset or empty", from what I understand, it seems that the model defined in the query is not passing for layout components.

I created a components Reusing Layouts, and when using it on a page, it seems that it doesn't receive the query values ​​from the main PageScreen.

To Reproduce
Steps to reproduce the behavior:

  1. Create Reusing Layouts
  2. Include in fuction layout() in page Screen
  3. Access in browser.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Captura de Tela 2023-07-10 às 10 54 41

Captura de Tela 2023-07-10 às 10 55 09

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version [e.g. 22]

Server (please complete the following information):

  • Platfrom Version: 14.5.0
  • Laravel Version: 10.14.1
  • PHP Version: 8.2
  • Database: MySql
  • Database Version: 8.0.27

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.