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

Log viewer not working error logging specific array value #14

Open
Julius151 opened this issue Nov 12, 2023 · 3 comments
Open

Log viewer not working error logging specific array value #14

Julius151 opened this issue Nov 12, 2023 · 3 comments

Comments

@Julius151
Copy link

Julius151 commented Nov 12, 2023

Whenever I use error_log to view the value of a specific variable I get this error message in the console:

[Vue warn]: Invalid prop: type check failed for prop "value". Expected Array, Object, got String with value "".

found in

---> <MdTable>
       <Root> [vue@2.6.11:634:17](https://unpkg.com/vue@2.6.11)
    warn https://unpkg.com/vue@2.6.11:634
    assertProp https://unpkg.com/vue@2.6.11:1714
    validateProp https://unpkg.com/vue@2.6.11:1641
    updateChildComponent https://unpkg.com/vue@2.6.11:4148
    prepatch https://unpkg.com/vue@2.6.11:3132
    patchVnode https://unpkg.com/vue@2.6.11:6303
    updateChildren https://unpkg.com/vue@2.6.11:6188
    patchVnode https://unpkg.com/vue@2.6.11:6314
    patch https://unpkg.com/vue@2.6.11:6475
    _update https://unpkg.com/vue@2.6.11:3949
    updateComponent https://unpkg.com/vue@2.6.11:4067
    get https://unpkg.com/vue@2.6.11:4478
    run https://unpkg.com/vue@2.6.11:4553
    flushSchedulerQueue https://unpkg.com/vue@2.6.11:4311
    nextTick https://unpkg.com/vue@2.6.11:1989
    flushCallbacks https://unpkg.com/vue@2.6.11:1915

and:

Uncaught (in promise) TypeError: this.rowsDisplay.sort is not a function
    setNewData http://localhost/php-error-log-viewer-master/:142
    getLog http://localhost/php-error-log-viewer-master/:145

How can I prevent this?

@schuhwerk
Copy link
Owner

schuhwerk commented Nov 12, 2023 via email

@Julius151
Copy link
Author

Julius151 commented Nov 12, 2023

Thank you for the quick reply.

It's basically just an array I created with a class method:

[12-Nov-2023 06:27:29 UTC] ### - options - ###
[12-Nov-2023 06:27:29 UTC] Array
(
    [0] => Getränke
    [1] => Snacks
    [2] => Alkohol
)

schuhwerk added a commit that referenced this issue Jul 22, 2024
@schuhwerk
Copy link
Owner

Time flies.. I found some time to dig today. I couldn't reproduce the issue.
I added a test to check if parsing runs fine with your example. Had no problems. Also the frontend looks fine for me with your example.
If you find time, you could inspect network (explained here).

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

2 participants