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

    I recently switched to Ubuntu 10.04 which comes with PHP5.3 . PHPThumb is not working anymore with this version. I found a fix here : http://modxcms.com/forums/index.php?topic=40416.0

    But after applying the fix, I’ve another error :
    Fatal error: Cannot redeclare phpThumbURL() (previously declared in /home/enzo/EquiLibre/Web/www/melani/assets/snippets/phpthumb/phpThumb.config.php:249) in /home/enzo/EquiLibre/Web/www/melani/assets/snippets/phpthumb/phpThumb.config.php on line 252

    Any Idea?

    Thank you very much
      Equilibre Webdesign - Conception et r
      • 926
      • 1 Posts
      Hi,
      I also run into the same issue on my new installation...
      Did you found a solution?

      Best Regards!
      Alex
        • 17499 ☆ A M B ☆
        • 872 Posts
        It’s a known issue, you can find a fix in google (it’s due to some deprecated function) See this topic
          • 36624
          • 535 Posts
          i know this topic is old but i had the same error than the first post when adding 2 image:phpthumb on the same ressource.

          simple fix is :

          change line 52 of snippet_phx_phpthumb.php

          include($modx->config['base_path'].PHPTHUMB_PATH.'phpThumb.config.php');
          

          to :

          include_once($modx->config['base_path'].PHPTHUMB_PATH.'phpThumb.config.php');
          


            CTRL+SHIFT+U - Clear Cache
            CTRL+SHIFT+H - Hiding Heft Panel
            CTRL+SHIFT+N - Fast Create Resource
            CTRL+ALT+P - Preview Recource (in edit resorce window)
            CTRL+ALT+S - Save