Monkuar Posted February 28, 2012 Share Posted February 28, 2012 Fatal error: Cannot redeclare parse_message() (previously declared in C:\wamp\www\include\parser.php:5) in C:\wamp\www\include\parser.php on line 155 line 155: } all it is is a } How in the world? this just happended line 5 is function parse_message($text) Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/ Share on other sites More sharing options...
scootstah Posted February 28, 2012 Share Posted February 28, 2012 Can you post the rest of the code? Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/#findComment-1321910 Share on other sites More sharing options...
Monkuar Posted February 28, 2012 Author Share Posted February 28, 2012 Can you post the rest of the code? http://pastebin.com/X1gekzQ1 that's the function i literally havn't touched anything and this error pops up rofl this is so weird! everything has been working just fine Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/#findComment-1321911 Share on other sites More sharing options...
PFMaBiSmAd Posted February 28, 2012 Share Posted February 28, 2012 That line with the } is the point where the re-definition is detected at. Your problem is you are redeclaring the function, either because the definition is inside of a loop or you are including the file, where the definition is at, multiple times. Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/#findComment-1321912 Share on other sites More sharing options...
Monkuar Posted February 28, 2012 Author Share Posted February 28, 2012 That line with the } is the point where the re-definition is detected at. Your problem is you are redeclaring the function, either because the definition is inside of a loop or you are including the file, where the definition is at, multiple times. Im not using parse_message function anywhere in my s.php (Where error is being called) ? Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/#findComment-1321913 Share on other sites More sharing options...
blacknight Posted February 28, 2012 Share Posted February 28, 2012 C:\wamp\www\include\parser.php im guessing has the parse_message function in it which is what you gave us in the pastbin file id like to see the s.php you may be redeclaring it and not relised it.... Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/#findComment-1321915 Share on other sites More sharing options...
Monkuar Posted February 28, 2012 Author Share Posted February 28, 2012 wow holy tits i had 2x require PUN_ROOT.'include/parser.php'; didn't know it would make a error learned my lesson! solved!1 Quote Link to comment https://forums.phpfreaks.com/topic/257903-error-gives-no-line/#findComment-1321916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.