Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10084

Add smilie errors out when image is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.9-RC1
    • 3.0.8
    • ACP
    • None
    • PHP 5.3.5, IIS7.5

      When adding a smilie through the "Add multiple smilies" feature in the ACP if the image happens to be missing and the dimensions are not entered or are removed for the smilie the user is presented with an error:

      [phpBB Debug] PHP Notice: in file /includes/acp/acp_icons.php on line 401: getimagesize(./../images/smilies/icon_arrow.gif) [function.getimagesize]: failed to open stream: No such file or directory

      along with an sql error (attached) which is a result from not having the image available to recalculate the dimensions. I suppose a check for the existence of the file prior to calling getimagesize would be ideal and simply producing an "No smilies were added" error message such as when you forget to check the "add" box would be enough.

            nickvergessen Joas Schilling
            DavidIQ David Colón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: