Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MYT 1.5.1. Menu item Users->List raises Error 500
#1
Bug 
Hi, I'm unable to list users but getting server error 500 instead of it.


To reproduce the error do following:

1. Login to MYT 1.5.1

2. Hover mouse on Users menu item

3. Mouse click "List" menu item

4. See error like this

Code:
Error 500

is_file(): open_basedir restriction in effect. File(/home/myt.sallecta.ga/htdocsimages/user/1504236514_screenshot.jpg) is not within the allowed path(s): (/php_sessions:/tmp:/var/www/errors:/usr/share/pear:/home/myt.sallecta.ga/htdocs)




Quick fix

1. Open file 

Code:
protected/views/user/index.php

2. Replace line 57

Code:
$avatar = $data->avatar ? Yii::app()->params['avatarPath'] . $data->avatar : Yii::app()->params['avatarPath'] . 'default_avatar_' . $gender . '.jpg';

with following line

Code:
$avatar = $data->avatar ? DIRECTORY_SEPARATOR . Yii::app()->params['avatarPath'] . $data->avatar : DIRECTORY_SEPARATOR . Yii::app()->params['avatarPath'] . 'default_avatar_' . $gender . '.jpg';
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)