Plugin Directory

Changeset 1640683


Ignore:
Timestamp:
04/19/2017 02:41:58 PM (9 years ago)
Author:
tridungpham
Message:

Fatal error: Class 'HttpException' not found in /home/content/p3pnexwpnas08_data02/28/3272428/html/wp-content/plugins/lobby-chatwing/chatwing-sdk/src/LobbyChatwing/EndpointClient.php on line 172

Location:
lobby-chatwing/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • lobby-chatwing/trunk/chatwing-sdk/src/LobbyChatwing/EndpointClient.php

    r1513073 r1640683  
    1010use LobbyChatwing\Api\Action;
    1111use LobbyChatwing\Api\Response;
     12use Exception;
    1213
    1314class EndpointClient extends Object
     
    170171            $result = json_decode($result, true);
    171172            if (!$result) {
    172                 throw new \HttpException(__("Invalid response", LOBBY_CHATWING_TEXTDOMAIN), $responseStatus);
     173                throw new \Exception(__("Invalid response", LOBBY_CHATWING_TEXTDOMAIN), $responseStatus);
    173174            }
    174175
    175176            $result['http_code'] = $responseStatus;
    176         } catch (\HttpException $e) {
     177        } catch (\Exception $e) {
    177178            $result = array(
    178179                'success' => false,
  • lobby-chatwing/trunk/chatwing-sdk/src/LobbyChatwing/Lobby.php

    r1513073 r1640683  
    3131        $api = new Api('');
    3232        $domain = $api->getDomain();
    33         $this->baseUrl = $domain[$api->getEnv()]. "/lobby/". $this->getId();
     33        $this->baseUrl = $domain[$api->getEnv()]. "/service/embed/". $this->getId();
    3434
    3535        return $this->baseUrl;
  • lobby-chatwing/trunk/chatwing-sdk/src/config/actions.php

    r1513073 r1640683  
    66 */
    77return array(
    8     'app/float_ui_domain/list' => array(
     8    'app/float_ui/list' => array(
    99        'type' => 'get',
    1010        'auth' => true
  • lobby-chatwing/trunk/classes/DataModel.php

    r1513073 r1640683  
    6767        try {
    6868            $api = ChatwingContainer::getInstance()->get('api');
    69             $response = $api->call('app/float_ui_domain/list',array('app_id' => get_option('chatwing_default_app_id_lobby')));
     69            $response = $api->call('app/float_ui/list',array('app_id' => get_option('chatwing_default_app_id_lobby')));
    7070            if ($response->isSuccess()) {
    7171                $boxes = $response->get('data');
  • lobby-chatwing/trunk/classes/ShortCode.php

    r1513073 r1640683  
    1717    {
    1818        $model = DataModel::getInstance();
     19        $width_lobby = $model->getOption('width_lobby') ? $model->getOption('width_lobby') : "600";
     20        $height_lobby = $model->getOption('height_lobby') ? $model->getOption('height_lobby') : "800";
     21
    1922        $defaultAttributes = array(
    20             'width_lobby' => $model->getOption('width_lobby'),
    21             'height_lobby' => $model->getOption('height_lobby')
     23            'width_lobby' => $width_lobby,
     24            'height_lobby' => $height_lobby
    2225        );
    2326
     
    3235        $box->setId($params['id']);
    3336
    34 
     37        $height_lobby = $params['height_lobby'] ? $params['height_lobby'] : "400";
    3538        $box->setData('width_lobby', $params['width_lobby']);
    36         $box->setData('height_lobby', $params['height_lobby']);
     39        $box->setData('height_lobby', $height_lobby);
    3740
    3841        return $box->getIframe();
  • lobby-chatwing/trunk/lobby-chatwing.php

    r1638812 r1640683  
    99Plugin URI: http://chatwing.com/
    1010Description: Chatwing offers an unlimited live website or blog chat experience. This chat widget specializes in delivering real-time communication at any given time. Engage in a free chat with visitors and friends!
    11 Version: 1.0.4
     11Version: 1.0.5
    1212Author: chatwing
    1313Author URI: http://chatwing.com/
     
    1616*/
    1717
    18 define('LOBBY_CHATWING_VERSION', '1.0.4');
     18define('LOBBY_CHATWING_VERSION', '1.0.5');
    1919define('LOBBY_CHATWING_TEXTDOMAIN', 'lobby-chatwing');
    2020define('LOBBY_CHATWING_PATH', dirname(__FILE__));
  • lobby-chatwing/trunk/readme.txt

    r1638812 r1640683  
    4747
    4848== Changelog ==
     49= 1.0.5 =
     50* fixed bug : Class 'HttpException' not found
    4951= 1.0.4 =
    5052* Update feature lobby.
Note: See TracChangeset for help on using the changeset viewer.