PHP bestand op correctheid controleren

1773565483027.png
Bericht automatisch samengevoegd:

geen van de bestanden kan ik hier toevoegen
Bericht automatisch samengevoegd:

deze kan ik hier niet uploaden
 
Je recente regels van de error_log zijn altijd interessant.
 
104.210.140.135 - - [15/Mar/2026:02:26:36 +0100] "GET /robots.txt HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36; compatible; OAI-SearchBot/1.0; +https://openai.com/searchbot"
192.36.109.89 - - [15/Mar/2026:02:43:11 +0100] "GET / HTTP/1.1" 301 162 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604"
34.206.76.135 - - [15/Mar/2026:03:56:28 +0100] "GET / HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0"
 
Dat is je access_log. Het gaat om de error log, waar foutmeldingen instaan.

Logs van bezoekers zijn niet boeiend.
 
[Sun Mar 15 05:36:16.350741 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 05:36:16.351486 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 05:41:21.855217 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 05:41:21.855798 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 08:40:13.761162 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 08:40:13.762307 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
 
Is dit het laatste in die log? Ik zie hier geen vreemde PHP foutmeldingen.
 
er is nog een zip map maar die kan ik hier niet uploaden, wordt althans niet geaccepteerd
Bericht automatisch samengevoegd:

[Sat Mar 14 05:06:36.429326 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sat Mar 14 05:06:36.430195 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sat Mar 14 05:36:14.560607 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sat Mar 14 05:36:14.561857 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sat Mar 14 08:50:16.669108 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sat Mar 14 08:50:16.670168 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sat Mar 14 09:37:33.544566 2026] [lsapi:error] [pid 3619964:tid 140111933060864] [client 2a05:1500:702:5:1c00:c4ff:fe00:26fc:0] [host veenendaalsebridgevereniging.nl] Backend fatal error: PHP Parse error: Unmatched '}' in /var/www/vhosts/veenendaalsebridgevereniging.nl/httpdocs/wp-content/themes/astra/functions.php on line 3612\n
[Sat Mar 14 10:35:42.777312 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sat Mar 14 10:35:42.778242 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sat Mar 14 13:06:15.109765 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sat Mar 14 13:06:15.110686 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sat Mar 14 17:35:35.758144 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sat Mar 14 17:35:35.759154 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 01:30:49.424839 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 01:30:49.426037 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 01:35:54.015467 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 01:35:54.016032 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 02:00:18.298394 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 02:00:18.299483 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 03:44:38.644505 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 03:44:38.645632 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 04:00:16.302824 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 04:00:16.304133 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
[Sun Mar 15 04:00:25.455003 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=veenendaalsebridgevereniging.nl / issuer: CN=R13,O=Let's Encrypt,C=US / serial: 051E76F85D64EA79931C1C30C818C001757E / notbefore: Feb 24 08:36:55 2026 GMT / notafter: May 25 08:36:54 2026 GMT]
[Sun Mar 15 04:00:25.455021 2026] [ssl:error] [pid 5083:tid 140113778663104] AH02604: Unable to configure certificate veenendaalsebridgevereniging.nl:443:0 for stapling
Bericht automatisch samengevoegd:

deze dus
 
Ik zie geen PHP-fouten. We moeten dan toch echt het probleem met onze ogen zien.

Met tools in de browser wordt vaak veel duidelijk. Denk aan AJAX-requests.
 
moet nu helaas met mijn kleinkinderen op stap, vanmiddag/avond maar weer verder

probleem:
 
Als je een praktisch voorbeeld kan tonen, zou dat makkelijk zijn. Een filmpje kan evt ook, maar bij voorkeur lijkt een werkbaar praktisch voorbeeld het beste.
 
Wacht.... Ik bespeur toch een PHP-error:

Code:
[Sat Mar 14 09:37:33.544566 2026] [lsapi:error] [pid 3619964:tid 140111933060864] [client 2a05:1500:702:5:1c00:c4ff:fe00:26fc:0] [host veenendaalsebridgevereniging.nl] Backend fatal error: PHP Parse error: Unmatched '}' in /var/www/vhosts/veenendaalsebridgevereniging.nl/httpdocs/wp-content/themes/astra/functions.php on line 3612\n

Bljkbaar een } teveel of op de foute plek. Maar blijkbaar is dit een andere versie dan je eerst deelde? Want mijn PHP zag hem niet.

Oplossing is om de aanpassing even terug te draaien. Geen idee wat je precies gewijzigd hebt. Want in beide gedeelde functions-bestanden ging het goed.
 
Ik weet ook niet meer welke stukjes AI code ik er aan heb geplakt.
Zonder aanplak krijg ik deze ouput:


Je ziet het volgende omdat WP_DEBUG en WP_DEBUG_DISPLAY zijn ingeschakeld op deze site. Schakel deze uit om de weergave van deze ontwikkelaars' debug berichten te voorkomen.

  • Post type is.
  • Post type is.
  • page
  • Is supported post type?
  • Is supported post type?
  • false
  • Is auto insert for post types?
  • Is auto insert for post types?
  • false
  • Not supported post type and do not auto insert TOC.
  • Not supported post type and do not auto insert TOC.
  • false
  • The `the_content` filter applied.
  • true
  • Post eligible.
  • false
 
Beste is om alle wijzigingen terug te draaien zoals het was. En met een fatsoenlijke editor de code weer aanbrengen. Of gooi heel je functions.php aan AI, laat het fixxen, backup het oude bestand, en plaats de nieuwe.
 
Ik maak steeds back-ups, dat is het probleem niet. Maar de debugs zijn niet schokkend begrijp ik?
 
Nee, enkel die 'Parse Error', die ik al noemde.
 
Terug
Bovenaan Onderaan