We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26182
    • 164 Posts
    Hi,

    I’ve been trying to install the webanalyse snippet but I get this error when I try to run it:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	require(webanalyse/include/stats_main.inc) [function.require]: failed to open stream: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/var/www/html/dev/modx/modx-0.9.5/manager/includes/document.parser.class.inc.php(748) : eval()'d code	 
      Line: 	2	 
     
    Parser timing
      MySQL: 	0.0238 s	(10 Requests)
      PHP: 	0.0423 s	 
      Total: 	0.0660 s


    Any suggestions that anyone has would be greatly appreciated.

    Thankyou.

    Sarah smiley
    • That means that it can’t find its files. Double-check where you uploaded the webanalyse folder; it should be in the web root directory of your MODx installation (in the same place where the main index.php file is). If you need to put it somewhere else, you’ll need to edit the snippet and change the path to its files.
        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
        • 26182
        • 164 Posts
        i uploaded in to where the assets and manager foldes are also stored. i changed the permissions to 777. i also tried to find the file that it’s supposed to be looking for and i can’t find it anywhere in the package that i downloaded for installation.

        thanks for your help smiley

        sarah
        • Hmm. Wonder if there is a version conflict. The package I downloaded , version 1.3, definitely has the file.
            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
            • 26182
            • 164 Posts
            thanks for your help. have decided to scrap the stats cause they aren’t needed for the scope smiley i’ll try out the new version thoughand see if it makes any difference.

            thanks again! smiley

            sarah
              • 10313
              • 375 Posts
              Hi,

              just found this snippet and installed webanalyse in the MODx root folder. When I add the snippet to my template, I get a

              Fatal error: Cannot redeclare class init in /home/sitename/public_html/2007/webanalyse/include/stats_main.inc on line 3


              That 2007 is my MODx root folder. I’m using MODx 0.9.6.

              Any ideas?
              Martin