#2612 Plugin "Username over Logo" does not display image

Produces PHP errors
closed
nobody
5
2009-12-07
2009-01-09
Thijs
No

The plugin "Username over Logo" does not diplay the image, when trying to view the image the following error is reported:

====================
Warning: require_once(../src/validate.php) [function.require-once]: failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/user_logo/image.php on line 30

Fatal error: require_once() [function.require]: Failed opening required '../src/validate.php' (include_path='.:/usr/share/php:/usr/bin/pear') in /usr/share/squirrelmail/plugins/user_logo/image.php on line 30

The problem is that the script 'image.php' seeks the 'validate.php'in the wrong location.
The problem can be solved with the following changes:

old:

chdir('..');
require_once('../src/validate.php');

chdir('user_logo');

new:

/* Path for SquirrelMail required files. */
define('SM_PATH','../../');

/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
====================

somehow my first (simple change) didn't work, but who cares.

require_once('../../include/validate.php');

Discussion

    • status: open --> pending
     
  • Plugin specific issues should be submitted to the plugin maintainer, rather than the SquirrelMail team, unless the plugin is maintained by us (newmail, fetchmail etc).

     
    • status: pending --> closed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).