'''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#Igettheundefinederrorwhentryingtoregistermywidgets I get the "undefined" error when trying to register my widgets]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#MyRMSwidgetsChatIMVideoRecorderendupinConnecting.WhatshouldIdo My RMS widgets (Chat, IM, Video Recorder) end up in "Connecting". What should I do?]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#SomeofthewidgetsshowNotInstalledintheRaySuitePanelthoughIhavearegularDolphininstallation Some of the widgets show "Not Installed" in the Ray Suite Panel though I have a regular Dolphin installation]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#MywidgetsresultinInvalidparameterserrorandmyRayBaseresultsinNotInstalled My widgets result in "Invalid parameters" error and my Ray Base results in "Not Installed"]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#IgetUploadingfileerrororUndefinedwhenuploadingaudiovideofilesinRayMediaandVideoPlayers I get "Uploading file error" or "Undefined" when uploading audio/video files in Ray Media and Video Players]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#MyFreeAd-Freelicensesdontworkresultinginwronglicensenumbermessage My Free/Ad-Free licenses don't work resulting in "wrong license number" message]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#MyRaywidgetsshowNotRegisteredonuserendthoughtheyhavebeensuccessfullyregisteredonadminend My Ray widgets show "Not Registered" on user end though they have been successfully registered on admin end]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#MyAudioVideowidgetsChatIMVideoRecorderandWhiteboardcantconnect My Audio/Video widgets (Chat, IM, Video Recorder and Whiteboard) can't connect]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#Ray3.1HotFix Ray 3.1 HotFix]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#WhenIopenthevideorecorderitsconnectingforever.IntheadminpanelitopensupokbuthangswhenIclickonavideo When I open the video recorder, it's connecting forever. In the admin panel it opens up ok, but hangs when I click on a video]''' '''[http://www.boonex.com/trac/ray/wiki/GenRayTshooter#Someorallofmywidgetskeeponloadinganddonotwork. Some or all of my widgets keep on loading and do not work.]''' ---- == I get the "undefined" error when trying to register my widgets == As soon as Adobe has made some changes in the base XML class of their latest Flash Player, it has become incompatible with Ray.[[BR]] So, you need to make sure that your Flash Player version is 8 or 9. If you have upgraded Flash Player to the 10th version, you should downgrade it to 8 or 9 version. ---- == My RMS widgets (Chat, IM, Video Recorder) end up in "Connecting". What should I do? == '''Use RMS''' is enabled in '''Plugins -> Ray Suite -> Base Settings''' but: 1) your RMS is not installed or not properly installed (refer to [http://www.boonex.com/trac/ray/wiki/RayServerInstall RMS installation manual]) 2) you are using Ad-Free widgets and your RMS is not properly specified in Plugins -> Ray Suite -> Base Settings (refer to [http://www.boonex.com/trac/ray/wiki/RayServerInstall RMS installation manual]) 3) you are using Free widgets and !BoonEx RMS is not properly specified in '''Plugins -> Ray Suite -> Base Settings''' (refer to [http://www.boonex.com/trac/dolphin/wiki/DetailedInstall#Step5:FinalStep Dolphin install: Final step]) 4) you have specified !BoonEx RMS but you're using Ad-Free widgets; in this case you're not eligible to use !BoonEx RMS so you should install your own one (refer to the 1) step) '''Note''': If you somehow still can't make RMS work, you can disable it by unticking the '''Use RMS''' checkbox. But in this case you won't be able to use audio/video streaming features in Ray widgets. ---- == Some of the widgets show "Not Installed" in the Ray Suite Panel though I have a regular Dolphin installation == This is typically caused by the wrong permissions on some XML files inside the '''ray/modules''' directory. Check if the following files have '''666''' permissions: {{{ ./ray/modules/global/xml/config.xml ./ray/modules/global/xml/main.xml ./ray/modules/board/xml/config.xml ./ray/modules/board/xml/langs.xml ./ray/modules/board/xml/main.xml ./ray/modules/board/xml/skins.xml ./ray/modules/chat/xml/config.xml ./ray/modules/chat/xml/langs.xml ./ray/modules/chat/xml/main.xml ./ray/modules/chat/xml/skins.xml ./ray/modules/im/xml/config.xml ./ray/modules/im/xml/langs.xml ./ray/modules/im/xml/main.xml ./ray/modules/im/xml/skins.xml ./ray/modules/presence/xml/config.xml ./ray/modules/presence/xml/langs.xml ./ray/modules/presence/xml/main.xml ./ray/modules/presence/xml/skins.xml ./ray/modules/video/xml/config.xml ./ray/modules/video/xml/langs.xml ./ray/modules/video/xml/main.xml ./ray/modules/video/xml/skins.xml ./ray/modules/mp3/xml/config.xml ./ray/modules/mp3/xml/langs.xml ./ray/modules/mp3/xml/main.xml ./ray/modules/mp3/xml/skins.xml ./ray/modules/movie/xml/config.xml ./ray/modules/movie/xml/langs.xml ./ray/modules/movie/xml/main.xml ./ray/modules/movie/xml/skins.xml ./ray/modules/music/xml/config.xml ./ray/modules/music/xml/langs.xml ./ray/modules/music/xml/main.xml ./ray/modules/music/xml/skins.xml ./ray/modules/desktop/xml/config.xml ./ray/modules/desktop/xml/langs.xml ./ray/modules/desktop/xml/main.xml ./ray/modules/desktop/xml/skins.xml ./ray/modules/shoutbox/xml/config.xml ./ray/modules/shoutbox/xml/langs.xml ./ray/modules/shoutbox/xml/main.xml ./ray/modules/shoutbox/xml/skins.xml }}} and if the permissions are wrong set them using SSH or FTP's '''chmod''' command, for example: {{{ chmod 666 ./ray/modules/global/xml/config.xml ./ray/modules/global/xml/main.xml ./ray/modules/board/xml/config.xml ./ray/modules/board/xml/langs.xml ./ray/modules/board/xml/main.xml ./ray/modules/board/xml/skins.xml ./ray/modules/chat/xml/config.xml ./ray/modules/chat/xml/langs.xml ./ray/modules/chat/xml/main.xml ./ray/modules/chat/xml/skins.xml ./ray/modules/im/xml/config.xml ./ray/modules/im/xml/langs.xml ./ray/modules/im/xml/main.xml ./ray/modules/im/xml/skins.xml ./ray/modules/presence/xml/config.xml ./ray/modules/presence/xml/langs.xml ./ray/modules/presence/xml/main.xml ./ray/modules/presence/xml/skins.xml ./ray/modules/video/xml/config.xml ./ray/modules/video/xml/langs.xml ./ray/modules/video/xml/main.xml ./ray/modules/video/xml/skins.xml ./ray/modules/mp3/xml/config.xml ./ray/modules/mp3/xml/langs.xml ./ray/modules/mp3/xml/main.xml ./ray/modules/mp3/xml/skins.xml ./ray/modules/movie/xml/config.xml ./ray/modules/movie/xml/langs.xml ./ray/modules/movie/xml/main.xml ./ray/modules/movie/xml/skins.xml ./ray/modules/music/xml/config.xml ./ray/modules/music/xml/langs.xml ./ray/modules/music/xml/main.xml ./ray/modules/music/xml/skins.xml ./ray/modules/desktop/xml/config.xml ./ray/modules/desktop/xml/langs.xml ./ray/modules/desktop/xml/main.xml ./ray/modules/desktop/xml/skins.xml ./ray/modules/shoutbox/xml/config.xml ./ray/modules/shoutbox/xml/langs.xml ./ray/modules/shoutbox/xml/main.xml ./ray/modules/shoutbox/xml/skins.xml }}} ---- == I get ''Uploading file error'' or ''Undefined'' when uploading audio/video files in Ray Media and Video Players == '''1)''' This is a common problem and most of the time it is caused by the following reasons: 1) You're trying to upload files bigger than 2 Megabytes which is the default value for PHP configuration. To fix it, edit '''php.ini''' file which is used as a configuration file by your PHP processor. You have to find two variables: '''upload_max_filesize''' and '''post_max_size''' and assign bigger values to them. 2) You don't have .htaccess or have it corrupted in the '''ray''' folder. Here's the code that this file must contain: {{{ SecFilterEngine off }}} 3) You have the correct .htaccess file but it gets overridden by other Apache settings on your server. You should contact your hosting provider in this case. 4) You don't have the proper '''ffmpeg.exe''' in '''ray/modules/global/app''' or it doesn't have '''777''' permissions (readable, writable, executable). In this case change the permissions and make sure the ffmpeg.exe file is applicable to your operating system: Linux (provided with Dolphin), [http://www.boonex.com/ffmpeg_win.zip Windows] or [http://www.boonex.com/ffmpeg_freebsd62.tgz FreeBSD]. 5) You have incorrect permissions for the following folders: '''ray/modules/mp3/files/''', '''ray/modules/movie/files''' and '''ray/modules/music/files''' These folders must have '''777''' permissions. 6) You have PHP '''exec()''' function disabled on your server. Advise with your hosting provider in order to figure this out. '''2)''' If you still can't make it work, please follow this diagnostic procedure: * To determine the reason of such problems, create a php file with the following contents, upload it in your Dolphin's root directory and run it in your browser window: {{{ echo "
PHP INI settings
"; echo "
safe mode = ".ini_get('safe_mode'); echo "
disabled functions = ".ini_get('disable_functions'); echo "
max execution time = ".ini_get('max_execution_time'); echo "
post_max_size = ".ini_get('post_max_size'); echo "
upload max filesize = ".ini_get('upload_max_filesize'); echo "

ffmpeg output
";
$s = realpath("ray/modules/global/app/ffmpeg.exe");
echo `$s -version 2>&1`;
}}}

