BoltZ Posted November 22, 2008 Share Posted November 22, 2008 Hey I tried putting this at the top of my page <?php error_reporting(0); ?> To try and disable any error reportings on my site www.devwebsites.com because sometimes it has this error Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/ericr/public_html/community/SSI.php on line 166 I don't want that to appear. How do I do this? Quote Link to comment Share on other sites More sharing options...
corbin Posted November 22, 2008 Share Posted November 22, 2008 You could... fix it? Also, instead of disabling error reporting, it might be more useful to set them to not show. ini_set('display_errors', '0'); Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 22, 2008 Author Share Posted November 22, 2008 <?php error_reporting(0); ini_set('display_errors', '0'); ?> This still displays errors in chrome and opera . Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 22, 2008 Author Share Posted November 22, 2008 Any help? Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted November 22, 2008 Share Posted November 22, 2008 This still displays errors in chrome and opera.PHP can't show errors in some browsers and not in others... not unless you deliberately chose to do so by testing USER_AGENT Quote Link to comment Share on other sites More sharing options...
revraz Posted November 22, 2008 Share Posted November 22, 2008 This looks like a custom scripted error, not generated by the PHP Engine Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/ericr/public_html/community/SSI.php on line 166 Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 22, 2008 Share Posted November 22, 2008 SSI.php? That sounds SMFish... And there's a setting in server settings in SMF related to both sessions and SSI.php. "Cross domain sessions" or something like this... Can't recall exactly. Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 22, 2008 Author Share Posted November 22, 2008 It is from SMF and for some reason its not showing up in FF at least for me, but in chrome and opera it is showing up. Why can't i turn off errors Quote Link to comment Share on other sites More sharing options...
corbin Posted November 22, 2008 Share Posted November 22, 2008 This looks like a custom scripted error, not generated by the PHP Engine Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/ericr/public_html/community/SSI.php on line 166 He's probably right, which would be why php error settings don't affect it. Quote Link to comment Share on other sites More sharing options...
dropfaith Posted November 22, 2008 Share Posted November 22, 2008 its there in firefox for me Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 22, 2008 Author Share Posted November 22, 2008 Well how can I remove tthose errors then Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 22, 2008 Share Posted November 22, 2008 Check cookie settings in Admin>Server Settings>Feature Configuration "Enable local storage of cookies" should be disabled if you want to use SSI. I don't use SSI myself, so that's about all I can say. Quote Link to comment Share on other sites More sharing options...
revraz Posted November 22, 2008 Share Posted November 22, 2008 Post on the support forums for whatever this script is for. Well how can I remove tthose errors then Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 22, 2008 Author Share Posted November 22, 2008 Theres no admin folder Quote Link to comment Share on other sites More sharing options...
dezkit Posted November 22, 2008 Share Posted November 22, 2008 This is not a php error, this is a SMF Boards error, please post in the SMF Official Forum Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 22, 2008 Share Posted November 22, 2008 This still displays errors in chrome and opera.PHP can't show errors in some browsers and not in others... not unless you deliberately chose to do so by testing USER_AGENT Where did you make this up? PHP is server side error reporting in php has nothing to do with brower Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 22, 2008 Share Posted November 22, 2008 Theres no admin folder Not in admin folder, but in Administration panel for your SMF script. And yeah, I think you're more likely to get help on SMF site. Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted November 22, 2008 Share Posted November 22, 2008 This still displays errors in chrome and opera.PHP can't show errors in some browsers and not in others... not unless you deliberately chose to do so by testing USER_AGENT Where did you make this up? PHP is server side error reporting in php has nothing to do with brower That is precisely what I was saying. Under normal circumstances, PHP would display an error message not caring what browser the response was being sent to. That's why I was so puzzled by the comment that it still displays in Chrome and Opera, while assumedly not in IE or FF I use the phrase "not unless you deliberately chose to do so by testing USER_AGENT" because it would be possible for somebody to write a custom error handler that tested $_SERVER["HTTP_USER_AGENT"] and modified it's message accordingly... though why anybody would do so, I can't imagine Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 22, 2008 Share Posted November 22, 2008 I use the phrase "not unless you deliberately chose to do so by testing USER_AGENT" because it would be possible for somebody to write a custom error handler that tested $_SERVER["HTTP_USER_AGENT"] and modified it's message accordingly... though why anybody would do so, I can't imagine To keep IE users dazed and confused... Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 22, 2008 Author Share Posted November 22, 2008 I fixed it myself by just reading the error. It said to include it beforer any other script so i put it above the doc type and it works now can other people test it to see if they get the error? www.devwebsites.com Quote Link to comment Share on other sites More sharing options...
dropfaith Posted November 23, 2008 Share Posted November 23, 2008 nope error is gone for me and its server side so really if one cant get the error noone can Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 23, 2008 Author Share Posted November 23, 2008 Weird I thought I pressed hte solve button. Hm Oh by the way I found a way to have rounded borders with no images. It works in all browsers too. Its sick Quote Link to comment Share on other sites More sharing options...
dropfaith Posted November 23, 2008 Share Posted November 23, 2008 got a link to how its done im interested in learning that Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 23, 2008 Author Share Posted November 23, 2008 Oh crap I lost the link but I got the code. Theres no JS or DHTML or images at all. i'll explaini The screen is made of pixels. If you arrange them so they are in a line then it sorta looks rounded. This code puts a margin of 1 px so it looks rounded This code works in IE and all browsers <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> p, .container3 h3 {margin:0 15px;} .container, .container2, .container3 {background:#ccc; color:#fff; margin:0 15px;} .container2 { width:200px; } .container3 { width: 200px; float: right; } .rtop, .rbottom{display:block; background:#fff;} .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden; background:#ccc;} .r1{margin: 0 5px} .r2{margin: 0 3px} .r3{margin: 0 2px} .r4{margin: 0 1px; height: 2px} .rl1 {margin: 0 0 0 5px; } .rl2 {margin: 0 0 0 3px; } .rl3 {margin: 0 0 0 2px; } .rl4 {margin: 0 0 0 1px; height: 2px;} .rr1 {margin: 0 5px 0 0; } .rr2 {margin: 0 3px 0 0; } .rr3 {margin: 0 2px 0 0; } .rr4 {margin: 0 1px 0 0; height: 2px;} </style> </head> <body id="tt0" class="gt5"> <br style="clear:both;" /> <h3>Four Rounded Corners</h3> <div class="container"> <b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b> <p>Sed do eiusmod tempor incididunt ullamco laboris nisi ut labore et dolore magna aliqua. Quis nostrud exercitation qui officia deserunt ut enim ad minim veniam. In reprehenderit in voluptate mollit anim id est laborum. Duis aute irure dolor consectetur adipisicing elit, ut aliquip ex ea commodo consequat.</p> <p>Lorem ipsum dolor sit amet, qui officia deserunt cupidatat non proident. Eu fugiat nulla pariatur. Ut labore et dolore magna aliqua.</p> <b class="rbottom"><b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b></b> </div> </body></html> Quote Link to comment 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.