title: UIWebView shows error when webpage is loaded, Safari shows perfectly
body: <p>The problem is that the website doesn't fully load in a UIWebView, but it loads normally in Safari.</p>
  
  <p>This is the error I get when loading the website in a UIWebView:</p>
  
  <blockquote>
    <p>Warning:
    cos_before_render(/home/user/ctown/doc_wbn//../sys/swt/www.westspringsec.moe.edu.sg.mob)
    [function.cos-before-render]: failed
    to open stream: No such file or
    directory in
    /home/user/ctown/cti_bin/wbn/cos_init.inc
    on line 731</p>
    
    <p>Warning: cos_before_render()
    [function.include]: Failed opening
    '/home/user/ctown/doc_wbn//../sys/swt/www.westspringsec.moe.edu.sg.mob'
    for inclusion
    (include_path='.:/home/user/ctown/cti_bin/phplot:/usr/local/lib/php')
    in
    /home/user/ctown/cti_bin/wbn/cos_init.inc
    on line 731</p>
    
    <p>Fatal error: Call to undefined
    function: json_encode() in
    /home/user/ctown/cti_bin/wbn/cos_init.inc
    on line 737</p>
  </blockquote>
  
  <pre><code>- (void)viewDidLoad {
      NSString *urlAddress = @"http://www.westspringsec.moe.edu.sg";
      NSURL *url = [NSURL URLWithString:urlAddress];
      NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
      [Webview loadRequest:requestObj];
      [super viewDidLoad];
  }
  </code></pre>
  
  <p>I tried the question linked below, however I can't modify the backend of the website!</p>
  
  <p><a href="https://stackoverflow.com/questions/3701598/uiwebview-xhmtl-parse-error-but-safari-dont">UIWebView Xhmtl parse error but safari don&#39;t</a></p>