We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10386
    • 42 Posts
    I am new to modx, and after quite a while and few pages created tryingout the differents tools everything was running smooth until this message came up:
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: file_get_contents(http://www.ventoline.co.uk/blog/index.php?id=9) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
    Error type/ Nr.: Warning - 2
    File: /websites/123reg/LinuxPackage22/ve/nt/ol/ventoline.co.uk/public_html/blog/manager/includes/document.parser.class.inc.php(770) : eval()’d code
    Line: 120


    :o
    I have deleted the id=9 page, commented the line in question, no difference, would anyone where the problem comes from?
    huh
    Thanks for your help
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Snippet code is passed through the PHP eval() function by the parser, and the error is occurring at line 120 of the snippet or plugin code (not the document.parser.class.inc.php code). Line 770 of document.parser.class.inc.php is the function to evaluate snippets, so this is a snippet that is causing the problem.

      It is likely that your server is configured in such a way that opening URLs as files is not allowed:
      A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename. See the List of Supported Protocols/Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.
      http://php.net/manual/en/function.file-get-contents.php
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org