'''Output analysis:'''

''safe_mode ='' if this variable has non-empty value then ffmpeg will not be able to execute; in this case advise with your hosting about disabling safe mode.

''disabled_functions ='' if this variable contains '''exec''' then this function is forbidden by hosting and thus your script won't be able to run ffmpeg.

''max_execution_time, max_input_time ='' it's usually set to 30 seconds; you should increase its value several times.

''post_max_size ='' the size of POST data that PHP can handle; it's usually set at 2M; you should increase its value up to 8M or more.

''upload_max_filesize ='' the size limit of uploaded files; it's usually set at 2M; you should increase its value up to 8M or more.

''ffmpeg output:'' - this command will result in a message like this:

{{{
FFmpeg version SVN-r9115, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-xvid --enable-x264 --enable-gpl --enable-libvorbis --enable-libogg --enable-libtheora --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaad --enable-libfaac --enable-pthreads --disable-shared --enable-static
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Aug 14 2007 18:26:46, gcc: 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
ffmpeg      SVN-r9115
libavutil   3212288
libavcodec  3352580
libavformat 3345409
}}}

If you didn't see anything like this your hosting doesn't allow your web script to run '''exe''' files (this can be the result of safe_mode and disabled_functions values, see above).

== Possible ways to fix this problem: ==

        * '''safe_mode''' and '''disabled_functions''' issues can be resolved only by hosting provider.

        * Make sure you have set appropriate PHP settings for uploading media files.

        a) If PHP on your server is running in CGI mode, you need to create a '''php.ini''' file with the following contents:
        {{{
upload_max_filesize=300M
post_max_size=300M
max_input_time=3000
max_execution_time=3000
memory_limit=128M

        }}}

        Then copy this file to the ray/modules/movie/files subfolder

        b) If PHP on your server is running as Apache module, place this code in the '''.htaccess''' file which resides in the main Dolphin directory:
        {{{
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value max_input_time 3000
php_value max_execution_time 3000
php_value memory_limit 128M

        }}}

        * You can also change some MySQL settings to prevent connection timeouts when uploading big files:
        Open the file '''ray/modules/global/inc/db.inc.php''' and insert the following commands
        {{{
mysql_query ("SET @@local.wait_timeout=9000;");
mysql_query ("SET @@wait_timeout=9000;");
mysql_query ("SET @@local.interactive_timeout=9000;");
mysql_query ("SET @@interactive_timeout=9000;");
mysql_query ("SET @@local.connect_timeout=9000;");
mysql_query ("SET @@connect_timeout=9000;");

        }}}

        after the line
        {{{
@mysql_select_db($this->sDb, $this->rLink);
        }}}

