Error topic met oplossingen.

Gestart doorSmiegles7 reacties133 weergaven

8 berichten · pagina 1 van 1

Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dag gebruikers.
op one2xs in de webwereld word vraag om hulp gevraagd inverband met een Error.
Daarom dacht ik...
ik maak 1 topic en zet daar alle errors in die ik weet of ga uitvinden om in dit topic te zetten
Hier alvast een paar fouten die vaak gemaakt worden.

Parse error: syntax error, unexpected $end in /home/*/domains/*/public_html/one2xs/index.php on line 5


Deze error komt meestal door ook on afgesloten {
voorbeeld.

[COLOR= #0000BB]<?php
$rang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rang[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];[/COLOR]
?>


moet zijn

[COLOR= #0000BB]<?php
$rang[/COLOR] [COLOR= #007700]=[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rang[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];
}[/COLOR]
?>


Volgende error

Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/*/domains/*/public_html/one2xs/index.php on line 2


dit kan komen door een div die verkeerd geEchod word.
hij word dan verkeer geechod omdat je 2x " " gebruikt

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<div id="[/COLOR]error[COLOR= #DD0000]">"[/COLOR][COLOR= #007700];[/COLOR]
?>


moet dus zijn.

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div id="error">[/COLOR][COLOR= #007700];[/COLOR]
?>


Warning: Unexpected character in input:  (ASCII=39) state=1 in /home/*/domains/*/public_html/one2xs/index.php on line 2


Deze error komt door een vergeten
voorbeeld.

[COLOR= #0000BB]<?php
$rang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR]id[COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rang[/COLOR][COLOR= #007700];[/COLOR]
?>


in rij 2 zie je.

[COLOR= #0000BB]<?php
$rang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR]id[COLOR= #007700]];[/COLOR]
?>


de error zit bij de ID daar moet nog een komma naast.

[COLOR= #0000BB]<?php
$rang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR]
?>
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lol ga je dit voor alle errors doen?
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kyron schreef:
Lol ga je dit voor alle errors doen?
lijkt me niet xD
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/*/domains/*/public_html/one2xs/index.php on line 2


- Dat is bij mij meestal als ik een ; over het hoofd heb gezien..?
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Fassdfds schreef:
Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/*/domains/*/public_html/one2xs/index.php on line 2
- Dat is bij mij meestal als ik een ; over het hoofd heb gezien..?

ow dat zou best kunnenyummie
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb deze error :

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*/domains/*/public_html/pagina/handel.php on line 21
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
laat line 20 en 21 eens zien?
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet je wat leuk is? ALLE errors staan al op google, voer de error daar in en je hebt de oplossing. Als ze daar al te lui voor zijn, waarom zouden ze dan hier komen kijken? Onnodig topic.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren