WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: LeagueManager] Ayuda para que se vean los logos en thumb (2 posts)

  1. LiberoStriker
    Member
    Posted 4 years ago #

    Hola!

    Cuando subo los logos de los equipos se guardan correctamente, pero no se crean las imagenes thumb, estos son los errores que manda:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/leaguemanager/chivas.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 127

    Warning: Division by zero in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 216

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 321

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 338

    Warning: Division by zero in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 216

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 321

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 338

    Warning: chmod() [function.chmod]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/leaguemanager/chivas.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/image.php on line 114

    Warning: chmod() [function.chmod]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/leaguemanager/thumb_chivas.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/image.php on line 115

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/leaguemanager/chivas.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 127

    Warning: Division by zero in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 216

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 321

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 338

    Warning: Division by zero in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 216

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 321

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/thumbnail.inc.php on line 338

    Warning: chmod() [function.chmod]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/leaguemanager/chivas.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/image.php on line 114

    Warning: chmod() [function.chmod]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/leaguemanager/thumb_chivas.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a6953554/public_html/wp-content/plugins/leaguemanager/lib/image.php on line 115

    Que serĂ¡?
    Ayuda por favor!
    Gracias!

  2. amenadiel
    Member
    Posted 4 years ago #

    This error comes up when using this plugin in setups in which the servers hosts several blogs, each one with its own vhost and unique path well inside $_SERVER['DOCUMENT_ROOT']

    To fix it, you must open
    /wp-content/plugins/leaguemanager/lib/core.php

    look at the functions getThumbnailPath and getImagePath

    find
    trailingslashit($_SERVER['DOCUMENT_ROOT'])
    and replace it with
    ABSPATH

Topic Closed

This topic has been closed to new replies.

About this Topic