SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    911
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    How do you find this bug?, unexpected $end.

    Hi guys,

    Currently I encountered this stupid bug. lol
    Code:
    Parse error: syntax error, unexpected $end in /home2/myonliq6/public_html/warren/application/modules/admin/controllers/admin.php on line 388
    And the complete codes for this, is the link below,
    http://pastebin.com/jehnjWGS

    The bug is very common, but I can't find it.
    Please help me find it. lol
    I Love coding...
    Don't click this link.

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,813
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    I don't get that error, did you pastebin the correct file?
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  3. #3
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    911
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Yes that's the correct file/codes.
    It's CI.
    I Love coding...
    Don't click this link.

  4. #4
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,813
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    Usually that refers to a missing closing } or ) (or a missing semi-colon). I'm not seeing any of those in your pastebin and when I put it in a file and created a empty MX_Controller class, it opened without any errors...
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  5. #5
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    911
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    @cpradio ;
    That's why it's called illusive bug. lol, just joking.
    Is it possible the bug show-up because sometimes my internet connection is slowing...?
    I Love coding...
    Don't click this link.

  6. #6
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,813
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by solidcodes View Post
    @cpradio ;
    That's why it's called illusive bug. lol, just joking.
    Is it possible the bug show-up because sometimes my internet connection is slowing...?
    Not sure how that'd be. PHP is server side so the execution across a slow connection shouldn't be the culprit (unless you are trying to access the file before it is uploaded to the remote server)

    Off Topic:

    I like illusive bugs. Gives me a challenge
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  7. #7
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,454
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    I took a quick look and didn't see any obvious problem. Are you sure the file that's throwing the error isn't corrupt? i.e. transfer was interrupted and so is only a partial file.

  8. #8
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    911
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    @Mittineague ;
    Yeah possible that was the culprit, corrupt file.
    Well the error is not showing anymore.
    I Love coding...
    Don't click this link.


Bookmarks

Posting Permissions

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