PHP/html page does not load completely (no error)

Discussion in 'General' started by Rodrigo Kulb, Feb 4, 2025.

Tags:
  1. Rodrigo Kulb

    Rodrigo Kulb New Member

    I'm migrating to Ubuntu 24.04.1 LTS and I don't know why, but sometimes PHP pages stop loading in a certain part. The funny thing is that when I create a blank line above where it stopped, it starts working again. It seems that there is a specific number of characters that break when there is PHP code in that place. It doesn't generate any error log, it just stops loading the page. The difficult part is that the content is dynamic and in some situations the page stops. So it has nothing to do with the size of the PHP page, but with the size of the page with dynamic content. I'm thinking that it might be something in Apache2. Has anyone experienced this?

    Apache/2.4.58

    PHP 7.3

    This way it doesn't block the loading, I don't understand what the relationship is.
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
    display_errors = On
    log_errors = Off

    With this configuration the page crashes on loading, without errors.
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    display_errors = Off
    log_errors = On
     
    Last edited: Feb 4, 2025
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you examined the problematic file with hex dump or octal dump? For example with command od.
     
    Rodrigo Kulb likes this.
  3. Rodrigo Kulb

    Rodrigo Kulb New Member

    Hi Teleman, just disabling the NOTICE error solved it and it didn't happen again.

    When I have more time I'll try to go back and find the problem, because I believe it's something with PHP. I had the same problem using a raspberry without ISPCONFIG.


    Temporary solution in php.ini:
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
    display_errors = On
    log_errors = Off
     
    Last edited: Feb 11, 2025
    till and Turgut Kalfaoglu like this.

Share This Page