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

    I get the following Error with MODX 1.0.6 and PHP 5.4.x

    « MODx Parse Error »
    
    MODx encountered the following error while attempting to parse the requested resource:
    
    « PHP Parse Error »
    
    
    PHP error debug
    
      Error:
    
    Non-static method template::replace() should not be called statically, assuming $this from incompatible context
    
      Error type/ Nr.:
    	
    
    - 2048
    
      File:
    	
    
    /.../assets/snippets/ditto/formats/rss.format.inc.php
    
      Line:
    	
    
    144
    	
    
     
    
      Line 144 source:
    	
    
    $header = isset($header) ? $header : template::replace($rss_placeholders,$rss_header);
    	
    
     
    
     
    			
    
    Parser timing
    	
    
      MySQL:
    	
    
    0.0041 s
    	
    
    (2 Requests)
    	
    
      PHP:
    	
    
    0.0238 s
    
    
      Total:
    
    0.0279 s


    it's working with XAMPP 1.7.4 and PHP 5.3.5 ...any ideas if a (missing) apache extension(config could cause this?

    thanks, j [ed. note: anonymized-26931 last edited this post 14 years, 3 months ago.]
      • 26931
      • 2,314 Posts
        • 29201
        • 239 Posts
        Hi Sharkbait - this link 404s...
        Quote from: sharkbait at Jun 05, 2012, 01:50 AM
        -> http://setpro.pl/software/modx-evo-and-php-5.4

        did you end up fixing this up?
          • 29201
          • 239 Posts
          Just fixed this by modifying assets/snippets/ditto/classes/ditto.class.inc.php on line 498 from

          function getAuthor($createdby) {


          to

          public static function getAuthor($createdby) {
            • 26931
            • 2,314 Posts
            Hi tayo,

            good you found a solution

            here's the linked article http://web.archive.org/web/20120628184932/http://setpro.pl/software/modx-evo-and-php-5.4