----

== My widgets result in "Invalid parameters" error and my Ray Base results in "Not Installed" ==



  * This problem is mostly caused by unsuccessful integration of Ray widgets.[[BR]]
  In this case refer to [http://www.boonex.com/trac/ray/wiki/RayIntegration Ray Integration Manual].

  * Referring to Dolphin, it can be caused by efforts to replace the '''ray''' folder with that from the Ray package and install it which is obviously not needed because Ray is already integrated into Dolphin.[[BR]]
  Here are the steps of fixing it in this case:[[BR]][[BR]]
    * Backup the media files if they already have been uploaded by your members. They reside in the folders '''ray/modules/WIDGET_NAME/files''', where '''WIDGET_NAME''' stands for the name of the widget ('''chat''', '''im''', etc.)[[BR]][[BR]]
    * Replace the whole '''ray''' folder with that from your original Dolphin package (for example Dolphin 6.1.4 [http://get.boonex.com/Dolphin-v.6.1-Free Free] or [http://get.boonex.com/Dolphin-v.6.1-AdFree AdFree])[[BR]][[BR]]
    * Set the following permissions using an FTP or SSH client
    {{{
chmod 777 ./ray/modules/board/files ./ray/modules/chat/files ./ray/modules/im/files ./ray/modules/movie/files ./ray/modules/mp3/files ./ray/modules/music/files ./ray/modules/global/app/ffmpeg.exe

chmod 666 ./ray/modules/board/xml/config.xml ./ray/modules/board/xml/langs.xml ./ray/modules/board/xml/main.xml ./ray/modules/board/xml/skins.xml ./ray/modules/chat/xml/config.xml ./ray/modules/chat/xml/langs.xml ./ray/modules/chat/xml/main.xml ./ray/modules/chat/xml/skins.xml ./ray/modules/desktop/xml/config.xml ./ray/modules/desktop/xml/langs.xml ./ray/modules/desktop/xml/main.xml ./ray/modules/desktop/xml/skins.xml ./ray/modules/global/data/integration.dat ./ray/modules/global/inc/cron.inc.php ./ray/modules/global/inc/header.inc.php ./ray/modules/global/xml/config.xml ./ray/modules/global/xml/main.xml ./ray/modules/im/xml/config.xml ./ray/modules/im/xml/langs.xml ./ray/modules/im/xml/main.xml ./ray/modules/im/xml/skins.xml ./ray/modules/movie/xml/config.xml ./ray/modules/movie/xml/langs.xml ./ray/modules/movie/xml/main.xml ./ray/modules/movie/xml/skins.xml ./ray/modules/mp3/xml/config.xml ./ray/modules/mp3/xml/langs.xml ./ray/modules/mp3/xml/main.xml ./ray/modules/mp3/xml/skins.xml ./ray/modules/music/xml/config.xml ./ray/modules/music/xml/langs.xml ./ray/modules/music/xml/main.xml ./ray/modules/music/xml/skins.xml ./ray/modules/presence/xml/config.xml ./ray/modules/presence/xml/langs.xml ./ray/modules/presence/xml/main.xml ./ray/modules/presence/xml/skins.xml ./ray/modules/shoutbox/xml/config.xml ./ray/modules/shoutbox/xml/langs.xml ./ray/modules/shoutbox/xml/main.xml ./ray/modules/shoutbox/xml/skins.xml ./ray/modules/video/xml/config.xml ./ray/modules/video/xml/langs.xml ./ray/modules/video/xml/main.xml ./ray/modules/video/xml/skins.xml

    }}}
    * Open the file '''ray/modules/global/inc/header.inc.php''' and replace '''[path_to]''' with the server path to Dolphin's folder, for example '''/home/user/community/'''[[BR]][[BR]]
    * Log into Dolphin's Admin Panel and navigate to '''Plugins -> Ray Suite'''. Register all your widgets and specify your RMS in '''Base Settings'''. Please refer to [http://www.boonex.com/trac/dolphin/wiki/DetailedInstall#Step5:FinalStep Dolphin Installation Manual].[[BR]][[BR]]
    * Restore the media files from backup placing them into the same folders where they used to be.

----

== My Free/Ad-Free licenses don't work resulting in "wrong license number" message ==

    * The most common reason for this is that you're trying to apply your licenses on incompatible package, i.e. you're trying to register Free Ray widgets with Ad-Free licenses or vice versa. To check the version of your widgets, open the following file inside each widget's folder:

    {{{
    inc/constants.inc.php
    }}}

    Search for the version number which looks like this: 

    {{{
    'code' => "chat_3.0.0000_free" or
    }}}

    {{{
    'code' => "chat_3.0.0000"
    }}}

    The Free widgets contain '''_free''' wording in these lines, while the Ad-Free ones don't.

    To replace the current Ray package in Dolphin with the appropriate one, please refer to [http://www.boonex.com/trac/ray/wiki/GenRayFAQs#HowcanIreplaceFreeRaywidgetswithAd-Freeonesandviceversa Ray FAQ].

----

== My Ray widgets show "Not Registered" on user end though they have been successfully registered on admin end ==

	* You're probably using the wrong license number. In order to check it out, open '''ray/modules/module_name/xml/main.xml''' and replace '''CDATA[enabled]''' with '''CDATA[not registered]'''. Then try to register your widgets again and you will probably encounter a problem mentioned in the previous paragraph.
	
	* If there's no problem registering the widget again, but it still appears to be unregistered on users end, you have most probably installed 3.1 widgets together with 3.0. In this case you need to install all widgets of the same verson.


----

== My Audio/Video widgets (Chat, IM, Video Recorder and Whiteboard) can't connect ==

	
	* You need to [http://www.boonex.com/trac/ray/wiki/RayServerInstall install RMS], enable it and specify its IP address in '''Admin Panel -> Plugins -> Ray Suite -> Base Settings'''.

    Set the following ports: '''RMS Port: 1935''', '''RMS HTTP Port: 5080'''.

    If you still experience RMS connection problem with Free widgets, please contact [mailto:support@boonex.com BoonEx Support Department] and provide your site's full URL.

----

== Ray 3.1 !HotFix == 

Ray 3.1 !HotFix. Download [http://get.boonex.com/Ray-v.3.1-HotFix-Free Free] or [http://get.boonex.com/Ray-v.3.1-HotFix-AdFree AdFree] version.
 
This Hotfix is with a minor fixes in Ray modules. They are:

    * Problem with version check in Ray Base
    * Corrections of buttons representation in VPlayer abd VRecorder
    * Minor bugs in Chat and IM interface

The archives contain only '''''.swf''''' files. This !HotFix does not require any specific instruction on how to apply it. You should just upload '''''.swf''''' files according to their location in Ray modules and that's all.

----

== When I open the video recorder, it's connecting forever. In the admin panel it opens up ok, but hangs when I click on a video == 

You have recorded a corrupted video file.

You need now to delete the folder that belongs to the member and is located in the '''rms_path/webapps/video/streams''' folder.

Then you need to delete a few lines of code from the file '''rms_folder/webapps/video/streams/config.xml'''

The lines look like these:
{{{
   
    boonex.us_7577
    
     boonex.us_7577
     tazmaster776
     http://www.boonex.us/tazmaster776
     0
     0
    
    
}}}

----

== Some or all of my widgets keep on loading and do not work. ==

This problem usually happens when there are writable permissions on folders and files when PHP is running in CGI mode.

To check the mode your PHP is running in, log into your Dolphin's Admin Panel and then open the page '''admin/phpinfo.php'''.

To fix it, you will need to set all folders permissions to 755 and all files to 644. The file '''ray/modules/global/app/ffmpeg.exe''' should be also set to 755.

Now you need to let Ray determine your new permissions properly. To do so, open the file '''ray/modules/global/inc/function.inc.php''' and insert these lines of code:
{{{
$sResult = "";
$bDir = is_dir($sFilePath);
if(is_readable($sFilePath)) $sResult = $bDir ? "755" : "644";
if(is_writable($sFilePath)) $sResult = $bDir ? "777" : "666";
if(!$bDir && is_executable($sFilePath)) $sResult = "777";

}}}
before the line
{{{
return $sResult;

}}}
in the function '''checkPermissions($sFileName)'''.