>>  Site Map >>  Forums >>  PHP-Nuke Newbie FAQ's

Forum module - topics in forum:



PHP-Nuke Newbie FAQ's - <font color=red>Within this forum are a selection of faq's, unlike our common problems forum these are aimed at the newbie.</font>



[FAQ] What is a "parse error"?

Sometimes you will encounter an error in your site building and part of the error will include the words "parse error". Unless this is one of the common errors found in the Common Errors forums, it is worthwhile understanding what is happening.

A parse error usually relates to incomplete coding. Within php coding, like all other coding, you will find brackets, either {} or () which are known as a paranthesis. Withing these brackets, you have what is known as a variable. This variable is often excecutable - makes something work!

If the coding is incomplete or missing a paranthesis, this is known as a parse error. The correct definition is:

Quote: :
Parse error
An error encountered during parsing of an input stream due to invalid syntax.


If you have an uncommon error you will find phpNuke tells you at which line of code the error has occured.

e.g parse error line 286 /config.php

If this occurs, open the named file - here config.php, and copy it to a text editor of html web design program. Please copy it to the coding area and not on a page for designing. A button in a program like Dreamweaver is labelled "<>", and click this will bring up the area to add html coding and each line is numbered. Delete and HTML text in there and then paste the complete file containg the error into it. Scroll down to the line quoted - here 286 - and look at the code. Even the inexperienced can sometimes find a missing paranthesis.

If you really cannot find the error yourself, then copy from about 5-6 lines of code above and below the line calling the error - remember to include the line wiith the error! Paste the code into a post on Nukies and ask for assistance.

DO NOT play with coding you do not understand - it could cause you a whole lot of trouble!




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS