Results 1 to 7 of 7

Thread: Parse error: syntax error, unexpected

  1. #1
    Join Date
    Jan 2008
    Posts
    12

    Exclamation Parse error: syntax error, unexpected

    I was Updating the Category Prices and my site went down.

    Parse error: syntax error, unexpected ';' in /home/public_html/application.php on line 109
    Last edited by eltony; 01-27-2008 at 08:23 AM.

  2. #2
    Join Date
    Jan 2008
    Posts
    12

    Thumbs down I don't know if it's a Bug

    I don't know if it's a Bug., But I am going to share it. So if anybody alse gets this...
    I was Updating the Category Prices on the Admin Panel> Option > Setup

    and my whole site went down with the following error

    Parse error: syntax error, unexpected ';' in /home/public_html/application.php on line 109

    after I left the
    Additional categories pricing factor blank

    application.php on line 109
    $additional_category_price = ;
    Last edited by eltony; 01-27-2008 at 08:22 AM.

  3. #3
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Set to 1
    Code:
    $additional_category_price = 1;

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Not a bug, it is an input error. Moved to appropriate forum.

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Does 1 increase the amount of the Sponsored / Premium Listing by an additional dollar if they choose mutliple categories?? I've set one of my other directories to 0 so the Sponsored and Premium listings wont increase in price based upon categories...

    I think the important part is that there is definiately a numerical value in there.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Yes there must be a value there, if left blank this will cause an error. This has been posted about on the forum and on my blog previously.

    Of course the ability to leave this blank may be called a bug, but removing the value isn't a bug, it's a user input issue. There should be a default value (stored in the database) in case it is changed to be blank.

  7. #7
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You set 1, then if the submitter select additional category, the price will be increased.
    Last edited by dody; 01-27-2008 at 08:59 PM.

Similar Threads

  1. Parse error
    By prof in forum v5.x
    Replies: 0
    Last Post: 07-29-2006, 04:52 AM
  2. Replies: 2
    Last Post: 11-28-2005, 12:47 AM
  3. Fatal Error: Incorrect document syntax
    By mycolumbus in forum Extreme Dmoz Extractor - dmoz.org xml parser
    Replies: 2
    Last Post: 09-10-2005, 09:00 AM
  4. Dmoz Extractor - Error [Fatal] Doc Syntax
    By brickholius in forum v5.x
    Replies: 1
    Last Post: 10-27-2004, 12:29 AM
  5. Replies: 3
    Last Post: 06-11-2003, 10:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •