We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22669
    • 18 Posts
    hi ...

    I use modxcms 0.9.2 and i have incuded chCounter a stat tool. The tool use parse_url to find the referrer form the url. And in some cases parse_url can not parse the url, because it’s a spambot and than parse_url throw an E_WARNING an modx:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	parse_url(/index.php?q=components/com_simpleboard/image_upload.php&sbp=http://pwned.iespana.es/i.txt?) [function.parse-url]: Unable to parse url	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/www/htdocs/w005ed91/modx/erweckt/chCounter/counter.php	 
      Line: 	28	 
      Line 28 source: 	$parsed = @parse_url($parsed); 	 
     
    Parser timing
      MySQL: 	0.4207 s s	(158 Requests)
      PHP: 	0.1485 s s	 
      Total: 	0.5692 s s
    


    wath can i do?

    ps: sorry for my englisch wink

    LG
    rené
      • 25663 MODX Staff
      • 12,272 Posts
      That’s a problem with the stats package unfortuantely. I’d check their forums for an answer.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 22669
        • 18 Posts
        i have seach in the forum, but i dont fond something helpfull. I think the E_WARING are corupted modx, but if i use parse_url with a @ like this:

        @parse_url();

        the modxcms get a waring to ... can i say modx that is if a WARNING come`?

        LG
        rené
          • 22669
          • 18 Posts
          hey are you found an answer?

          LG
          René