We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25984
    • 7 Posts
    I am trying to call the AjaxSearch snippet [!AjaxSearch? &debug=`1`!]....
    however I get the following error ....
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: fopen(/var/lib/apache/htdocs/dev.sigmapiphi.org/home/assets/snippets/ajaxSearch/classes/../ajaxSearch_log.txt) [function.fopen]: failed to open stream: Permission denied
    Error type/ Nr.: Warning - 2
    File: /var/lib/apache/htdocs/dev.sigmapiphi.org/home/assets/snippets/ajaxSearch/classes/ajaxSearchDebug.class.inc.php
    Line: 31
    Line 31 source: $this->asDbgFd = fopen(AS_DBGFILE,’w+’);

    Parser timing
    MySQL: 0.0077 s (9 Requests)
    PHP: 0.1037 s
    Total: 0.1114 s

    How do I rectify this....
    I tried changing the file permissions.. without any luck sad
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The "permission denied" tells you what the problem is; you have to have write permissions for that file. It’s a log file, and AjaxSearch needs to be able to write to it.
        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
        • 25984
        • 7 Posts
        The folder and the file ... have set the permissions 777....
        still no luck sad