• Hello.

    I have changed the location of the uploads directory from the default (“uploads” → “files”), which causes a minor error with Register Plus. The uploads directory is hardcoded in one place, which later on is used for displaying the avatar as a logo (well, it tries to, anyway, heh). Line 277 of register-plus.php:

    return trailingslashit( get_option('siteurl') ) . 'wp-content/uploads/' . $logo;

    Could you maybe update this to the dynamically generated config var for the uploads directory?

    Thanks in advance for your help.

    cheers,

    – pgl

    PS: this is an example of the error that appears on (eg) wp-login.php with a non-default setting of the uploads directory:

    Warning: getimagesize(/home/apache/vhosts/pgl.yoyo.org/htdocs/bits/wp-content/uploads/mozzie-leaning-on-beer-70x70.png) [function.getimagesize]: failed to open stream: No such file or directory in /home/apache/vhosts/pgl.yoyo.org/htdocs/bits/wp-content/plugins/register-plus/register-plus.php on line 1531

Viewing 1 replies (of 1 total)
  • Hi, I have fixed the problem replacing line 277:

    return trailingslashit( get_option(‘siteurl’) ) . ‘wp-content/uploads/’ . $logo;

    whit:

    return trailingslashit( get_option(‘siteurl’) ) . get_option(‘upload_path’) . ‘/’ . $logo;

Viewing 1 replies (of 1 total)

The topic ‘line 277 of register-plus.php: hardcoded uploads dir’ is closed to new replies.