Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorGalerio
    • CommentTimeDec 30th 2013
     
    After upgrading to latest version 1.0RC1 I have these errors showed in every page where the full photo is displayed:

    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/sub001//foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 195

    Strict Standards: Non-static method phpthumb_functions::gd_info() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/sub001/foto/plog-includes/lib/phpthumb/phpthumb.functions.php on line 361

    Deprecated: Function eregi() is deprecated in /mounted-storage/foto/plog-includes/lib/phpthumb/phpthumb.functions.php on line 362

    Deprecated: Function eregi() is deprecated in /mounted-storage/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 707

    Deprecated: Function eregi() is deprecated in /mounted-storage/1e2.it/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 588

    Strict Standards: Non-static method phpthumb_functions::version_compare_replacement() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 1916

    Strict Standards: Non-static method phpthumb_functions::nonempty_min() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 1801

    Strict Standards: Non-static method phpthumb_functions::nonempty_min() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115cfoto/plog-includes/lib/phpthumb/phpthumb.class.php on line 1802

    Strict Standards: Non-static method phpthumb_functions::ImageCreateFunction() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 1825

    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/foto/plog-includes/lib/phpthumb/phpthumb.functions.php on line 246

    Strict Standards: Non-static method phpthumb_functions::version_compare_replacement() should not be called statically, assuming $this from incompatible context in /mounted-storage/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 1829

    Strict Standards: Non-static method phpthumb_functions::ImageResizeFunction() should not be called statically, assuming $this from incompatible context in /mounted-storage/home11/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 315

    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in /mounted-storage/home115c/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 1672


    And the errors are doubled in admin control panel where I get also:

    Deprecated: Function eregi() is deprecated in /mounted-storage/home115/foto/plog-includes/lib/phpthumb/phpthumb.functions.php on line 362

    Deprecated: Function eregi() is deprecated in /mounted-storage/home115/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 707

    Deprecated: Function eregi() is deprecated in /mounted-storage/home115/foto/plog-includes/lib/phpthumb/phpthumb.class.php on line 588


    I can't reinstall plogger because I already have albums published, so I can't delete them.

    Any help?
    • CommentAuthorFaken
    • CommentTimeJul 7th 2014
     
    Anyone found a solution to this? I get the same thing as well as a number of friends of mine... seems to be with new versions of PHP.
    •  
      CommentAuthorxiphias
    • CommentTimeApr 15th 2017
     
    Yes, I've been changing my sites PHP version to PHP7 and trying to fix these errors.
    I'm no PHP wizz, I code in .NET but I can get through the code OK. Been trying to fix all these errors on a trail and error bases.

    Here is a quick point in the right direction.

    As for the static functions
    Open: phpthumb.functions.php
    Find: function gd_version()
    Edit to: public static function gd_version()

    Do this for all the occurances/functions like:
    public static function ImageResizeFunction()
    public static function gd_info()

    eregi should be converted to preg_match / preg_replace

    Example
    public static function version_compare_replacement($version1, $version2, $operator='') {
    ...
    // and also inserts dots . before and after any non number so that for example '4.3.2RC1' becomes '4.3.2.RC.1'.
    // Then it splits the results like if you were using explode('.',$ver). Then it compares the parts starting from left to right.
    $version1 = preg_replace('([0-9]+)([A-Z]+)([0-9]+)', '\\1.\\2.\\3', $version1);
    $version2 = preg_replace('([0-9]+)([A-Z]+)([0-9]+)', '\\1.\\2.\\3', $version2);
    ...
    }

    public static function gd_version($fullstring=false) {
    ...
    if (preg_match('/bundled \((.+)\)$/', $gd_info['GD Version'], $matches)) {
    ...
    } else {
    ...
    }
    ...
    }


    Hope this helps.

    -XiP
    •  
      CommentAuthorxiphias
    • CommentTimeApr 15th 2017 edited