SitePoint Sponsor

User Tag List

Results 1 to 25 of 25
  1. #1
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    The pictures are not showing

    Hello,

    I'm trying to help some friends ( a small team ) who work on an Arabic website. please check the following link:

    http://www.zakiworld.com/ar/v2/

    They are using Comfy Pro theme ( licensed vision ) and when they moved the website to a new dedicated server, the pictures are not showing anymore on the homepage ( the link above ), they tried to contact the owner of the theme, but till now they didn't get any help, and I'm tried many solutions without any success ( like for example, I installed PHP GD support on their Linux server, but this is not solve the problem), do you have any good solution ?

    Thanks in advance

  2. #2
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you try to load one of the images that are missing you get this:
    Code:
    Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 152 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 160 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 177 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpthumb.class.php on line 980 Deprecated: Function ereg() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpthumb.class.php on line 1024 Deprecated: Function ereg() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpthumb.class.php on line 1069 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 269 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 287 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php on line 287 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpthumb.class.php on line 1154 Deprecated: Function ereg_replace() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpthumb.class.php on line 890 Deprecated: Function eregi() is deprecated in /var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpthumb.functions.php on line 514 **Headers already sent in file "/var/www/vhosts/zakiworld.com/httpdocs/ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php" on line "152", dumping error message as text:**
    
    phpThumb() v1.7.9-200805132119
    
    
    Headers already sent (phpThumb.php line 446)
    So there are technically two problems:
    1. The PHP is using a deprecated function, so really ought to be updated to support PREG instead of EREGI and
    2. You need to suppress these error messages. You could just edit phpThumb.php and add this to the top:

    Code PHP:
    error_reporting(E_ALL ^ E_DEPRECATED);
    That should do it for you. Fingers crossed anyway

  3. #3
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Antnee

    I'm gonna to test your solution, but just one quick question concerning your first point, is that possible to update my php to support PREG by SSH ?

  4. #4
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That depends on whether you have the necessary file permissions to edit it. Though, in WP, can't you usually edit template files through the admin control panel? You would need to find all references to the EREGI functions and then replace them with the PCRE PREG type functions, which will also probably require you to change the parameters that are passed to the functions too. For now I'd just suppress the errors and see if that works, since it's not your code that is breaking it. Maybe contact the template creator and ask if they have an update?

  5. #5
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I have the access as root to the server, so there is no SSH command to do that ? or this is would make a problem for other scripts on the website ?

  6. #6
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you mean can you run a command that will find all references to that function and replace with another, then yes, there probably is (can anything not be scripted?) but it will probably break as a result. Download the script, look at it in your editor, and find all references and ensure that you also fix the pattern that is passed in as EREG and PREG are very different

  7. #7
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I converted all the EREGI by PREG inside the file phpThumb.php and added ( error_reporting(E_ALL ^ E_DEPRECATED) to the top, but nothing happened, check the link again in the first post.

  8. #8
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No, you can't just replace the functions. Put the functions back how they were, change the error reporting and test it. If it then starts to work then either decide to live with it or refactor the code properly

  9. #9
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ola, it is really so hard for me, I contacted the owner of the theme from 2 days ago without any answer. I think it's not easy to resolve the problem. Thanks a lot Antnee
    for your support, I appreciate it.

  10. #10
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's no problem. Let's just try suppressing those deprecated warnings and hopefully it'll then work as you expect it to

  11. #11
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THanks!
    In fact, I added the following code
    error_reporting(E_ALL ^ E_DEPRECATED);
    as you asked me to the top of phpThumb.php file, that I found it inside the script ( mytheme/script/PHPThumb ), but nothing happy, should I do something else also ?

  12. #12
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The URL I'm looking at is: http://www.zakiworld.com/ar/v2/wp-co...h=75&zc=C&q=95

    So I would suspect that it's the file in /ar/v2/wp-content/themes/zakiV5/scripts/phpThumb/phpThumb.php that you're looking for. Also search to make sure there isn't already another on in there that is conflicting with your change (ie you set it to one thing, it then changes it to something else)

  13. #13
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no it is the right file, exactly, and this is a part of the code after modification

    //////////////////////////////////////////////////////////////
    /// phpThumb() by James Heinrich <info@silisoftware.com> //
    // available at http://phpthumb.sourceforge.net ///
    //////////////////////////////////////////////////////////////
    /// //
    // See: phpthumb.changelog.txt for recent changes //
    // See: phpthumb.readme.txt for usage instructions //
    // ///
    //////////////////////////////////////////////////////////////

    error_reporting(E_ALL ^ E_DEPRECATED);

    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    ini_set('magic_quotes_runtime', '0');
    if (@ini_get('magic_quotes_runtime')) {
    die('"magic_quotes_runtime" is set in php.ini, cannot run phpThumb with this enabled');
    }
    $starttime = array_sum(explode(' ', microtime()));

    // this script relies on the superglobal arrays, fake it here for old PHP versions
    if (phpversion() < '4.1.0') {
    $_SERVER = $HTTP_SERVER_VARS;
    $_GET = $HTTP_GET_VARS;
    }

    // instantiate a new phpThumb() object
    ob_start();
    if (!include_once(dirname(__FILE__).'/phpthumb.class.php')) {
    ob_end_flush();
    die('failed to include_once("'.realpath(dirname(__FILE__).'/phpthumb.class.php').'")');
    }
    ob_end_clean();

    $phpThumb = new phpThumb();
    $phpThumb->DebugTimingMessage('phpThumb.php start', __FILE__, __LINE__, $starttime);
    $phpThumb->SetParameter('config_error_die_on_error', true);

    if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
    set_time_limit(60); // shouldn't take nearly this long in most cases, but with many filters and/or a slow server...
    }

  14. #14
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Look at the very next line after the one you just entered:
    Code PHP:
    error_reporting(E_ALL ^ E_DEPRECATED);
     
    error_reporting(E_ALL);
    I did say to look for other error_reporting() entries after yours!

  15. #15
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hahah I'm lost
    I keep just the first one, and remove the second line, but no change

  16. #16
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Try setting error_reporting(0); and see if that has any effect

  17. #17
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    incredible, nothing happen, can I send you by PM the access info ?

  18. #18
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sure, if you like

  19. #19
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    By the way, don't forget that there are also includes in this file that you'll also want to check to ensure that the author hasn't enabled error reporting in all of them

  20. #20
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah it not easy for me to define all that things I will try to contact again the vendor

  21. #21
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    One of many reasons I hate WP. Poorly supported templates and plugins cause so many problems!

  22. #22
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have any advice for something else ? Please don't say JOOMLA

  23. #23
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    England
    Posts
    695
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No. They're all the same in this respect. Get a ready built platform like WP by all means, but create your own template and support it yourself!

  24. #24
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Hello, I just find the right solution, in fact, from PHP version 5.3.0 the
    preg_replace()
    code is replaced with the new
    ereg_replace()
    . So you should update your phpThumb version, let me explain for you

    1: phpThumb is a script normally used in some wordpress themes, so you should try to find it inside the theme folder if you use wordpress.

    2: If you have changed your hosting provider, or your server, and you have the newer version of PHP, this is mean PHP 5.3.0 and above, you should update this script who called PHPTHUMB by the new version, that I found it and I advice you to download it and just take the files inside ZIP, and move them to your phpThum folder.

    This solution resolved the problem to display images and photos on the homepage of wordpress Comfy theme. I wrote this solution in details, because I suffered to find the solution during 3 days, so I hope to help someone in the future who will need the same solution.

    Finally thanks to the following post ( http://forums.modx.com/index.php?topic=40416.0 ) where I found the new version of phpThumb.

    Regards!
    Attached Files Attached Files

  25. #25
    SitePoint Member
    Join Date
    May 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Same problem, waisted 2 hours already but nothing is fixed.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •