Solved
nicktan

Jan 2nd, 2025 11:47 PM

I recently installed Wave 3, so far everything was great, but when deployed to server these debug LINE code came out. te.jpg

I have no idea where to disable or did I do anything wrong?

bobbyiliev

Jan 3rd, 2025 12:50 AM

Hi there,

I've not seen this on my end. Can you share a bit more information on your exact setup?

  • Have you tried to clear the Laravel cache?

    php artisan optimize:clear
    
  • Have you made any changes that could be causing this?

  • On which page exactly does it happen?

  • How exactly did you install Wave?

- Bobby

stanmenten

Jan 4th, 2025 11:26 AM

Ran into the same issue a few times. Running optimize:clear or view:clear solves it :)

Report
1
bobbyiliev

Jan 4th, 2025 11:43 AM

Awesome! Happy to hear that!

nicktan

Jan 5th, 2025 04:00 PM

@bobbyiliev Is there a possibility there is some kind of debug tools maybe that causes it? Like what @stanmenten also encounter similar issue, I'm not able to reproduce this issue, because it comes and go randomly.

@stanmenten Thanks! Sometimes it works, sometimes it doesn't, not sure why though.

bobbyiliev

Jan 6th, 2025 12:00 AM

Best Answer

Hi there,

Happy to hear that this worked now.

I've not personally seen this before, but as far as I can see after some googling, those line number indicators (|---LINE:345---| and |---LINE:359---| etc.) typically appear in Laravel Blade views when there's an error in template compilation or when there's a mismatch in Blade directive nesting (like @if, @foreach, @section, etc.).

  1. Mismatched Blade directives - You might have:

    • An @if without a matching @endif
    • An extra @endif without a matching @if
    • A @foreach without @endforeach
  2. Mismatched HTML tags - The number of opening and closing div tags don't match up

You can also temporarily add comments near your @if statements to help track their corresponding @endif:

@if($condition) {{-- start main if --}}
    @if($nested) {{-- start nested if --}}
    @endif {{-- end nested if --}}
@endif {{-- end main if --}}

If you are using VS Code the new Laravel VS Code extension might be helpful to verify if this is the case.

- Bobby